public class CmsPublishResource
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable
限定符 | 构造器和说明 |
---|---|
protected |
CmsPublishResource()
For serialization.
|
|
CmsPublishResource(CmsUUID id,
java.lang.String name,
java.lang.String title,
java.lang.String resourceType,
CmsResourceState state,
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.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
java.util.List<CmsPublishResource> |
getRelated()
Returns the related resources.
|
java.lang.String |
getResourceType()
Returns the resource type name.
|
long |
getSortDate()
Gets the date to be used for sorting.
|
CmsResourceState |
getState()
Returns the state.
|
java.lang.String |
getTitle()
Returns the title.
|
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.
|
public CmsPublishResource(CmsUUID id, java.lang.String name, java.lang.String title, java.lang.String resourceType, CmsResourceState state, 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 statedateLastModified
- 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 CmsUUID getId()
public CmsPublishResourceInfo getInfo()
public java.lang.String getName()
public java.util.List<CmsPublishResource> getRelated()
public java.lang.String getResourceType()
public long getSortDate()
public CmsResourceState getState()
public java.lang.String getTitle()
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