Class CmsPublishResource

    • Constructor Detail

      • CmsPublishResource

        public CmsPublishResource​(CmsUUID id,
                                  java.lang.String name,
                                  java.lang.String title,
                                  java.lang.String resourceType,
                                  CmsResourceState state,
                                  CmsPermissionInfo permissionInfo,
                                  long dateLastModified,
                                  java.lang.String userLastModified,
                                  java.lang.String dateLastModifiedStr,
                                  boolean removable,
                                  CmsPublishResourceInfo info,
                                  java.util.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
    • Method Detail

      • getDateLastModified

        public long getDateLastModified()
        Gets the last modification date.

        Returns:
        the last modification date
      • getDateLastModifiedString

        public java.lang.String getDateLastModifiedString()
        Gets the modification date formatted as a string.

        Returns:
        the formatted modification date
      • getId

        public CmsUUID getId()
        Returns the id.

        Returns:
        the id
      • getName

        public java.lang.String getName()
        Returns the name.

        Returns:
        the name
      • getSortDate

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

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

        public java.lang.String 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
      • setRemovable

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

        Parameters:
        removable - true if the item should be removable