Package com.composum.sling.nodes.scene
Class Scene
- java.lang.Object
-
- com.composum.sling.nodes.scene.Scene
-
public class Scene extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull org.apache.sling.api.resource.ResourceconfigResourceprotected @NotNull StringcontentPathprotected @NotNull StringcontentTypeprotected @NotNull BeanContextcontextprotected static Map<String,Object>CRUD_SCENE_FOLDERprotected @NotNull SceneConfigurations.ConfigsceneConfigprotected @NotNull StringscenePath
-
Constructor Summary
Constructors Constructor Description Scene(@NotNull BeanContext context, @NotNull SceneConfigurations.Config sceneConfig, @NotNull String contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyProperties(@NotNull Map<String,Object> properties, @NotNull org.apache.sling.api.resource.ModifiableValueMap content, @NotNull org.apache.sling.api.resource.ValueMap template)protected org.apache.sling.api.resource.ResourceapplyTemplate(@NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull Map<String,Object> properties, @NotNull org.apache.sling.api.resource.Resource contentParent, @NotNull String name, @NotNull org.apache.sling.api.resource.Resource template, boolean resetContent)@NotNull SceneConfigurations.ConfiggetConfig()@NotNull StringgetContentPath()@NotNull org.apache.sling.api.resource.ResourcegetContentResource()protected @Nullable org.apache.sling.api.resource.ResourcegetContentTemplate()@NotNull StringgetElementPath()@NotNull StringgetFrameUrl(String toolId)protected Map<String,Object>getSceneProperties()protected org.apache.sling.api.resource.ResourcegiveSceneContent(@NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull String path)booleanisContentPrepared()@Nullable org.apache.sling.api.resource.ResourceprepareContent(boolean resetContent)
-
-
-
Field Detail
-
context
@NotNull protected final @NotNull BeanContext context
-
sceneConfig
@NotNull protected final @NotNull SceneConfigurations.Config sceneConfig
-
configResource
@NotNull protected final @NotNull org.apache.sling.api.resource.Resource configResource
-
scenePath
@NotNull protected final @NotNull String scenePath
-
contentPath
@NotNull protected final @NotNull String contentPath
-
contentType
@NotNull protected final @NotNull String contentType
-
-
Constructor Detail
-
Scene
public Scene(@NotNull @NotNull BeanContext context, @NotNull @NotNull SceneConfigurations.Config sceneConfig, @NotNull @NotNull String contentType)
-
-
Method Detail
-
getConfig
@NotNull public @NotNull SceneConfigurations.Config getConfig()
-
getElementPath
@NotNull public @NotNull String getElementPath()
-
getContentPath
@NotNull public @NotNull String getContentPath()
-
isContentPrepared
public boolean isContentPrepared()
-
getContentResource
@NotNull public @NotNull org.apache.sling.api.resource.Resource getContentResource()
-
getContentTemplate
@Nullable protected @Nullable org.apache.sling.api.resource.Resource getContentTemplate()
-
prepareContent
@Nullable public @Nullable org.apache.sling.api.resource.Resource prepareContent(boolean resetContent) throws IOException- Throws:
IOException
-
applyTemplate
protected org.apache.sling.api.resource.Resource applyTemplate(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull @NotNull Map<String,Object> properties, @NotNull @NotNull org.apache.sling.api.resource.Resource contentParent, @NotNull @NotNull String name, @NotNull @NotNull org.apache.sling.api.resource.Resource template, boolean resetContent) throws IOException- Throws:
IOException
-
applyProperties
protected void applyProperties(@NotNull @NotNull Map<String,Object> properties, @NotNull @NotNull org.apache.sling.api.resource.ModifiableValueMap content, @NotNull @NotNull org.apache.sling.api.resource.ValueMap template) throws IOException- Throws:
IOException
-
giveSceneContent
protected org.apache.sling.api.resource.Resource giveSceneContent(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull @NotNull String path) throws org.apache.sling.api.resource.PersistenceException- Throws:
org.apache.sling.api.resource.PersistenceException
-
-