Package org.ametys.core.datasource
Class AbstractDataSourceManager.DataSourceDefinition
- java.lang.Object
-
- org.ametys.core.datasource.AbstractDataSourceManager.DataSourceDefinition
-
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- AbstractDataSourceManager
public static class AbstractDataSourceManager.DataSourceDefinition extends Object implements Cloneable
This class represents the definition of a data source
-
-
Field Summary
Fields Modifier and Type Field Description private I18nizableText_descriptionprivate String_idprivate boolean_isDefaultprivate boolean_isPrivateprivate I18nizableText_nameprivate Map<String,Object>_parameters
-
Constructor Summary
Constructors Constructor Description DataSourceDefinition(String id, I18nizableText name, I18nizableText description, Map<String,Object> parameters, boolean isPrivate, boolean isDefault)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractDataSourceManager.DataSourceDefinitionduplicate()Duplicate the objectI18nizableTextgetDescription()Get the description of the data sourceStringgetId()The id of the data sourceI18nizableTextgetName()Get the name of the data sourceMap<String,Object>getParameters()Get the parameters of the data source definitionbooleanisDefault()Returns true if this is a default data sourcebooleanisPrivate()Returns true if this data source instance is privatevoidsetDefault(boolean isDefault)Set default or not this data source
-
-
-
Field Detail
-
_name
private I18nizableText _name
-
_description
private I18nizableText _description
-
_parameters
private Map<String,Object> _parameters
-
_isPrivate
private boolean _isPrivate
-
_isDefault
private boolean _isDefault
-
-
Constructor Detail
-
DataSourceDefinition
public DataSourceDefinition(String id, I18nizableText name, I18nizableText description, Map<String,Object> parameters, boolean isPrivate, boolean isDefault)
Constructor- Parameters:
id- the idname- the namedescription- the descriptionparameters- the parametersisPrivate- true if the data source is a private data sourceisDefault- true if the data source is a default data source
-
-
Method Detail
-
getName
public I18nizableText getName()
Get the name of the data source- Returns:
- the name of the data source
-
getDescription
public I18nizableText getDescription()
Get the description of the data source- Returns:
- the description of the data source
-
isPrivate
public boolean isPrivate()
Returns true if this data source instance is private- Returns:
- true if is private
-
isDefault
public boolean isDefault()
Returns true if this is a default data source- Returns:
- true if this is a default data source
-
setDefault
public void setDefault(boolean isDefault)
Set default or not this data source- Parameters:
isDefault- true to set this data source as the default one, false otherwise
-
getParameters
public Map<String,Object> getParameters()
Get the parameters of the data source definition- Returns:
- the parameters
-
duplicate
public AbstractDataSourceManager.DataSourceDefinition duplicate()
Duplicate the object- Returns:
- The duplicated object
-
-