public class CmsPublishResource extends CmsListInfoBean
CmsListInfoBean.LockIcon, CmsListInfoBean.StateIconCSS_CLASS_MULTI_LINE| Modifier | Constructor and Description |
|---|---|
protected |
CmsPublishResource()
For serialization.
|
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getDateLastModified()
Gets the last modification date.
|
java.lang.String |
getDateLastModifiedString()
Gets the modification date formatted as a string.
|
CmsUUID |
getId()
Returns the id.
|
CmsPublishResourceInfo |
getInfo()
Returns the additional info.
|
java.lang.String |
getName()
Returns the name.
|
CmsPermissionInfo |
getPermissionInfo()
Returns the permission info.
|
java.util.List<CmsPublishResource> |
getRelated()
Returns the related resources.
|
long |
getSortDate()
Gets the date to be used for sorting.
|
java.lang.String |
getUserLastModified()
Gets the name of the user who last modified the resource.
|
boolean |
isRemovable()
Returns the removable flag.
|
void |
setInfo(CmsPublishResourceInfo info)
Sets the publish resource info.
|
void |
setRemovable(boolean removable)
Enables/disables removability.
|
addAdditionalInfo, addAdditionalInfo, getAdditionalInfo, getIsFolder, getLockIcon, getLockIconTitle, getResourceState, getResourceType, getStateIcon, getSubTitle, getTitle, getType, hasAdditionalInfo, isMarkChangedState, setAdditionalInfo, setIsFolder, setLockIcon, setLockIconTitle, setMarkChangedState, setResourceState, setResourceType, setStateIcon, setSubTitle, setTitlegetBigIconClasses, getSmallIconClasses, setBigIconClasses, setSmallIconClassespublic 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)
id - the resource idname - the resource nametitle - the resource titleresourceType - the resource type namestate - the resource statepermissionInfo - the permission infodateLastModified - the last modification dateuserLastModified - name of the user who last modified the resourcedateLastModifiedStr - the last modification date as a formatted stringremovable - to indicate if the resource can be removed from the user's publish listinfo - the additional information, if anyrelated - the related resourcesprotected CmsPublishResource()
public long getDateLastModified()
public java.lang.String getDateLastModifiedString()
public CmsPublishResourceInfo getInfo()
public java.lang.String getName()
public CmsPermissionInfo getPermissionInfo()
public java.util.List<CmsPublishResource> getRelated()
public long getSortDate()
public java.lang.String getUserLastModified()
public boolean isRemovable()
public void setInfo(CmsPublishResourceInfo info)
info - the publish resource infopublic void setRemovable(boolean removable)
removable - true if the item should be removable