Class PotentialDuplicateRest

java.lang.Object
org.dspace.app.rest.model.RestAddressableModel
org.dspace.app.rest.model.PotentialDuplicateRest
All Implemented Interfaces:
Serializable, RestModel

public class PotentialDuplicateRest extends RestAddressableModel
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 Details

  • Constructor Details

    • PotentialDuplicateRest

      public PotentialDuplicateRest()
      Default constructor
  • Method Details

    • getUuid

      public UUID getUuid()
      Get UUID of duplicate item
      Returns:
      UUID of duplicate item
    • setUuid

      public void setUuid(UUID uuid)
      Set UUID of duplicate item
      Parameters:
      uuid - UUID of duplicate item
    • getTitle

      public String getTitle()
      Get title of duplicate item
      Returns:
      title of duplicate item
    • setTitle

      public void setTitle(String title)
      Set title of duplicate item
      Parameters:
      title - of duplicate item
    • getOwningCollectionName

      public String getOwningCollectionName()
      Get owning collection name (title) of duplicate item
      Returns:
      owning collection name (title) of duplicate item
    • setOwningCollectionName

      public void setOwningCollectionName(String owningCollectionName)
      Set owning collection name (title) of duplicate item
      Parameters:
      owningCollectionName - owning collection name (title) of duplicate item
    • getMetadata

      public MetadataRest getMetadata()
      Get metadata (sorted, field->value list) for duplicate item
      Returns:
      (sorted, field->value list) for duplicate item
    • setMetadata

      public void setMetadata(MetadataRest metadata)
      Set metadata (sorted, field->value list) for duplicate item
      Parameters:
      metadata - MetadataRest list of values mapped to field keys
    • getWorkspaceItemId

      public Integer getWorkspaceItemId()
      Get workspace ID for duplicate item, if any
      Returns:
      workspace item ID or null
    • setWorkspaceItemId

      public void setWorkspaceItemId(Integer workspaceItemId)
      Set workspace ID for duplicate item
      Parameters:
      workspaceItemId - workspace item ID
    • getWorkflowItemId

      public Integer getWorkflowItemId()
      Get workflow ID for duplicate item, if anh
      Returns:
      workflow item ID or null
    • setWorkflowItemId

      public void setWorkflowItemId(Integer workflowItemId)
      Set workflow ID for duplicate item
      Parameters:
      workflowItemId - workspace item ID
    • getType

      public String getType()
      Get REST resource type name
      Returns:
      REST resource type (see static final string)
    • getTypePlural

      public String getTypePlural()
      Get REST resource type plural name
      Returns:
      REST resource type plural name (see static final string)
    • getCategory

      public 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:
      getCategory in class RestAddressableModel
      Returns:
      null (not implemented)
    • getController

      public Class 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:
      getController in class RestAddressableModel
      Returns:
      null (not implemented)