Class RequestItem

java.lang.Object
org.dspace.app.requestitem.RequestItem
All Implemented Interfaces:
ReloadableEntity<Integer>

@Entity public class RequestItem extends Object implements ReloadableEntity<Integer>
Object representing an Item Request.
  • Constructor Details

  • Method Details

    • getID

      public Integer getID()
      Description copied from interface: ReloadableEntity
      The unique identifier of this entity instance.
      Specified by:
      getID in interface ReloadableEntity<Integer>
      Returns:
      the value of the primary key for this instance.
    • setAllfiles

      public void setAllfiles(boolean allfiles)
    • isAllfiles

      public boolean isAllfiles()
      Returns:
      true if all of the Item's files are requested.
    • getReqMessage

      public String getReqMessage()
      Returns:
      a message from the requester.
    • getReqName

      public String getReqName()
      Returns:
      Human-readable name of the user requesting access.
    • getReqEmail

      public String getReqEmail()
      Returns:
      address of the user requesting access.
    • getToken

      public String getToken()
      Returns:
      a unique request identifier which can be emailed to the *approver* of the request. This is not the same as the access token, which is used by the requester to access the item after approval.
    • getItem

      public Item getItem()
    • getBitstream

      public Bitstream getBitstream()
    • getDecision_date

      public Instant getDecision_date()
    • setDecision_date

      public void setDecision_date(Instant decision_date)
    • isAccept_request

      public boolean isAccept_request()
    • setAccept_request

      public void setAccept_request(boolean accept_request)
    • getExpires

      public Instant getExpires()
    • getRequest_date

      public Instant getRequest_date()
    • getAccess_token

      public String getAccess_token()
      Returns:
      A unique token to be used by the requester when granted access to the resource, which can be emailed upon approval
    • setAccess_token

      public void setAccess_token(String access_token)
    • getAccess_expiry

      public Instant getAccess_expiry()
      Returns:
      The date and time when the access token expires.
    • setAccess_expiry

      public void setAccess_expiry(Instant access_expiry)
    • sanitizePersonalData

      public void sanitizePersonalData()
      Sanitize personal information and the approval token, to be used when returning a RequestItem to Angular, especially for users clicking on the secure link