Package org.dspace.app.rest.model
Class ExternalSourceRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<String>
-
- org.dspace.app.rest.model.ExternalSourceRest
-
- All Implemented Interfaces:
Serializable,RestModel
@LinksRest(links=@LinkRest(name="entityTypes",method="getSupportedEntityTypes")) public class ExternalSourceRest extends BaseObjectRest<String>
This class serves as a REST representation for an External Source- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYstatic StringENTITY_TYPESstatic StringNAMEstatic StringPLURAL_NAME-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, TOOLS, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description ExternalSourceRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()ClassgetController()StringgetId()Generic getter for the idStringgetName()Generic getter for the nameStringgetType()booleanisHierarchical()Generic getter for the hierarchicalvoidsetHierarchical(boolean hierarchical)Generic setter for the hierarchicalvoidsetId(String id)Generic setter for the idvoidsetName(String name)Generic setter for the name-
Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, setErrors
-
Methods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.model.RestModel
getTypePlural
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
PLURAL_NAME
public static final String PLURAL_NAME
- See Also:
- Constant Field Values
-
CATEGORY
public static final String CATEGORY
- See Also:
- Constant Field Values
-
ENTITY_TYPES
public static final String ENTITY_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCategory
public String getCategory()
- Specified by:
getCategoryin classRestAddressableModel
-
getController
public Class getController()
- Specified by:
getControllerin classRestAddressableModel
-
getType
public String getType()
-
getId
public String getId()
Generic getter for the id- Overrides:
getIdin classBaseObjectRest<String>- Returns:
- the id value of this ExternalSourceRest
-
setId
public void setId(String id)
Generic setter for the id- Overrides:
setIdin classBaseObjectRest<String>- Parameters:
id- The id to be set on this ExternalSourceRest
-
getName
public String getName()
Generic getter for the name- Returns:
- the name value of this ExternalSourceRest
-
setName
public void setName(String name)
Generic setter for the name- Parameters:
name- The name to be set on this ExternalSourceRest
-
isHierarchical
public boolean isHierarchical()
Generic getter for the hierarchical- Returns:
- the hierarchical value of this ExternalSourceRest
-
setHierarchical
public void setHierarchical(boolean hierarchical)
Generic setter for the hierarchical- Parameters:
hierarchical- The hierarchical to be set on this ExternalSourceRest
-
-