Package org.dspace.app.rest.model
Class PotentialDuplicateRest
java.lang.Object
org.dspace.app.rest.model.RestAddressableModel
org.dspace.app.rest.model.PotentialDuplicateRest
- All Implemented Interfaces:
Serializable,RestModel
REST Model defining a Potential Duplicate for serialisation to JSON
This is used in lists of potential duplicates for submission section data and item link / embeds.
- Author:
- Kim Shepherd
- See Also:
-
Field Summary
FieldsFields 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 TypeMethodDescriptionGet REST resource category.Get REST controller for this model.Get metadata (sorted, field->value list) for duplicate itemGet owning collection name (title) of duplicate itemgetTitle()Get title of duplicate itemgetType()Get REST resource type nameGet REST resource type plural namegetUuid()Get UUID of duplicate itemGet workflow ID for duplicate item, if anhGet workspace ID for duplicate item, if anyvoidsetMetadata(MetadataRest metadata) Set metadata (sorted, field->value list) for duplicate itemvoidsetOwningCollectionName(String owningCollectionName) Set owning collection name (title) of duplicate itemvoidSet title of duplicate itemvoidSet UUID of duplicate itemvoidsetWorkflowItemId(Integer workflowItemId) Set workflow ID for duplicate itemvoidsetWorkspaceItemId(Integer workspaceItemId) Set workspace ID for duplicate itemMethods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
Field Details
-
CATEGORY
- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
PotentialDuplicateRest
public PotentialDuplicateRest()Default constructor
-
-
Method Details
-
getUuid
Get UUID of duplicate item- Returns:
- UUID of duplicate item
-
setUuid
Set UUID of duplicate item- Parameters:
uuid- UUID of duplicate item
-
getTitle
Get title of duplicate item- Returns:
- title of duplicate item
-
setTitle
Set title of duplicate item- Parameters:
title- of duplicate item
-
getOwningCollectionName
Get owning collection name (title) of duplicate item- Returns:
- owning collection name (title) of duplicate item
-
setOwningCollectionName
Set owning collection name (title) of duplicate item- Parameters:
owningCollectionName- owning collection name (title) of duplicate item
-
getMetadata
Get metadata (sorted, field->value list) for duplicate item- Returns:
- (sorted, field->value list) for duplicate item
-
setMetadata
Set metadata (sorted, field->value list) for duplicate item- Parameters:
metadata- MetadataRest list of values mapped to field keys
-
getWorkspaceItemId
Get workspace ID for duplicate item, if any- Returns:
- workspace item ID or null
-
setWorkspaceItemId
Set workspace ID for duplicate item- Parameters:
workspaceItemId- workspace item ID
-
getWorkflowItemId
Get workflow ID for duplicate item, if anh- Returns:
- workflow item ID or null
-
setWorkflowItemId
Set workflow ID for duplicate item- Parameters:
workflowItemId- workspace item ID
-
getType
Get REST resource type name- Returns:
- REST resource type (see static final string)
-
getTypePlural
Get REST resource type plural name- Returns:
- REST resource type plural name (see static final string)
-
getCategory
Get REST resource category. Not implemented as this model is intended for use only as an ItemLink repository and submission section data, it is actually a simple RestModel but has to 'implement' RestAddressableModel to serialize correctly- Specified by:
getCategoryin classRestAddressableModel- Returns:
- null (not implemented)
-
getController
Get REST controller for this model. Not implemented as this model is intended for use only as an ItemLink repository and submission section data, it is actually a simple RestModel but has to 'implement' RestAddressableModel to serialize correctly- Specified by:
getControllerin classRestAddressableModel- Returns:
- null (not implemented)
-