org.ametys.plugins.datainclusion.data
Class AbstractDataSource

java.lang.Object
  extended by org.ametys.plugins.datainclusion.data.AbstractDataSource
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
LdapDataSource, SqlDataSource

public abstract class AbstractDataSource
extends Object
implements DataSource

An abstract data source : provides common fields and methods to access it.


Field Summary
protected  String _description
          The data source description.
protected  String _id
          The data source id.
protected  String _name
          The data source name.
 
Constructor Summary
AbstractDataSource()
           
 
Method Summary
 String getDescription()
          Get the datasource description.
 String getId()
          Get the datasource ID.
 String getName()
          Get the datasource name.
 void setDescription(String description)
          Set the data source description.
 void setId(String id)
          Set the data source id.
 void setName(String name)
          Set the data source name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ametys.plugins.datainclusion.data.DataSource
getAdditionalValues, getQueries, getType
 

Field Detail

_id

protected String _id
The data source id.


_name

protected String _name
The data source name.


_description

protected String _description
The data source description.

Constructor Detail

AbstractDataSource

public AbstractDataSource()
Method Detail

getId

public String getId()
Description copied from interface: DataSource
Get the datasource ID.

Specified by:
getId in interface DataSource
Returns:
the datasource ID.

setId

public void setId(String id)
Set the data source id.

Parameters:
id -

getName

public String getName()
Description copied from interface: DataSource
Get the datasource name.

Specified by:
getName in interface DataSource
Returns:
the datasource name.

setName

public void setName(String name)
Set the data source name.

Parameters:
name -

getDescription

public String getDescription()
Description copied from interface: DataSource
Get the datasource description.

Specified by:
getDescription in interface DataSource
Returns:
the datasource description.

setDescription

public void setDescription(String description)
Set the data source description.

Parameters:
description -


Copyright © 2010 Anyware Services. All Rights Reserved.