Package org.dspace.app.rest.model
Class RelationshipRest
- All Implemented Interfaces:
Serializable,RestModel
@LinksRest(links=@LinkRest(name="relationshipType",method="getRelationshipType"))
public class RelationshipRest
extends BaseObjectRest<Integer>
This class acts as the REST representation of the Relationship model class.
This class acts as a data holder for the RelationshipResource
Refer to
Relationship for explanation about the properties- See Also:
-
Field Summary
FieldsFields inherited from class org.dspace.app.rest.model.BaseObjectRest
idFields 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 -
Method Summary
Modifier and TypeMethodDescriptionintintgetType()voidvoidsetLeftPlace(int leftPlace) voidsetLeftwardValue(String leftwardValue) voidsetRelationshipType(RelationshipTypeRest relationshipType) voidsetRightId(UUID rightId) voidsetRightPlace(int rightPlace) voidsetRightwardValue(String rightwardValue) Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, getId, setErrors, setIdMethods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.app.rest.model.RestModel
getTypePlural
-
Field Details
-
NAME
- See Also:
-
CATEGORY
- See Also:
-
RELATIONSHIP_TYPE
- See Also:
-
-
Constructor Details
-
RelationshipRest
public RelationshipRest()
-
-
Method Details
-
getType
-
getCategory
- Specified by:
getCategoryin classRestAddressableModel
-
getController
- Specified by:
getControllerin classRestAddressableModel
-
getLeftId
-
setLeftId
-
getRelationshipType
-
setRelationshipType
-
getRightId
-
setRightId
-
getLeftPlace
public int getLeftPlace() -
setLeftPlace
public void setLeftPlace(int leftPlace) -
getRightPlace
public int getRightPlace() -
setRightPlace
public void setRightPlace(int rightPlace) -
getRightwardValue
-
setRightwardValue
-
getLeftwardValue
-
setLeftwardValue
-