Class SuggestionTarget

java.lang.Object
org.dspace.app.suggestion.SuggestionTarget

public class SuggestionTarget extends Object
This DTO class is used to pass around the number of suggestions available from a specific source for a target repository item
Author:
Andrea Bollini (andrea.bollini at 4science.it)
  • Constructor Details

    • SuggestionTarget

      public SuggestionTarget()
    • SuggestionTarget

      public SuggestionTarget(Item item)
      Wrap a target repository item (usually a person item) into a suggestion target.
      Parameters:
      item - must be not null
  • Method Details

    • getID

      public String getID()
      The suggestion target uses the concatenation of the source and target uuid separated by colon as id
      Returns:
      the source:uuid of the wrapped item
    • getTarget

      public Item getTarget()
    • setTarget

      public void setTarget(Item target)
    • getSource

      public String getSource()
    • setSource

      public void setSource(String source)
    • getTotal

      public int getTotal()
    • setTotal

      public void setTotal(int total)