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 GroupConfigconfigprotected DocumentModelmodel-
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 booleanequals(Object other)StringgetLabel()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.DocumentModelgetModel()StringgetName()Gets the name of the group.List<String>getParentGroups()Gets the list of groups this group is a member of.inthashCode()voidsetLabel(String label)Sets the label of this group.voidsetMemberGroups(List<String> groups)Sets the list of member groups for this group.voidsetMemberUsers(List<String> users)Sets the list of member users for this group.voidsetName(String name)Sets the name of this group.voidsetParentGroups(List<String> groups)Sets the list of groups this group is member of.StringtoString()
-
-
-
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:NuxeoGroupGets the list of member users of this group.- Specified by:
getMemberUsersin interfaceNuxeoGroup- Returns:
- the list of member users of this group
-
getMemberGroups
public List<String> getMemberGroups()
Description copied from interface:NuxeoGroupGets the list of member groups of this group.- Specified by:
getMemberGroupsin interfaceNuxeoGroup- Returns:
- the list of member groups of this group
-
getParentGroups
public List<String> getParentGroups()
Description copied from interface:NuxeoGroupGets the list of groups this group is a member of.- Specified by:
getParentGroupsin interfaceNuxeoGroup- Returns:
- the list of parent groups of this group
-
setMemberUsers
public void setMemberUsers(List<String> users)
Description copied from interface:NuxeoGroupSets the list of member users for this group.- Specified by:
setMemberUsersin interfaceNuxeoGroup- Parameters:
users- a list of users
-
setMemberGroups
public void setMemberGroups(List<String> groups)
Description copied from interface:NuxeoGroupSets the list of member groups for this group.- Specified by:
setMemberGroupsin interfaceNuxeoGroup- Parameters:
groups- a list of groups
-
setParentGroups
public void setParentGroups(List<String> groups)
Description copied from interface:NuxeoGroupSets the list of groups this group is member of.- Specified by:
setParentGroupsin interfaceNuxeoGroup- Parameters:
groups- a list of groups
-
getName
public String getName()
Description copied from interface:NuxeoGroupGets the name of the group.- Specified by:
getNamein interfaceNuxeoGroup- Returns:
- the name of the group
-
setName
public void setName(String name)
Description copied from interface:NuxeoGroupSets the name of this group.- Specified by:
setNamein interfaceNuxeoGroup- Parameters:
name- the new name of the group
-
getLabel
public String getLabel()
Description copied from interface:NuxeoGroupGets the label of the group- Specified by:
getLabelin interfaceNuxeoGroup- Returns:
- the label of the group
-
setLabel
public void setLabel(String label)
Description copied from interface:NuxeoGroupSets the label of this group.- Specified by:
setLabelin interfaceNuxeoGroup- Parameters:
label- the label of the group
-
getModel
public DocumentModel getModel()
- Specified by:
getModelin interfaceNuxeoGroup
-
-