Class GenericView

  • All Implemented Interfaces:
    com.composum.sling.core.bean.RestrictedBean, com.composum.sling.core.SlingBean

    public class GenericView
    extends ConsoleServletBean
    • Constructor Detail

      • GenericView

        public GenericView​(com.composum.sling.core.BeanContext context,
                           org.apache.sling.api.resource.Resource resource)
      • GenericView

        public GenericView​(com.composum.sling.core.BeanContext context)
      • GenericView

        public GenericView()
    • Method Detail

      • initialize

        public void initialize​(com.composum.sling.core.BeanContext context,
                               org.apache.sling.api.resource.Resource resource)
        Specified by:
        initialize in interface com.composum.sling.core.SlingBean
        Overrides:
        initialize in class ConsoleServletBean
      • getId

        @NotNull
        public @NotNull String getId()
        Overrides:
        getId in class com.composum.sling.core.AbstractSlingBean
      • getMappedUrl

        @NotNull
        public @NotNull String getMappedUrl()
      • getUnmappedUrl

        @NotNull
        public @NotNull String getUnmappedUrl()
      • getViewResourceType

        @NotNull
        public @NotNull String getViewResourceType()
      • getTabResourceType

        @NotNull
        public @NotNull String getTabResourceType()
      • getViewType

        @NotNull
        public @NotNull String getViewType()
      • getFileType

        @NotNull
        public @NotNull String getFileType()
      • getFilePath

        @NotNull
        public @NotNull String getFilePath()
      • getFileResource

        @NotNull
        public @NotNull com.composum.sling.core.ResourceHandle getFileResource()
      • isRenderable

        public boolean isRenderable()
      • getFileIcon

        @NotNull
        public @NotNull String getFileIcon()
      • getMimeTypeCss

        @NotNull
        public @NotNull String getMimeTypeCss()
      • getMimeType

        @NotNull
        public @NotNull String getMimeType()
        the content mime type declared for the current resource
      • isImage

        public boolean isImage()
        'true' if the mimetype is of type image
      • isVideo

        public boolean isVideo()
        'true' if the mimetype is of type video