org.opencms.file
Class CmsBackupProject

java.lang.Object
  extended byorg.opencms.file.CmsProject
      extended byorg.opencms.file.CmsBackupProject
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class CmsBackupProject
extends CmsProject
implements java.lang.Cloneable

Describes an OpenCms backup project.

Since:
6.0.0
Version:
$Revision: 1.13 $
Author:
Alexander Kandzior

Field Summary
 
Fields inherited from class org.opencms.file.CmsProject
ONLINE_PROJECT_ID, ONLINE_PROJECT_NAME, PROJECT_STATE_INVISIBLE, PROJECT_STATE_UNLOCKED, PROJECT_TYPE_NORMAL, PROJECT_TYPE_TEMPORARY
 
Constructor Summary
CmsBackupProject(int versionId, int projectId, java.lang.String name, java.lang.String description, int taskId, CmsUUID ownerId, CmsUUID groupId, CmsUUID managerGroupId, long dateCreated, int type, java.sql.Timestamp datePublished, CmsUUID userPublished, java.lang.String namePublisher, java.lang.String nameOwner, java.lang.String nameGroupUsers, java.lang.String nameGroupManagers, java.util.List projectResources)
          Creates a new CmsBackupProject.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this Objects instance.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getGroupName()
          Returns the projects user group name.
 java.lang.String getManagerGroupName()
          Gets the project manager grou pname.
 java.lang.String getOwnerName()
          Gets the ownername.
 java.util.List getProjectResources()
          Returns the project resources (i.e. the "view" of the project).
 CmsUUID getPublishedBy()
          Gets the published-by value.
 java.lang.String getPublishedByName()
          Gets the publishers name.
 long getPublishingDate()
          Returns the publishing date of this project.
 int getVersionId()
          Gets the versionId.
 int hashCode()
           
 
Methods inherited from class org.opencms.file.CmsProject
compareTo, getDateCreated, getDescription, getFlags, getGroupId, getId, getManagerGroupId, getName, getOwnerId, getTaskId, getType, isDeleteAfterPublishing, isInsideProject, isInsideProject, isOnlineProject, isOnlineProject, setDeleteAfterPublishing, setDescription, setFlags, setGroupId, setManagerGroupId, setName, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CmsBackupProject

public CmsBackupProject(int versionId,
                        int projectId,
                        java.lang.String name,
                        java.lang.String description,
                        int taskId,
                        CmsUUID ownerId,
                        CmsUUID groupId,
                        CmsUUID managerGroupId,
                        long dateCreated,
                        int type,
                        java.sql.Timestamp datePublished,
                        CmsUUID userPublished,
                        java.lang.String namePublisher,
                        java.lang.String nameOwner,
                        java.lang.String nameGroupUsers,
                        java.lang.String nameGroupManagers,
                        java.util.List projectResources)
Creates a new CmsBackupProject.

Parameters:
versionId - thw version id for this backup project
projectId - the id to use for this project
name - the name for this project
description - the description for this project
taskId - the task id for this project
ownerId - the owner id for this project
groupId - the group id for this project
managerGroupId - the manager group id for this project
dateCreated - the creation date of this project
type - the type of this project
datePublished - the date this backup project was published
userPublished - the id of the user who published
namePublisher - the name of the user who published
nameOwner - the name of the project owner
nameGroupUsers - the name of the project user group
nameGroupManagers - the name of the project manager group
projectResources - a list of resources that are the project "view"
Method Detail

clone

public java.lang.Object clone()
Returns a clone of this Objects instance.

Overrides:
clone in class CmsProject
Returns:
a clone of this instance

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class CmsProject
See Also:
Object.equals(java.lang.Object)

getGroupName

public java.lang.String getGroupName()
Returns the projects user group name.

Returns:
the projects user group name

getManagerGroupName

public java.lang.String getManagerGroupName()
Gets the project manager grou pname.

Returns:
the projects manager group name

getOwnerName

public java.lang.String getOwnerName()
Gets the ownername.

Returns:
the ownername

getProjectResources

public java.util.List getProjectResources()
Returns the project resources (i.e. the "view" of the project).

Returns:
the project resources

getPublishedBy

public CmsUUID getPublishedBy()
Gets the published-by value.

Returns:
the published-by value

getPublishedByName

public java.lang.String getPublishedByName()
Gets the publishers name.

Returns:
the publishers name

getPublishingDate

public long getPublishingDate()
Returns the publishing date of this project.

Returns:
the publishing date of this project

getVersionId

public int getVersionId()
Gets the versionId.

Returns:
the versionId

hashCode

public int hashCode()
Overrides:
hashCode in class CmsProject
See Also:
Object.hashCode()