Class GroupHome
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.database.authentication.business.GroupHome
This class provides instances management methods (create, find, ...) for Group right objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic GroupCreation of an instance of a modestatic Collection<Group>findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the groups listfindByFilter(GroupFilter gFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the filtered groups liststatic GroupfindByPrimaryKey(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of an group whose identifier is specified in parameterstatic fr.paris.lutece.util.ReferenceListgetGroupsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the list of all groupsstatic voidRemove the mode whose identifier is specified in parameterstatic GroupUpdate of the mode which is specified
-
Method Details
-
create
Creation of an instance of a mode- Parameters:
group- An instance of a group which contains the informations to createplugin- Plugin- Returns:
- The instance of a mode which has been created with its primary key.
-
update
Update of the mode which is specified- Parameters:
group- The instance of the group which contains the data to storeplugin- Plugin- Returns:
- The instance of the mode which has been updated
-
remove
Remove the mode whose identifier is specified in parameter- Parameters:
strGroupKey- The identifier of the group to removeplugin- Plugin
-
findByPrimaryKey
public static Group findByPrimaryKey(String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns an instance of an group whose identifier is specified in parameter- Parameters:
strGroupKey- The mode primary keyplugin- Plugin- Returns:
- an instance of a group
-
getGroupsList
public static fr.paris.lutece.util.ReferenceList getGroupsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the list of all groups- Parameters:
plugin- Plugin- Returns:
- A ReferenceList of groups
-
findAll
Returns the groups list- Parameters:
plugin- Plugin- Returns:
- Collection of Group
-
findByFilter
public static List<Group> findByFilter(GroupFilter gFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the filtered groups list- Parameters:
gFilter- filterplugin- Plugin- Returns:
- List of Group
-