Package org.ametys.plugins.core.group
Class GroupHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.group.GroupHelper
- All Implemented Interfaces:
- LogEnabled,- Component,- Serviceable
Helper class for groups, for common operations on 
Group- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongroup2JSON(GroupIdentity groupIdentity, boolean users) Get group as JSON objectgroup2JSON(Group group, boolean users) Get group as JSON objectgroups2JSON(List<Group> groups, boolean users) Get groups as JSON objectvoidsaxGroup(Group group, ContentHandler handler) Sax a GroupvoidsaxGroup(Group group, ContentHandler handler, String tagName) Sax a GroupvoidsaxGroup(Group group, ContentHandler handler, String tagName, boolean withUsers) Sax a GroupvoidsaxGroupIdentity(GroupIdentity groupIdentity, ContentHandler handler) Sax a Group identityvoidsaxGroupIdentity(GroupIdentity groupIdentity, ContentHandler handler, String tagName) Sax a Group identityvoidsaxGroupIdentity(GroupIdentity groupIdentity, ContentHandler handler, String tagName, boolean withUsers) Sax a Group identityvoidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabledgetLogger, setLogger
- 
Field Details- 
ROLEThe Avalon role
 
- 
- 
Constructor Details- 
GroupHelperpublic GroupHelper()
 
- 
- 
Method Details- 
service- Specified by:
- servicein interface- Serviceable
- Throws:
- ServiceException
 
- 
saxGroupIdentitypublic void saxGroupIdentity(GroupIdentity groupIdentity, ContentHandler handler) throws SAXException Sax a Group identity- Parameters:
- groupIdentity- the group identity to sax
- handler- the content handler
- Throws:
- SAXException- If a SAX error occurs
 
- 
saxGroupIdentitypublic void saxGroupIdentity(GroupIdentity groupIdentity, ContentHandler handler, String tagName) throws SAXException Sax a Group identity- Parameters:
- groupIdentity- the group identity to sax
- handler- the content handler
- tagName- the XML tag for saxed group
- Throws:
- SAXException- If a SAX error occurs
 
- 
saxGroupIdentitypublic void saxGroupIdentity(GroupIdentity groupIdentity, ContentHandler handler, String tagName, boolean withUsers) throws SAXException Sax a Group identity- Parameters:
- groupIdentity- the group identity to sax
- handler- the content handler
- tagName- the XML tag for saxed group
- withUsers- if true, users of the group will be saxed with the group
- Throws:
- SAXException- If a SAX error occurs
 
- 
saxGroupSax a Group- Parameters:
- group- the group to sax
- handler- the content handler
- Throws:
- SAXException- If a SAX error occurs
 
- 
saxGroupSax a Group- Parameters:
- group- the group to sax
- handler- the content handler
- tagName- the XML tag for saxed group
- Throws:
- SAXException- If a SAX error occurs
 
- 
saxGrouppublic void saxGroup(Group group, ContentHandler handler, String tagName, boolean withUsers) throws SAXException Sax a Group- Parameters:
- group- the group to sax
- handler- the content handler
- tagName- the XML tag for saxed group
- withUsers- if true, users of the group will be saxed with the group
- Throws:
- SAXException- If a SAX error occurs
 
- 
group2JSONGet group as JSON object- Parameters:
- groupIdentity- the group identity
- users- true to get users' group
- Returns:
- the group as JSON object
 
- 
group2JSONGet group as JSON object- Parameters:
- group- the group
- users- true to get users' group
- Returns:
- the group as JSON object
 
- 
groups2JSONGet groups as JSON object- Parameters:
- groups- the groups
- users- true to get users' group
- Returns:
- the group as JSON object
 
 
-