Class NuxeoGroupImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.usermanager.NuxeoGroupImpl
-
- All Implemented Interfaces:
Serializable
,NuxeoGroup
public class NuxeoGroupImpl extends Object implements NuxeoGroup
- Author:
- George Lefter
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected GroupConfig
config
protected DocumentModel
model
-
Fields inherited from interface org.nuxeo.ecm.core.api.NuxeoGroup
PREFIX
-
-
Constructor Summary
Constructors Constructor Description NuxeoGroupImpl(String name)
NuxeoGroupImpl(String name, String label)
NuxeoGroupImpl(DocumentModel model, GroupConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getLabel()
Gets the label of the groupList<String>
getMemberGroups()
Gets the list of member groups of this group.List<String>
getMemberUsers()
Gets the list of member users of this group.DocumentModel
getModel()
String
getName()
Gets the name of the group.List<String>
getParentGroups()
Gets the list of groups this group is a member of.int
hashCode()
void
setLabel(String label)
Sets the label of this group.void
setMemberGroups(List<String> groups)
Sets the list of member groups for this group.void
setMemberUsers(List<String> users)
Sets the list of member users for this group.void
setName(String name)
Sets the name of this group.void
setParentGroups(List<String> groups)
Sets the list of groups this group is member of.String
toString()
-
-
-
Field Detail
-
model
protected DocumentModel model
-
config
protected GroupConfig config
-
-
Constructor Detail
-
NuxeoGroupImpl
public NuxeoGroupImpl(String name)
-
NuxeoGroupImpl
public NuxeoGroupImpl(DocumentModel model, GroupConfig config)
-
-
Method Detail
-
getMemberUsers
public List<String> getMemberUsers()
Description copied from interface:NuxeoGroup
Gets the list of member users of this group.- Specified by:
getMemberUsers
in interfaceNuxeoGroup
- Returns:
- the list of member users of this group
-
getMemberGroups
public List<String> getMemberGroups()
Description copied from interface:NuxeoGroup
Gets the list of member groups of this group.- Specified by:
getMemberGroups
in interfaceNuxeoGroup
- Returns:
- the list of member groups of this group
-
getParentGroups
public List<String> getParentGroups()
Description copied from interface:NuxeoGroup
Gets the list of groups this group is a member of.- Specified by:
getParentGroups
in interfaceNuxeoGroup
- Returns:
- the list of parent groups of this group
-
setMemberUsers
public void setMemberUsers(List<String> users)
Description copied from interface:NuxeoGroup
Sets the list of member users for this group.- Specified by:
setMemberUsers
in interfaceNuxeoGroup
- Parameters:
users
- a list of users
-
setMemberGroups
public void setMemberGroups(List<String> groups)
Description copied from interface:NuxeoGroup
Sets the list of member groups for this group.- Specified by:
setMemberGroups
in interfaceNuxeoGroup
- Parameters:
groups
- a list of groups
-
setParentGroups
public void setParentGroups(List<String> groups)
Description copied from interface:NuxeoGroup
Sets the list of groups this group is member of.- Specified by:
setParentGroups
in interfaceNuxeoGroup
- Parameters:
groups
- a list of groups
-
getName
public String getName()
Description copied from interface:NuxeoGroup
Gets the name of the group.- Specified by:
getName
in interfaceNuxeoGroup
- Returns:
- the name of the group
-
setName
public void setName(String name)
Description copied from interface:NuxeoGroup
Sets the name of this group.- Specified by:
setName
in interfaceNuxeoGroup
- Parameters:
name
- the new name of the group
-
getLabel
public String getLabel()
Description copied from interface:NuxeoGroup
Gets the label of the group- Specified by:
getLabel
in interfaceNuxeoGroup
- Returns:
- the label of the group
-
setLabel
public void setLabel(String label)
Description copied from interface:NuxeoGroup
Sets the label of this group.- Specified by:
setLabel
in interfaceNuxeoGroup
- Parameters:
label
- the label of the group
-
getModel
public DocumentModel getModel()
- Specified by:
getModel
in interfaceNuxeoGroup
-
-