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 Details

    • DataSourceDefinition

      public DataSourceDefinition(String id, I18nizableText name, I18nizableText description, Map<String,Object> parameters, boolean isPrivate, boolean isDefault)
      Constructor
      Parameters:
      id - the id
      name - the name
      description - the description
      parameters - the parameters
      isPrivate - true if the data source is a private data source
      isDefault - true if the data source is a default data source
  • Method Details

    • getId

      public String 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

      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

      Get the parameters of the data source definition
      Returns:
      the parameters
    • duplicate

      Duplicate the object
      Returns:
      The duplicated object