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.

        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.

        the last modification date
      • getDateLastModifiedString

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

        the formatted modification date
      • getId

        public CmsUUID getId()
        Returns the id.

        the id
      • getName

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

        the name
      • getSortDate

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

        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.

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

        public boolean isRemovable()
        Returns the removable flag.

        the removable flag
      • setRemovable

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

        removable - true if the item should be removable