Class WarehouseOperation
java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.inventory.bl.warehouse.operation.WarehouseOperation
- All Implemented Interfaces:
ConstraintValidator<DynO.Valid,,DynO> Serializable,overit.geocall.timezone.model.TimeZoned
DynO object used to represent a warehouse operation,
i.e. the set of all the movements of goods that took place between warehouses.
A warehouse operation consists of:
A warehouse operation consists of:
- an header,
BOWarehouseOperationHeader - a list of item,
WarehouseOperationItem - a source,
BOWarehouseOperationHeaderSource
- 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddItem(BOWarehouseOperationItem item, List<BOWarehouseOperationItemSerializedMaterial> serializedMaterials) Created and adds a newWarehouseOperationItem, starting from the givenBOWarehouseOperationItemand list ofBOWarehouseOperationItemSerializedMaterial.booleanAdds the givenWarehouseOperationItem.Returns the warehouse operation header.getId()Returns the warehouse operation id.getItems()Returns the warehouse operation items.Returns the list of the warehouse operation items.Returns the warehouse operation source.getType()Returns the warehouse operation type.booleanChecks is all the item of the current warehouse operation were all inserted.booleanChecks if all the item of the current warehouse operation were received.booleanChecks if all the item of the current warehouse operation were sent.booleanChecks if all the item of the current warehouse operation were on their final state.booleanChecks if at least one of the warehouse operation item was received.booleanChecks if at least one of the warehouse operation item was sent.voidsetHeader(BOWarehouseOperationHeader header) Sets the warehouse operation header.voidSets the warehouse operation source.voidSets the warehouse operation 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
-
Constructor Details
-
WarehouseOperation
public WarehouseOperation()Instantiates a new warehouse operation.
-
-
Method Details
-
getHeader
Returns the warehouse operation header.- Returns:
- the warehouse operation header
-
setHeader
Sets the warehouse operation header.- Parameters:
header- the warehouse operation header
-
getSource
Returns the warehouse operation source.- Returns:
- the warehouse operation source
-
setSource
Sets the warehouse operation source.- Parameters:
source- the warehouse operation source
-
getItems
Returns the warehouse operation items.- Returns:
- a list of warehouse operation items
- See Also:
-
addItem
Adds the givenWarehouseOperationItem.- Parameters:
item- the item to add- Returns:
- true if the item was successfully added
-
addItem
public boolean addItem(BOWarehouseOperationItem item, List<BOWarehouseOperationItemSerializedMaterial> serializedMaterials) Created and adds a newWarehouseOperationItem, starting from the givenBOWarehouseOperationItemand list ofBOWarehouseOperationItemSerializedMaterial.- Parameters:
item- theBOWarehouseOperationItemserializedMaterials- list ofBOWarehouseOperationItemSerializedMaterial- Returns:
- true if the item was successfully added
-
getType
Returns the warehouse operation type.- Returns:
- the warehouse operation type
-
setType
Sets the warehouse operation type.- Parameters:
type- the warehouse operation type
-
getId
Returns the warehouse operation id.- Returns:
- the the warehouse operation id
-
getOperationItems
Returns the list of the warehouse operation items.- Returns:
- a list of the warehouse operation items
- See Also:
-
hasAllItemsInserted
public boolean hasAllItemsInserted()Checks is all the item of the current warehouse operation were all inserted.- Returns:
- true if all the warehouse operation items were successfully added
-
hasOneItemSent
public boolean hasOneItemSent()Checks if at least one of the warehouse operation item was sent.- Returns:
- true if at least one of the warehouse operation items was successfully sent
-
hasAllItemsSent
public boolean hasAllItemsSent()Checks if all the item of the current warehouse operation were sent.- Returns:
- true if all the warehouse operation items were successfully sent
-
hasOneItemReceived
public boolean hasOneItemReceived()Checks if at least one of the warehouse operation item was received.- Returns:
- true if at least one of the warehouse operation items was successfully received
-
hasAllItemsReceived
public boolean hasAllItemsReceived()Checks if all the item of the current warehouse operation were received.- Returns:
- true if all the warehouse operation items were successfully received
-
hasAllItemsWithFinalState
public boolean hasAllItemsWithFinalState()Checks if all the item of the current warehouse operation were on their final state.- Returns:
- true if all the warehouse operation items were on their final state
-