Class RequestItemServiceImpl

  • All Implemented Interfaces:
    RequestItemService

    public class RequestItemServiceImpl
    extends Object
    implements RequestItemService
    Service implementation for the RequestItem object. This class is responsible for all business logic calls for the RequestItem object and is autowired by spring. This class should never be accessed directly.
    Author:
    kevinvandevelde at atmire.com
    • Field Detail

      • requestItemDAO

        @Autowired(required=true)
        protected RequestItemDAO requestItemDAO
    • Constructor Detail

      • RequestItemServiceImpl

        protected RequestItemServiceImpl()
    • Method Detail

      • createRequest

        public String createRequest​(Context context,
                                    Bitstream bitstream,
                                    Item item,
                                    boolean allFiles,
                                    String reqEmail,
                                    String reqName,
                                    String reqMessage)
                             throws SQLException
        Description copied from interface: RequestItemService
        Generate a request item representing the request and put it into the DB
        Specified by:
        createRequest in interface RequestItemService
        Parameters:
        context - The relevant DSpace Context.
        bitstream - The requested bitstream
        item - The requested item
        allFiles - true indicates that all bitstreams of this item are requested
        reqEmail - email Requester email
        reqName - Requester name
        reqMessage - Request message text
        Returns:
        the token of the request item
        Throws:
        SQLException - if database error
      • update

        public void update​(Context context,
                           RequestItem requestItem)
        Description copied from interface: RequestItemService
        Save updates to the record. Only accept_request, and decision_date are set-able.
        Specified by:
        update in interface RequestItemService
        Parameters:
        context - The relevant DSpace Context.
        requestItem - requested item