Class CmsResourceInfoBean

java.lang.Object
org.opencms.gwt.shared.CmsIconBean
org.opencms.ade.galleries.shared.CmsResourceInfoBean
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, I_CmsHasIconClasses
Direct Known Subclasses:
CmsImageInfoBean

public class CmsResourceInfoBean extends CmsIconBean
This bean contains the preview content for the selected item.

Since:
8.0.0
  • Constructor Details

  • Method Details

    • getDescription

      Returns the description of the resource.

      Returns:
      the description
    • getLastModified

      Returns the last modification date.

      Returns:
      the last modification date
    • getNoEditReason

      Returns the no edit reason. If empty editing is allowed.

      Returns:
      the no edit reason
    • getPreviewContent

      Returns the preview content.

      Returns:
      the preview content
    • getProperties

      Returns the properties.

      Returns:
      the properties
    • getPropertyLabel

      public String getPropertyLabel(String propName)
      Gets the label to display for the given property.
      Parameters:
      propName - the property name
      Returns:
      the label to display
    • getResourcePath

      Returns the resource path.

      Returns:
      the resource path
    • getResourceType

      Returns the resource type name.

      Returns:
      the resource type name
    • getSize

      public String getSize()
      Returns the file size.

      Returns:
      the file size
    • getStructureId

      Gets the structure id of the resource.

      Returns:
      the structure id of the resource
    • getTitle

      public String getTitle()
      Returns the title of the resource.

      Returns:
      the title
    • setDescription

      public void setDescription(String description)
      Sets the description of the resource.

      Parameters:
      description - the description to set
    • setLastModified

      public void setLastModified(Date lastModified)
      Sets the last modification date.

      Parameters:
      lastModified - the last modification date to set
    • setNoEditReason

      public void setNoEditReason(String noEditReason)
      Sets the no edit reason.

      Parameters:
      noEditReason - the no edit reason to set
    • setPreviewContent

      public void setPreviewContent(String previewContent)
      Sets the preview content.

      Parameters:
      previewContent - the preview content to set
    • setProperties

      public void setProperties(Map<String,String> propeties)
      Sets the propeties.

      Parameters:
      propeties - the propeties to set
    • setPropertyNiceNames

      public void setPropertyNiceNames(Map<String,String> niceNames)
      Sets the nice names for the properties.
      Parameters:
      niceNames - the nice names (keys are property names, values the corresponding nice names)
    • setResourcePath

      public void setResourcePath(String resourcePath)
      Sets the resource path.

      Parameters:
      resourcePath - the resource path to set
    • setResourceType

      public void setResourceType(String resourceType)
      Sets the resource type name.

      Parameters:
      resourceType - the resource type name to set
    • setSize

      public void setSize(String size)
      Sets the file size.

      Parameters:
      size - the file size to set
    • setStructureId

      public void setStructureId(CmsUUID structureId)
      Sets the resource structure id.

      Parameters:
      structureId - the resource structure id
    • setTitle

      public void setTitle(String title)
      Sets the title of the resource.

      Parameters:
      title - the title to set