Package org.openwms.common.location.api
Class LocationVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<LocationVO>
org.ameba.http.AbstractBase<LocationVO>
org.openwms.common.location.api.LocationVO
- All Implemented Interfaces:
Serializable,TargetVO
public class LocationVO
extends org.ameba.http.AbstractBase<LocationVO>
implements TargetVO, Serializable
A LocationVO represents a physical or virtual place in a warehouse. Could be something like a storage location in the stock or a conveyor
location. Even error locations can be represented with the LocationVO. Multiple locations with same characteristics are grouped in
LocationGroupVOs.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe ID of theAccount, theLocationis assigned to.private LocalDateTimeTimestamp when theLocationhas been created.private @NotBlank(groups=Create.class) StringERP code of theLocation.private BooleanWhether theLocationis enabled for incoming movements (read-only).private @NotBlank(groups=Create.class) StringThe name ofLocationGrouptheLocationbelongs to.private @NotBlank StringUnique natural key.static final StringHTTP media type representation.static final StringHTTP media type representation.private BooleanWhether theLocationis enabled for outgoing movements (read-only).private StringThe persistent technical key of theLocation.private @NotBlank(groups=Create.class) StringPLC code of theLocation.private IntegerThe current state, set by the PLC system (read-only).private IntegerSort order index used by strategies for putaway, or picking.private StringMight be assigned to a particular zone in stock.private @NotBlank(groups=Create.class) StringThe name of theLocationTypetheLocationbelongs to.Fields inherited from class org.ameba.http.AbstractBase
DATETIME_FORMAT_ZULU -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique business key of the Target.booleanAll fields.getpKey()Get the persistent key.getType()inthashCode()All fields.booleanChecks whether the Location is blocked for incoming goods.booleanChecks whether the Location is blocked for outgoing goods.voidsetAccountId(String accountId) voidsetCreateDt(LocalDateTime createDt) voidsetErpCode(String erpCode) voidsetIncomingActive(Boolean incomingActive) voidsetLocationGroupName(String locationGroupName) voidsetLocationId(String locationId) voidsetOutgoingActive(Boolean outgoingActive) voidvoidsetPlcCode(String plcCode) voidsetPlcState(Integer plcState) voidsetSortOrder(Integer sortOrder) voidsetStockZone(String stockZone) voidtoString()Only the locationId.Methods inherited from class org.ameba.http.AbstractBase
getLastModifiedDt, getOl, setLastModifiedDt, setOlMethods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks
-
Field Details
-
MEDIA_TYPE
HTTP media type representation.- See Also:
-
MEDIA_TYPE_OPT
HTTP media type representation.- See Also:
-
pKey
The persistent technical key of theLocation. -
locationId
Unique natural key. -
accountId
The ID of theAccount, theLocationis assigned to. -
plcCode
PLC code of theLocation. -
erpCode
ERP code of theLocation. -
sortOrder
Sort order index used by strategies for putaway, or picking. -
stockZone
Might be assigned to a particular zone in stock. -
incomingActive
Whether theLocationis enabled for incoming movements (read-only). -
outgoingActive
Whether theLocationis enabled for outgoing movements (read-only). -
plcState
The current state, set by the PLC system (read-only). -
type
The name of theLocationTypetheLocationbelongs to. -
locationGroupName
The name ofLocationGrouptheLocationbelongs to. -
createDt
Timestamp when theLocationhas been created.
-
-
Constructor Details
-
LocationVO
protected LocationVO() -
LocationVO
-
-
Method Details
-
isInfeedBlocked
public boolean isInfeedBlocked()Checks whether the Location is blocked for incoming goods.- Returns:
- true if blocked, otherwise false
-
isOutfeedBlocked
public boolean isOutfeedBlocked()Checks whether the Location is blocked for outgoing goods.- Returns:
- true if blocked, otherwise false
-
getAccountId
-
setAccountId
-
getLocationGroupName
-
setLocationGroupName
-
getpKey
Description copied from interface:TargetVOGet the persistent key. -
setpKey
-
getLocationId
-
setLocationId
-
getType
-
setType
-
getErpCode
-
setErpCode
-
getPlcCode
-
setPlcCode
-
getSortOrder
-
setSortOrder
-
getIncomingActive
-
setIncomingActive
-
getOutgoingActive
-
setOutgoingActive
-
getPlcState
-
setPlcState
-
getStockZone
-
setStockZone
-
getCreateDt
- Overrides:
getCreateDtin classorg.ameba.http.AbstractBase<LocationVO>
-
setCreateDt
- Overrides:
setCreateDtin classorg.ameba.http.AbstractBase<LocationVO>
-
asString
Returns the unique business key of the Target. -
toString
Only the locationId.- Overrides:
toStringin classorg.springframework.hateoas.RepresentationModel<LocationVO>
-
equals
All fields.- Overrides:
equalsin classorg.ameba.http.AbstractBase<LocationVO>
-
hashCode
public int hashCode()All fields.- Overrides:
hashCodein classorg.ameba.http.AbstractBase<LocationVO>
-