Class Datasource
- java.lang.Object
-
- com.gentics.contentnode.rest.model.Datasource
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DatasourceInPackage
public class Datasource extends Object implements Serializable
REST Model of a datasource- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Datasource()
Create empty instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGlobalId()
Global IDInteger
getId()
Internal IDString
getName()
NameDatasourceType
getType()
Datasource typeDatasource
setGlobalId(String globalId)
Set the global IDDatasource
setId(Integer id)
Set the internal IDDatasource
setName(String name)
Set the nameDatasource
setType(DatasourceType type)
Set the type
-
-
-
Method Detail
-
getId
public Integer getId()
Internal ID- Returns:
- internal ID
-
setId
public Datasource setId(Integer id)
Set the internal ID- Parameters:
id
- ID- Returns:
- fluent API
-
getGlobalId
public String getGlobalId()
Global ID- Returns:
- global ID
-
setGlobalId
public Datasource setGlobalId(String globalId)
Set the global ID- Parameters:
globalId
-- Returns:
- fluent API
-
getType
public DatasourceType getType()
Datasource type- Returns:
- type
-
setType
public Datasource setType(DatasourceType type)
Set the type- Parameters:
type
- type- Returns:
- fluent API
-
getName
public String getName()
Name- Returns:
- name
-
setName
public Datasource setName(String name)
Set the name- Parameters:
name
- name- Returns:
- fluent API
-
-