Package org.opencms.file.history
Class CmsHistoryProject
java.lang.Object
org.opencms.file.CmsProject
org.opencms.file.history.CmsHistoryProject
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<CmsProject>
Describes an OpenCms historical project entry.
- Since:
- 6.9.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.file.CmsProject
CmsProject.CmsProjectType
-
Field Summary
Fields inherited from class org.opencms.file.CmsProject
ONLINE_PROJECT_ID, ONLINE_PROJECT_NAME, PROJECT_FLAG_HIDDEN, PROJECT_FLAG_NONE, PROJECT_HIDDEN_IN_SELECTOR, PROJECT_TYPE_NORMAL, PROJECT_TYPE_TEMPORARY, PROJECT_TYPE_WORKFLOW
-
Constructor Summary
ConstructorDescriptionCmsHistoryProject
(int publishTag, CmsUUID projectId, String name, String description, CmsUUID ownerId, CmsUUID groupId, CmsUUID managerGroupId, long dateCreated, CmsProject.CmsProjectType type, long datePublished, CmsUUID userPublished, List<String> projectResources) Creates a new CmsHistoryProject. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Returns the project manager group name.Returns the projects user group name.getOwnerName
(CmsObject cms) Returns the owner name.Returns the project resources (i.e.Returns the id of the user that published this project.Returns the publishers name.long
Returns the publishing date of this project.int
Returns the publish tag.int
hashCode()
void
setProjectResources
(List<String> projectResources) Sets the projectResources.Methods inherited from class org.opencms.file.CmsProject
checkProjectName, compareTo, getDateCreated, getDescription, getFlags, getGroupId, getId, getManagerGroupId, getName, getOuFqn, getOwnerId, getSimpleName, getType, getUuid, isDeleteAfterPublishing, isHidden, isHiddenFromSelector, isInsideProject, isInsideProject, isOnlineProject, isOnlineProject, isWorkflowProject, setDeleteAfterPublishing, setDescription, setFlags, setGroupId, setHidden, setManagerGroupId, setName, setOwnerId, toString
-
Constructor Details
-
CmsHistoryProject
public CmsHistoryProject(int publishTag, CmsUUID projectId, String name, String description, CmsUUID ownerId, CmsUUID groupId, CmsUUID managerGroupId, long dateCreated, CmsProject.CmsProjectType type, long datePublished, CmsUUID userPublished, List<String> projectResources) Creates a new CmsHistoryProject.- Parameters:
publishTag
- the version id for this historical projectprojectId
- the id to use for this projectname
- the name for this projectdescription
- the description for this projectownerId
- the owner id for this projectgroupId
- the group id for this projectmanagerGroupId
- the manager group id for this projectdateCreated
- the creation date of this projecttype
- the type of this projectdatePublished
- the date this backup project was publisheduserPublished
- the id of the user who publishedprojectResources
- a list of resources that are the project "view"
-
-
Method Details
-
clone
- Overrides:
clone
in classCmsProject
- See Also:
-
equals
- Overrides:
equals
in classCmsProject
- See Also:
-
getGroupManagersName
Returns the project manager group name.- Parameters:
cms
- the current cms context- Returns:
- the projects manager group name
-
getGroupUsersName
Returns the projects user group name.- Parameters:
cms
- the current cms context- Returns:
- the projects user group name
-
getOwnerName
Returns the owner name.- Parameters:
cms
- the current cms context- Returns:
- the owner name
-
getProjectResources
Returns the project resources (i.e. the "view" of the project).- Returns:
- the project resources
-
getPublishedBy
Returns the id of the user that published this project.- Returns:
- the id of the user that published this project
-
getPublishedByName
Returns the publishers name.- Parameters:
cms
- the current cms context- Returns:
- the publishers name
-
getPublishingDate
Returns the publishing date of this project.- Returns:
- the publishing date of this project
-
getPublishTag
Returns the publish tag.- Returns:
- the publish tag
-
hashCode
- Overrides:
hashCode
in classCmsProject
- See Also:
-
setProjectResources
Sets the projectResources.- Parameters:
projectResources
- the projectResources to set
-