Class CmsResourceTypeBean

All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, I_CmsHasIconClasses, I_CmsHasTitle, I_CmsHasType

Bean representing resource type information.

Since:
8.0.0
  • Constructor Details

  • Method Details

    • getCreatePath

      Gets the creation path.

      Returns:
      the creation path
    • getDescription

      Returns the description.

      Returns:
      the description
    • getGalleryTypeNames

      Returns the list with the gallery types names associated with this resource type.

      Returns:
      the gallery type names
    • getNamePattern

      Returns the naming pattern for new resources.

      Returns:
      the naming pattern
    • getOrigin

      Returns the origin.

      Returns:
      the origin
    • 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
    • getVisibility

      Gets the visibility.

      Returns:
      the visibility
    • 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(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(ArrayList<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(String pattern)
      Sets the naming pattern for new resources.

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

      public void setOrigin(CmsResourceTypeBean.Origin origin)
      Sets the origin.

      Parameters:
      origin - the origin to set
    • setPreviewProviderName

      public void setPreviewProviderName(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
    • setVisibility

      Sets the visibility.

      Parameters:
      visibility - the new visibility