Package org.opencms.ade.publish.shared
Class CmsProjectBean
java.lang.Object
org.opencms.ade.publish.shared.CmsProjectBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,Comparable<CmsProjectBean>
public class CmsProjectBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable, Comparable<CmsProjectBean>
A project bean.
- Since:
- 7.6
-
Constructor Summary
ModifierConstructorDescriptionprotected
For serialization.CmsProjectBean
(CmsUUID id, int type, String name, String description) Creates a new project bean. -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(CmsProjectBean otherProject) The default name to use for publish groups computed from this project, if no other name is available.Returns the project description.getId()
Returns the id.getName()
Returns the name.int
getRank()
Gets the sorting rank.int
getType()
Returns the project type.boolean
Returns if the project is of the type workflow project.void
setDefaultGroupName
(String defaultGroupName) Sets the default publish group name.void
setRank
(int rank) Sets the sorting rank.
-
Constructor Details
-
CmsProjectBean
Creates a new project bean.- Parameters:
id
- the project idtype
- the project typename
- the project namedescription
- the project description
-
CmsProjectBean
protected CmsProjectBean()For serialization.
-
-
Method Details
-
getDefaultGroupName
The default name to use for publish groups computed from this project, if no other name is available.- Returns:
- the default publish group name
-
getDescription
Returns the project description.- Returns:
- the project description
-
getId
Returns the id.- Returns:
- the id
-
getName
Returns the name.- Returns:
- the name
-
getRank
Gets the sorting rank.- Returns:
- the sorting rank
-
getType
Returns the project type.- Returns:
- the project type
-
isWorkflowProject
Returns if the project is of the type workflow project.- Returns:
true
if the project is of the type workflow project
-
setDefaultGroupName
Sets the default publish group name.- Parameters:
defaultGroupName
- the default publish group name
-
setRank
Sets the sorting rank.- Parameters:
rank
- the sorting rank