org.opencms.ade.publish.shared
Class CmsPublishResource

java.lang.Object
  extended by org.opencms.ade.publish.shared.CmsPublishResource
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsPublishResource
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

A publish resource.

Since:
7.6

Constructor Summary
protected CmsPublishResource()
          For serialization.
  CmsPublishResource(CmsUUID id, java.lang.String name, java.lang.String title, java.lang.String resourceType, CmsResourceState state, long dateLastModified, boolean removable, CmsPublishResourceInfo info, java.util.List<CmsPublishResource> related)
          Creates a new publish group bean.
 
Method Summary
 long getDateLastModified()
          Gets the last modification date.
 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.
 CmsResourceState getState()
          Returns the state.
 java.lang.String getTitle()
          Returns the title.
 boolean isRemovable()
          Returns the removable flag.
 void setInfo(CmsPublishResourceInfo info)
          Sets the publish resource info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsPublishResource

public CmsPublishResource(CmsUUID id,
                          java.lang.String name,
                          java.lang.String title,
                          java.lang.String resourceType,
                          CmsResourceState state,
                          long dateLastModified,
                          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
dateLastModified - the last modification date
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 Detail

getDateLastModified

public long getDateLastModified()
Gets the last modification date.

Returns:
the last modification date

setInfo

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

Parameters:
info - the publish resource info

getId

public CmsUUID getId()
Returns the id.

Returns:
the id

getInfo

public CmsPublishResourceInfo getInfo()
Returns the additional info.

Returns:
the additional info

getName

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

Returns:
the name

getRelated

public java.util.List<CmsPublishResource> getRelated()
Returns the related resources.

Returns:
the related resources

getResourceType

public java.lang.String getResourceType()
Returns the resource type name.

Returns:
the resource type name

getState

public CmsResourceState getState()
Returns the state.

Returns:
the state

getTitle

public java.lang.String getTitle()
Returns the title.

Returns:
the title

isRemovable

public boolean isRemovable()
Returns the removable flag.

Returns:
the removable flag