Package org.ametys.core.group
Class GroupDirectoryDAO
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.group.GroupDirectoryDAO
- All Implemented Interfaces:
LogEnabled
,Disposable
,Initializable
,Component
,Serviceable
public class GroupDirectoryDAO
extends AbstractLogEnabled
implements Component, Initializable, Serviceable, Disposable
DAO for accessing
GroupDirectory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds a new group directoryvoid
dispose()
Edits the given group directoryGets the configuration for creating/editing a group directory.Gets all the group directories of this applicationGets all the group directories to JSON formatGets the list of the ids of all the group directories of the applicationGets a group directory by its id.getGroupDirectory2Json
(GroupDirectory groupDirectory) gets a group directory to JSON formatGets the values of the parameters of the given group directoryvoid
Removes the given group directoryvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
GroupDirectoryDAO
public GroupDirectoryDAO()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceInitializable
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getGroupDirectories2Json
Gets all the group directories to JSON format- Returns:
- A list of object representing the
GroupDirectories
-
getGroupDirectory2Json
gets a group directory to JSON format- Parameters:
groupDirectory
- The group directory to get- Returns:
- An object representing a
GroupDirectory
-
getGroupDirectories
Gets all the group directories of this application- Returns:
- A list of
GroupDirectories
-
getGroupDirectory
Gets a group directory by its id.- Parameters:
id
- The id of the group directory- Returns:
- The
GroupDirectory
, or null if not found
-
getGroupDirectoriesIds
Gets the list of the ids of all the group directories of the application- Returns:
- The list of the ids of all the group directories
-
getEditionConfiguration
Gets the configuration for creating/editing a group directory.- Returns:
- A map containing information about what is needed to create/edit a group directory
- Throws:
Exception
- If an error occurs.
-
getGroupDirectoryParameterValues
Gets the values of the parameters of the given group directory- Parameters:
id
- The id of the group directory- Returns:
- The values of the parameters
-
add
Adds a new group directory- Parameters:
id
- The unique id of the group directorylabel
- The label of the group directorymodelId
- The id of the group directory modelparams
- The parameters of the group directory- Returns:
- A map containing the id of the created group directory, or the kind of error that occured
-
edit
Edits the given group directory- Parameters:
id
- The id of the group directory to editlabel
- The label of the group directorymodelId
- The id of the group directory modelparams
- The parameters of the group directory- Returns:
- A map containing the id of the edited group directory, or the kind of error that occured
-
remove
Removes the given group directory- Parameters:
id
- The id of the group directory to remove- Returns:
- A map containing the id of the removed group directory
-
dispose
- Specified by:
dispose
in interfaceDisposable
-