|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.file.CmsGroup
A group in the OpenCms permission system.
CmsUser| Field Summary |
| Fields inherited from interface org.opencms.security.I_CmsPrincipal |
FLAG_DISABLED, FLAG_ENABLED, FLAG_GROUP_PROJECT_MANAGER, FLAG_GROUP_PROJECT_USER, FLAG_GROUP_WORKFLOW_ROLE, PRINCIPAL_GROUP, PRINCIPAL_USER |
| Constructor Summary | |
CmsGroup()
Default Constructor. |
|
CmsGroup(CmsUUID id,
CmsUUID parentId,
String name,
String description,
int flags)
Constructor, creates a new Cms group object. |
|
| Method Summary | |
static void |
checkName(String name)
Validates a group name. |
Object |
clone()
Returns a clone of this Objects instance. |
boolean |
equals(Object obj)
Compares the given object with this principal. |
String |
getDescription()
Returns the description of this group. |
boolean |
getDisabled()
Returns true if this group is disabled. |
int |
getFlags()
Returns this groups flags. |
CmsUUID |
getId()
Returns the id of this group. |
String |
getName()
Returns the name of this group. |
CmsUUID |
getParentId()
Returns the parent id of this group, or UNKNOWN_ID. |
boolean |
getProjectCoWorker()
Returns true if this group is enabled as a project user group. |
boolean |
getProjectManager()
Returns true if this group is enabled as a project manager group. |
boolean |
getRole()
Returns true if this group is enabled as a role for tasks group. |
int |
hashCode()
Returns the hash code of this object. |
boolean |
isEnabled()
Returns the enabled flag. |
void |
setDescription(String description)
Sets the description of this group. |
void |
setDisabled()
Disables this group by setting the FLAG_DISABLED flag. |
void |
setEnabled()
Enables this group by setting the FLAG_ENABLED flag. |
void |
setEnabled(boolean enabled)
Sets the enabled flag. |
void |
setName(String name)
Sets the name. |
void |
setParentId(CmsUUID parentId)
Sets the parent group id of this group. |
void |
setProjectCoWorker(boolean value)
Sets the project user flag for this group to the given value. |
void |
setProjectManager(boolean value)
Sets the project manager flag for this group to the given value. |
void |
setRole(boolean value)
Sets the "role for tasks" flag for this group to the given value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CmsGroup()
public CmsGroup(CmsUUID id,
CmsUUID parentId,
String name,
String description,
int flags)
id - the id of the groupparentId - the parent group of the group (or UNKNOWN_ID)name - the name of the groupdescription - the description of the groupflags - the flags of the group| Method Detail |
public static void checkName(String name)
The parameter should not be empty.
name - the login to validatepublic Object clone()
public boolean equals(Object obj)
I_CmsPrincipal
equals in interface I_CmsPrincipalObject.equals(java.lang.Object)public String getDescription()
public boolean getDisabled()
public int getFlags()
public CmsUUID getId()
getId in interface I_CmsPrincipalpublic String getName()
getName in interface I_CmsPrincipalpublic CmsUUID getParentId()
public boolean getProjectCoWorker()
public boolean getProjectManager()
public boolean getRole()
public int hashCode()
I_CmsPrincipal
hashCode in interface I_CmsPrincipalObject.hashCode()public boolean isEnabled()
It should replace the method.getDisabled()
public void setDescription(String description)
description - the description of this grouppublic void setDisabled()
public void setEnabled()
public void setEnabled(boolean enabled)
It should replace the and
the setDisabled() methods.setEnabled()
enabled - the enabled flagpublic void setName(String name)
name - the name to setpublic void setParentId(CmsUUID parentId)
parentId - the parent group id to setpublic void setProjectCoWorker(boolean value)
value - the value to setpublic void setProjectManager(boolean value)
value - the value to setpublic void setRole(boolean value)
value - the value to setpublic String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||