Package org.ametys.core.group.directory
Class DefaultGroupDirectoryModel
- java.lang.Object
-
- org.ametys.core.group.directory.DefaultGroupDirectoryModel
-
- All Implemented Interfaces:
GroupDirectoryModel
public class DefaultGroupDirectoryModel extends Object implements GroupDirectoryModel
Default implementation ofGroupDirectoryModel
-
-
Field Summary
Fields Modifier and Type Field Description private I18nizableText
_description
private Class<GroupDirectory>
_groupDirectoryClass
private Configuration
_groupDirectoryConfig
private String
_id
private I18nizableText
_label
private Map<String,? extends ElementDefinition>
_parameters
private String
_pluginName
-
Constructor Summary
Constructors Constructor Description DefaultGroupDirectoryModel(String id, Class<GroupDirectory> groupDirectoryClass, Configuration groupDirectoryConfig, I18nizableText label, I18nizableText description, Map<String,? extends ElementDefinition> parameters, String pluginName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getDescription()
Get the description text of the directory.Class<GroupDirectory>
getGroupDirectoryClass()
Get the group directory classConfiguration
getGroupDirectoryConfiguration()
Get the additional configuration for the implementation ofGroupDirectory
String
getId()
Get the id of this user directoryI18nizableText
getLabel()
Get the label of the directory.Map<String,? extends ElementDefinition>
getParameters()
Get the configuration parametersString
getPluginName()
Returns the plugin name of declaration (for debug purpose)
-
-
-
Field Detail
-
_groupDirectoryClass
private Class<GroupDirectory> _groupDirectoryClass
-
_groupDirectoryConfig
private Configuration _groupDirectoryConfig
-
_label
private I18nizableText _label
-
_description
private I18nizableText _description
-
_parameters
private Map<String,? extends ElementDefinition> _parameters
-
_pluginName
private String _pluginName
-
-
Constructor Detail
-
DefaultGroupDirectoryModel
public DefaultGroupDirectoryModel(String id, Class<GroupDirectory> groupDirectoryClass, Configuration groupDirectoryConfig, I18nizableText label, I18nizableText description, Map<String,? extends ElementDefinition> parameters, String pluginName)
Constructor- Parameters:
id
- The unique identifier of this group directory modelgroupDirectoryClass
- TheGroupDirectory
classgroupDirectoryConfig
- Additional configuration forGroupDirectory
class. Can be empty.label
- The i18n labeldescription
- The i18n descriptionparameters
- the parameterspluginName
- the plugin's name of declaration (for debug purpose)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:GroupDirectoryModel
Get the id of this user directory- Specified by:
getId
in interfaceGroupDirectoryModel
- Returns:
- the id of this user directory
-
getLabel
public I18nizableText getLabel()
Description copied from interface:GroupDirectoryModel
Get the label of the directory.- Specified by:
getLabel
in interfaceGroupDirectoryModel
- Returns:
- the label of the directory
-
getDescription
public I18nizableText getDescription()
Description copied from interface:GroupDirectoryModel
Get the description text of the directory.- Specified by:
getDescription
in interfaceGroupDirectoryModel
- Returns:
- the description of the directory
-
getParameters
public Map<String,? extends ElementDefinition> getParameters()
Description copied from interface:GroupDirectoryModel
Get the configuration parameters- Specified by:
getParameters
in interfaceGroupDirectoryModel
- Returns:
- The configuration parameters
-
getPluginName
public String getPluginName()
Description copied from interface:GroupDirectoryModel
Returns the plugin name of declaration (for debug purpose)- Specified by:
getPluginName
in interfaceGroupDirectoryModel
- Returns:
- the plugin name
-
getGroupDirectoryClass
public Class<GroupDirectory> getGroupDirectoryClass()
Description copied from interface:GroupDirectoryModel
Get the group directory class- Specified by:
getGroupDirectoryClass
in interfaceGroupDirectoryModel
- Returns:
- the group directory class
-
getGroupDirectoryConfiguration
public Configuration getGroupDirectoryConfiguration()
Description copied from interface:GroupDirectoryModel
Get the additional configuration for the implementation ofGroupDirectory
- Specified by:
getGroupDirectoryConfiguration
in interfaceGroupDirectoryModel
- Returns:
- the additional configuration.
-
-