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
-
-
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.DataSourceDefinition
duplicate()
Duplicate the objectI18nizableText
getDescription()
Get the description of the data sourceString
getId()
The id of the data sourceI18nizableText
getName()
Get the name of the data sourceMap<String,Object>
getParameters()
Get the parameters of the data source definitionboolean
isDefault()
Returns true if this is a default data sourceboolean
isPrivate()
Returns true if this data source instance is privatevoid
setDefault(boolean isDefault)
Set default or not this data source
-
-
-
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
-
-