Class CmsResourceTypeBean

    • Method Detail

      • getCreatePath

        public java.lang.String getCreatePath()
        Gets the creation path.

        Returns:
        the creation path
      • getDescription

        public java.lang.String getDescription()
        Returns the description.

        Returns:
        the description
      • getGalleryTypeNames

        public java.util.ArrayList<java.lang.String> getGalleryTypeNames()
        Returns the list with the gallery types names associated with this resource type.

        Returns:
        the gallery type names
      • getNamePattern

        public java.lang.String getNamePattern()
        Returns the naming pattern for new resources.

        Returns:
        the naming pattern
      • getPreviewProviderName

        public java.lang.String getPreviewProviderName()
        Returns the preview provider name.

        Returns:
        the preview provider name
      • getTypeId

        public int getTypeId()
        Returns the resource type id.

        Returns:
        the resource type id
      • isCreatableType

        public boolean isCreatableType()
        Returns if the current user may create a new resource of this type.

        Returns:
        true if the current user may create a new resource of this type
      • isDeactivated

        public boolean isDeactivated()
        Returns if the type is deactivated.

        Returns:
        if the type is deactivated
      • setCreatableType

        public void setCreatableType​(boolean creatableType)
        Sets flag to indicate if the current user may create a new resource of this type.

        Parameters:
        creatableType - true if the current user may create a new resource of this type
      • setCreatePath

        public void setCreatePath​(java.lang.String createPath)
        Sets the creation path.

        Parameters:
        createPath - the creation path
      • setDeactivated

        public void setDeactivated​(boolean deactivated)
        Sets the type deactivated.

        Parameters:
        deactivated - if the type is deactivated
      • setGalleryTypeNames

        public void setGalleryTypeNames​(java.util.ArrayList<java.lang.String> galleryNames)
        Sets the list with the gallery types names associated with this resource type.

        Parameters:
        galleryNames - the list with gallery type names to set
      • setNamePattern

        public void setNamePattern​(java.lang.String pattern)
        Sets the naming pattern for new resources.

        Parameters:
        pattern - the naming pattern for new resources
      • setPreviewProviderName

        public void setPreviewProviderName​(java.lang.String previewProviderName)
        Sets the preview provider name.

        Parameters:
        previewProviderName - the preview provider name to set
      • setTypeId

        public void setTypeId​(int typeId)
        Sets the resource type id.

        Parameters:
        typeId - the resource type id to set