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.Resource
configResource
protected @NotNull String
contentPath
protected @NotNull String
contentType
protected @NotNull com.composum.sling.core.BeanContext
context
protected static Map<String,Object>
CRUD_SCENE_FOLDER
protected @NotNull SceneConfigurations.Config
sceneConfig
protected @NotNull String
scenePath
-
Constructor Summary
Constructors Constructor Description Scene(@NotNull com.composum.sling.core.BeanContext context, @NotNull SceneConfigurations.Config sceneConfig, @NotNull String contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyProperties(@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.Resource
applyTemplate(@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.Config
getConfig()
@NotNull String
getContentPath()
@NotNull org.apache.sling.api.resource.Resource
getContentResource()
protected @Nullable org.apache.sling.api.resource.Resource
getContentTemplate()
@NotNull String
getElementPath()
@NotNull String
getFrameUrl(String toolId)
protected Map<String,Object>
getSceneProperties()
protected org.apache.sling.api.resource.Resource
giveSceneContent(@NotNull org.apache.sling.api.resource.ResourceResolver resolver, @NotNull String path)
boolean
isContentPrepared()
@Nullable org.apache.sling.api.resource.Resource
prepareContent(boolean resetContent)
-
-
-
Field Detail
-
context
@NotNull protected final @NotNull com.composum.sling.core.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 com.composum.sling.core.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
-
-