Class TransferAPI


  • public class TransferAPI
    extends RMModelRequest
    Transfer REST API Wrapper
    Since:
    2.6
    Author:
    Silviu Dinuta
    • Constructor Detail

      • TransferAPI

        public TransferAPI​(RMRestWrapper rmRestWrapper)
        Parameters:
        rmRestWrapper - RM REST Wrapper
    • Method Detail

      • getTransfer

        public Transfer getTransfer​(String transferId,
                                    String parameters)
        Gets a transfer.
        Parameters:
        transferId - The identifier of a transfer
        parameters - The URL parameters to add
        Returns:
        The Transfer for the given transferId
        Throws:
        RuntimeException - for the following cases:
        • transferId is not a valid format
        • authentication fails
        • current user does not have permission to read transferId
        • transferId does not exist
      • getTransfersChildren

        public TransferChildCollection getTransfersChildren​(String transferId,
                                                            String parameters)
        Gets the children (record folder or record) of a transfer.
        Parameters:
        transferId - The identifier of a transfer
        parameters - The URL parameters to add
        Returns:
        The TransferChildCollection for the given transferId
        Throws:
        RuntimeException - for the following cases:
        • authentication fails
        • current user does not have permission to read transferId
        • filePlanId does not exist