Class TransferRequest
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
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
A transfer request consists of:
- an header,
BOTransferRequestHeader - a list of item,
BOTransferRequestItem
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
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.model.DynO
DynO.SpanFields, DynO.SpanTable, DynO.Valid -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BOTransferRequestHeaderprotected List<TransferRequestItem> protected BOTransferRequestStateprotected BOTransferRequestType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItem(TransferRequestItem item) Adds the given item to the transfer request item list.findItem(TransferRequestItem itemToFind) Finds the transfer request item equals to the given one.Returns the list of active items.Returns the transfer request header.getId()Returns the transfer request id.getItems()Returns the list of transfer request items.getState()Returns the transfer request state.getType()Returns the transfer request type.booleanChecks if is the transfer request can be cancelled.booleanChecks if is the transfer request can be received.booleanChecks if is the transfer request can be refused.booleanChecks if is the transfer request can be saved.booleanChecks if is the transfer request can be sent.booleanChecks if is the transfer request can be submitted.voidsetHeader(BOTransferRequestHeader header) Sets the transfer request.voidsetItems(List<TransferRequestItem> items) Sets the list of transfer request items.voidsetState(BOTransferRequestState state) Sets the transfer request state.voidsetType(BOTransferRequestType type) Sets the transfer request type.Methods inherited from class overit.geocall.model.DynO
addExtension, extract, extract, fields, from, from, getCriteria, getCriteriaNotExploded, getExtension, getFakeFilter, getUnknownAttributes, getUnknownCriteria, getVariant, getZone, insert, insert, isValid, make, removeCriteria, removeExtensionAttribute, setCriteria, setCriteriaNotExploded, setExtension, setFakeFilter, setUnknownAttributes, setUnknownCriteria, setVariant, setZone, toFlatMap, toFlatMap, toMap, toMap, toString, update, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initializeMethods inherited from interface overit.geocall.timezone.model.TimeZoned
hasZone
-
Field Details
-
header
-
items
-
type
-
state
-
-
Constructor Details
-
TransferRequest
public TransferRequest()Instantiates a new transfer request.
-
-
Method Details
-
getHeader
Returns the transfer request header.- Returns:
- the transfer request header
-
setHeader
Sets the transfer request.- Parameters:
header- the transfer request
-
getItems
Returns the list of transfer request items.- Returns:
- a list of transfer request item
- See Also:
-
getActiveItems
Returns the list of active items.- Returns:
- a list of active items
- See Also:
-
setItems
Sets the list of transfer request items.- Parameters:
items- the list of transfer request items
-
addItem
Adds the given item to the transfer request item list.- Parameters:
item- the item to add
-
getType
Returns the transfer request type.- Returns:
- the transfer request type
-
setType
Sets the transfer request type.- Parameters:
type- the transfer request type
-
getState
Returns the transfer request state.- Returns:
- the transfer request state
-
setState
Sets the transfer request state.- Parameters:
state- the transfer request state
-
getId
Returns the transfer request id.- Returns:
- the the transfer request id
-
findItem
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
-