Class CmsPublishResource

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

public class CmsPublishResource extends CmsListInfoBean
A publish resource.

Since:
7.6
  • Constructor Details

    • CmsPublishResource

      public CmsPublishResource(CmsUUID id, String name, String title, String resourceType, CmsResourceState state, CmsPermissionInfo permissionInfo, long dateLastModified, String userLastModified, String dateLastModifiedStr, boolean removable, CmsPublishResourceInfo info, List<CmsPublishResource> related)
      Creates a new publish group bean.

      Parameters:
      id - the resource id
      name - the resource name
      title - the resource title
      resourceType - the resource type name
      state - the resource state
      permissionInfo - the permission info
      dateLastModified - the last modification date
      userLastModified - name of the user who last modified the resource
      dateLastModifiedStr - the last modification date as a formatted string
      removable - to indicate if the resource can be removed from the user's publish list
      info - the additional information, if any
      related - the related resources
    • CmsPublishResource

      protected CmsPublishResource()
      For serialization.

  • Method Details

    • getDateLastModified

      public long getDateLastModified()
      Gets the last modification date.

      Returns:
      the last modification date
    • getDateLastModifiedString

      Gets the modification date formatted as a string.

      Returns:
      the formatted modification date
    • getId

      public CmsUUID getId()
      Returns the id.

      Returns:
      the id
    • getInfo

      Returns the additional info.

      Returns:
      the additional info
    • getName

      public String getName()
      Returns the name.

      Returns:
      the name
    • getPermissionInfo

      Returns the permission info.

      Returns:
      the permission info
    • getRelated

      Returns the related resources.

      Returns:
      the related resources
    • getSortDate

      public long getSortDate()
      Gets the date to be used for sorting.

      Returns:
      the date which should be used for sorting
    • getUserLastModified

      Gets the name of the user who last modified the resource.

      Returns:
      the name of the user who last modified the resource
    • isRemovable

      public boolean isRemovable()
      Returns the removable flag.

      Returns:
      the removable flag
    • setInfo

      public void setInfo(CmsPublishResourceInfo info)
      Sets the publish resource info.

      Parameters:
      info - the publish resource info
    • setRemovable

      public void setRemovable(boolean removable)
      Enables/disables removability.

      Parameters:
      removable - true if the item should be removable