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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.dspace.app.rest.model.BaseObjectRest
idFields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CONTENT_REPORT, CORE, DISCOVER, DUPLICATES, EPERSON, INTEGRATION, LDN, PID, 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, setProjection
-
Field Details
-
NAME
- See Also:
-
PLURAL_NAME
- See Also:
-
CATEGORY
- See Also:
-
RELATIONSHIP_TYPE
- See Also:
-
-
Constructor Details
-
RelationshipRest
public RelationshipRest()
-
-
Method Details
-
getType
-
getTypePlural
-
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
-