|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.file.CmsProject
public class CmsProject
Describes an OpenCms project, which contains a set of VFS resources that are being worked on at the same time.
Nested Class Summary | |
---|---|
static class |
CmsProject.CmsProjectType
Enumeration class for project types. |
Field Summary | |
---|---|
static CmsUUID |
ONLINE_PROJECT_ID
The id of the online project. |
static java.lang.String |
ONLINE_PROJECT_NAME
The name of the online project. |
static int |
PROJECT_FLAG_HIDDEN
Indicates that a project is invisible in the workplace. |
static int |
PROJECT_FLAG_NONE
Indicates that a normal project. |
static CmsProject.CmsProjectType |
PROJECT_TYPE_NORMAL
Indicates a normal project. |
static CmsProject.CmsProjectType |
PROJECT_TYPE_TEMPORARY
Indicates a temporary project that is deleted after it is published. |
Constructor Summary | |
---|---|
CmsProject()
Default constructor for gui usage. |
|
CmsProject(CmsUUID projectId,
java.lang.String projectFqn,
java.lang.String description,
CmsUUID ownerId,
CmsUUID groupId,
CmsUUID managerGroupId,
int flags,
long dateCreated,
CmsProject.CmsProjectType type)
Creates a new CmsProject. |
Method Summary | |
---|---|
static void |
checkProjectName(java.lang.String name)
Throws a runtime exception if name is empty. |
java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object o)
Compares this instance to another given object instance of this class . |
boolean |
equals(java.lang.Object obj)
|
long |
getDateCreated()
Returns the creation date of this project. |
java.lang.String |
getDescription()
Returns the description of this project. |
int |
getFlags()
Returns the state of this project. |
CmsUUID |
getGroupId()
Returns the user group id of this project. |
int |
getId()
Deprecated. Use getUuid() instead |
CmsUUID |
getManagerGroupId()
Returns the manager group id of this project. |
java.lang.String |
getName()
Returns the name of this project. |
java.lang.String |
getOuFqn()
Returns the fully qualified name of the associated organizational unit. |
CmsUUID |
getOwnerId()
Returns the user id of the project owner. |
java.lang.String |
getSimpleName()
Returns the simple name of this organizational unit. |
CmsProject.CmsProjectType |
getType()
Returns the type of this project. |
CmsUUID |
getUuid()
Returns the id of this project. |
int |
hashCode()
|
boolean |
isDeleteAfterPublishing()
Returns the delete After Publishing flag. |
boolean |
isHidden()
Returns the 'hidden' flag. |
static boolean |
isInsideProject(java.util.List projectResources,
CmsResource resource)
Checks if the full resource name (including the site root) of a resource matches any of the project resources of a project. |
static boolean |
isInsideProject(java.util.List projectResources,
java.lang.String resourcename)
Checks if the full resource name (including the site root) of a resource matches any of the project resources of a project. |
boolean |
isOnlineProject()
Returns true if this project is the Online project. |
static boolean |
isOnlineProject(CmsUUID projectId)
Returns true if the given project id is the online project id. |
void |
setDeleteAfterPublishing(boolean deleteAfterPublishing)
Sets the delete After Publishing flag. |
void |
setDescription(java.lang.String description)
Sets the description of this project. |
void |
setFlags(int flags)
Sets the flags of this project. |
void |
setGroupId(CmsUUID id)
Sets the user group id of this project. |
void |
setHidden(boolean value)
Sets the 'hidden' flag. |
void |
setManagerGroupId(CmsUUID id)
Sets the manager group id of this project. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setOwnerId(CmsUUID id)
Sets the owner id of this project. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ONLINE_PROJECT_NAME
public static final CmsUUID ONLINE_PROJECT_ID
public static final int PROJECT_FLAG_HIDDEN
public static final int PROJECT_FLAG_NONE
public static final CmsProject.CmsProjectType PROJECT_TYPE_NORMAL
public static final CmsProject.CmsProjectType PROJECT_TYPE_TEMPORARY
Constructor Detail |
---|
public CmsProject()
public CmsProject(CmsUUID projectId, java.lang.String projectFqn, java.lang.String description, CmsUUID ownerId, CmsUUID groupId, CmsUUID managerGroupId, int flags, long dateCreated, CmsProject.CmsProjectType type)
projectId
- the id to use for this projectprojectFqn
- 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 projectflags
- the flags for this projectdateCreated
- the creation date of this projecttype
- the type of this projectMethod Detail |
---|
public static void checkProjectName(java.lang.String name)
name
- the project name to checkpublic static boolean isInsideProject(java.util.List projectResources, CmsResource resource)
projectResources
- a List of project resources as Stringsresource
- the resource to check
public static boolean isInsideProject(java.util.List projectResources, java.lang.String resourcename)
projectResources
- a List of project resources as Stringsresourcename
- the resource to check
public static boolean isOnlineProject(CmsUUID projectId)
projectId
- the project id to check
public java.lang.Object clone()
clone
in class java.lang.Object
Object.clone()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- the other given object instance to compare with
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public long getDateCreated()
public java.lang.String getDescription()
public int getFlags()
public CmsUUID getGroupId()
public int getId()
getUuid()
instead
public CmsUUID getManagerGroupId()
public java.lang.String getName()
public java.lang.String getOuFqn()
public CmsUUID getOwnerId()
public java.lang.String getSimpleName()
public CmsProject.CmsProjectType getType()
public CmsUUID getUuid()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean isDeleteAfterPublishing()
getType()
public boolean isHidden()
getFlags()
public boolean isOnlineProject()
true
if this project is the Online project.
true
if this project is the Online projectpublic void setDeleteAfterPublishing(boolean deleteAfterPublishing)
deleteAfterPublishing
- the delete After Publishing flag to setpublic void setDescription(java.lang.String description)
description
- the description to setpublic void setFlags(int flags)
flags
- the flag to setpublic void setGroupId(CmsUUID id)
id
- the user group id of this projectpublic void setHidden(boolean value)
value
- the value to setpublic void setManagerGroupId(CmsUUID id)
id
- the manager group id of this projectpublic void setName(java.lang.String name)
name
- the name to setpublic void setOwnerId(CmsUUID id)
id
- the id of the new ownerpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |