public static class AbstractDataSourceManager.DataSourceDefinition extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
private I18nizableText |
_description |
private String |
_id |
private boolean |
_isDefault |
private boolean |
_isPrivate |
private I18nizableText |
_name |
private Map<String,Object> |
_parameters |
Constructor and Description |
---|
DataSourceDefinition(String id,
I18nizableText name,
I18nizableText description,
Map<String,Object> parameters,
boolean isPrivate,
boolean isDefault)
Constructor
|
Modifier and Type | Method and Description |
---|---|
AbstractDataSourceManager.DataSourceDefinition |
duplicate()
Duplicate the object
|
I18nizableText |
getDescription()
Get the description of the data source
|
String |
getId()
The id of the data source
|
I18nizableText |
getName()
Get the name of the data source
|
Map<String,Object> |
getParameters()
Get the parameters of the data source definition
|
boolean |
isDefault()
Returns true if this is a default data source
|
boolean |
isPrivate()
Returns true if this data source instance is private
|
void |
setDefault(boolean isDefault)
Set default or not this data source
|
private I18nizableText _name
private I18nizableText _description
private Map<String,Object> _parameters
private boolean _isPrivate
private boolean _isDefault
public DataSourceDefinition(String id, I18nizableText name, I18nizableText description, Map<String,Object> parameters, boolean isPrivate, boolean isDefault)
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 sourcepublic I18nizableText getName()
public I18nizableText getDescription()
public boolean isPrivate()
public boolean isDefault()
public void setDefault(boolean isDefault)
isDefault
- true to set this data source as the default one, false otherwisepublic Map<String,Object> getParameters()
public AbstractDataSourceManager.DataSourceDefinition duplicate()