Class AbstractDataSourceManager.DataSourceDefinition

    • Constructor Detail

      • 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 Detail

      • getId

        public String getId()
        The id of the data source
        Returns:
        the id of the data source
      • 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