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
ConstructorDescriptionDataSourceDefinition
(String id, I18nizableText name, I18nizableText description, Map<String, Object> parameters, boolean isPrivate, boolean isDefault) Constructor -
Method Summary
Modifier and TypeMethodDescriptionDuplicate the objectGet the description of the data sourcegetId()
The id of the data sourcegetName()
Get the name of the data sourceGet the parameters of the data source definitionboolean
Returns true if this is a default data sourceboolean
Returns true if this data source instance is privatevoid
setDefault
(boolean isDefault) Set default or not this data source
-
Constructor Details
-
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 Details
-
getId
The id of the data source- Returns:
- the id of the data source
-
getName
Get the name of the data source- Returns:
- the name of the data source
-
getDescription
Get the description of the data source- Returns:
- the description of the data source
-
isPrivate
Returns true if this data source instance is private- Returns:
- true if is private
-
isDefault
Returns true if this is a default data source- Returns:
- true if this is a default data source
-
setDefault
Set default or not this data source- Parameters:
isDefault
- true to set this data source as the default one, false otherwise
-
getParameters
Get the parameters of the data source definition- Returns:
- the parameters
-
duplicate
Duplicate the object- Returns:
- The duplicated object
-