Class Scene


  • public class Scene
    extends Object
    • Field Detail

      • context

        @NotNull
        protected final @NotNull BeanContext context
      • 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
      • CRUD_SCENE_FOLDER

        protected static final Map<String,​Object> CRUD_SCENE_FOLDER
    • Method Detail

      • getFrameUrl

        @NotNull
        public @NotNull String getFrameUrl​(String toolId)
      • 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()
      • getSceneProperties

        protected Map<String,​Object> getSceneProperties()
      • 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