|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.file.CmsGroup
Describes a Cms user group and the methods to access it.
| Field Summary |
| Constructor Summary | |
CmsGroup(int id,
int parent,
String name,
String description,
int flags)
Constructor, creates a new Cms group object. |
|
| Method Summary | |
Object |
clone()
Clones the CmsGroup by creating a new CmsGroup Object. |
boolean |
equals(Object obj)
Compares the overgiven object with this object. |
String |
getDescription()
Returns the description of this group. |
boolean |
getDisabled()
Decides, if this group is disabled. |
int |
getFlags()
Returns the GROUP_FLAGS. |
int |
getId()
Returns the id of a group. |
String |
getName()
Returns the name of this group. |
int |
getParentId()
Returns the id of the parent group of the actual Cms group object, or C_UNKNOWN_ID. |
boolean |
getProjectCoWorker()
Is the Flag ProjectCoWorker set? |
boolean |
getProjectmanager()
Is the Flag Projectmanager set? |
boolean |
getRole()
Is the Flag Role set? |
void |
setDescription(String description)
Sets the description of this group. |
void |
setDisabled()
Disables the group by setting the C_FLAG_DISABLED flag. |
void |
setEnabled()
Enables the flags by setting them to C_FLAG_ENABLED. |
void |
setParentId(int id)
Sets the id of the parent group of the actual Cms group object. |
void |
setProjectCoWorker(boolean f)
sets the PROJECTCOWORKER flag of the group |
void |
setProjectManager(boolean f)
sets the PROJECTMANAGER flag of the group |
void |
setRole(boolean f)
sets the ROLE flag of the group |
String |
toString()
Returns a string-representation for this object. |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CmsGroup(int id,
int parent,
String name,
String description,
int flags)
id - The id of the new group.parent - The parent group of the new group (or C_UNKNOWN_ID).name - The name of the new group.description - The description of the new group.flags - The flags of the new group.| Method Detail |
public Object clone()
clone in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String getDescription()
public boolean getDisabled()
public int getFlags()
public int getId()
public String getName()
public int getParentId()
public boolean getProjectCoWorker()
public boolean getProjectmanager()
public boolean getRole()
public void setDescription(String description)
public void setDisabled()
public void setEnabled()
public void setParentId(int id)
id - The parent-groupidpublic void setProjectCoWorker(boolean f)
public void setProjectManager(boolean f)
public void setRole(boolean f)
public String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||