Package org.dspace.app.rest.model
Class DSpaceObjectRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<String>
-
- org.dspace.app.rest.model.DSpaceObjectRest
-
- All Implemented Interfaces:
Serializable,RestModel
- Direct Known Subclasses:
BitstreamRest,BundleRest,CollectionRest,CommunityRest,EPersonRest,GroupRest,ItemRest,SiteRest
public abstract class DSpaceObjectRest extends BaseObjectRest<String>
Base REST representation for all the DSpaceObjects- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.model.BaseObjectRest
id
-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description DSpaceObjectRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassgetController()StringgetHandle()StringgetId()MetadataRestgetMetadata()Gets the rest representation of all metadata of the DSpace object.StringgetName()StringgetUuid()voidsetHandle(String handle)voidsetMetadata(MetadataRest metadata)voidsetName(String name)voidsetUuid(String uuid)-
Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, setErrors, setId
-
Methods inherited from class org.dspace.app.rest.model.RestAddressableModel
getCategory, 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
getType, getTypePlural
-
-
-
-
Method Detail
-
getId
public String getId()
- Overrides:
getIdin classBaseObjectRest<String>
-
getUuid
public String getUuid()
-
setUuid
public void setUuid(String uuid)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getHandle
public String getHandle()
-
setHandle
public void setHandle(String handle)
-
getMetadata
public MetadataRest getMetadata()
Gets the rest representation of all metadata of the DSpace object.- Returns:
- the metadata.
-
setMetadata
public void setMetadata(MetadataRest metadata)
-
getController
public Class getController()
- Specified by:
getControllerin classRestAddressableModel
-
-