java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.inventory.bl.warehouse.transfer.request.TransferRequest
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned

public class TransferRequest extends DynO
DynO object used to represent a transfer request, i.e. a request that sums up all the information required to transfer materials from one warehouse to another.
A transfer request consists of:
The main attributes that define the transfer request are the BOTransferRequestState and BOTransferRequestType: based on these two elements, in fact, the request may only require certain transfers between certain types of warehouses.
Since:
14.0
See Also:
GCApi:
bo
  • Field Details

  • Constructor Details

    • TransferRequest

      public TransferRequest()
      Instantiates a new transfer request.
  • Method Details

    • getHeader

      public BOTransferRequestHeader getHeader()
      Returns the transfer request header.
      Returns:
      the transfer request header
    • setHeader

      public void setHeader(BOTransferRequestHeader header)
      Sets the transfer request.
      Parameters:
      header - the transfer request
    • getItems

      public List<TransferRequestItem> getItems()
      Returns the list of transfer request items.
      Returns:
      a list of transfer request item
      See Also:
    • getActiveItems

      public List<TransferRequestItem> getActiveItems()
      Returns the list of active items.
      Returns:
      a list of active items
      See Also:
    • setItems

      public void setItems(List<TransferRequestItem> items)
      Sets the list of transfer request items.
      Parameters:
      items - the list of transfer request items
    • addItem

      public void addItem(TransferRequestItem item)
      Adds the given item to the transfer request item list.
      Parameters:
      item - the item to add
    • getType

      public BOTransferRequestType getType()
      Returns the transfer request type.
      Returns:
      the transfer request type
    • setType

      public void setType(BOTransferRequestType type)
      Sets the transfer request type.
      Parameters:
      type - the transfer request type
    • getState

      public BOTransferRequestState getState()
      Returns the transfer request state.
      Returns:
      the transfer request state
    • setState

      public void setState(BOTransferRequestState state)
      Sets the transfer request state.
      Parameters:
      state - the transfer request state
    • getId

      public Long getId()
      Returns the transfer request id.
      Returns:
      the the transfer request id
    • findItem

      public TransferRequestItem findItem(TransferRequestItem itemToFind)
      Finds the transfer request item equals to the given one.
      Parameters:
      itemToFind - the item to find
      Returns:
      the transfer request item
    • isSavable

      public boolean isSavable()
      Checks if is the transfer request can be saved.
      Returns:
      true if the transfer request can be saved, false otherwise
    • isSubmittable

      public boolean isSubmittable()
      Checks if is the transfer request can be submitted.
      Returns:
      true if the transfer request can be submitted, false otherwise
    • isSendable

      public boolean isSendable()
      Checks if is the transfer request can be sent.
      Returns:
      true if the transfer request can be sent, false otherwise
    • isReceivable

      public boolean isReceivable()
      Checks if is the transfer request can be received.
      Returns:
      true if the transfer request can be received, false otherwise
    • isCancellable

      public boolean isCancellable()
      Checks if is the transfer request can be cancelled.
      Returns:
      true if the transfer request can be cancelled, false otherwise
    • isRefusePermitted

      public boolean isRefusePermitted()
      Checks if is the transfer request can be refused.
      Returns:
      true if the transfer request can be refused, false otherwise