Package org.openwms.common.location.api
Class LocationGroupVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<LocationGroupVO>
org.openwms.common.location.api.LocationGroupVO
- All Implemented Interfaces:
Serializable
,TargetVO
public class LocationGroupVO
extends org.springframework.hateoas.RepresentationModel<LocationGroupVO>
implements TargetVO, Serializable
A LocationGroupVO represents a
LocationGroup
.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
TheLocationGroup
might be assigned to anAccount
.private List
<LocationGroupVO> ChildLocationGroup
s.private LocalDateTime
Timestamp when theLocationGroup
has been created.private String
Description of theLocationGroup
.private LocationGroupState
Infeed state, controlled by the subsystem only.private LocationGroupState
Outfeed state.private String
A type can be assigned to aLocationGroup
.private @NotBlank String
Unique identifier of theLocationGroup
.private @NotBlank(groups=Create.class) String
The operation mode is controlled by the subsystem and defines the physical mode aLocationGroup
is currently able to operate in.private String
ParentLocationGroup
.private String
The persistent technical key of theLocationGroup
. -
Constructor Summary
ConstructorDescriptionLocationGroupVO
(String name) LocationGroupVO
(String name, LocationGroupState groupStateIn, LocationGroupState groupStateOut) -
Method Summary
Modifier and TypeMethodDescriptionaddChild
(LocationGroupVO child) Returns a string representation of the LocationGroupVO object, including all its fields.asString()
Returns the unique business key of the Target.static LocationGroupVO
Creates a new LocationGroupVO object with the given name and operation mode.boolean
All fields.getName()
getpKey()
Get the persistent key.int
hashCode()
All fields.boolean
Check whether the LocationGroup has a parent.boolean
Checks whether the LocationGroup is available for infeed.boolean
Checks whether the LocationGroup is blocked for infeed.boolean
Checks whether the LocationGroup is available for outfeed.void
setAccountId
(String accountId) void
setChildren
(List<LocationGroupVO> children) void
setCreateDt
(LocalDateTime createDt) void
setDescription
(String description) void
setGroupStateIn
(LocationGroupState groupStateIn) void
setGroupStateOut
(LocationGroupState groupStateOut) void
setGroupType
(String groupType) void
setIncomingActive
(boolean incomingActive) Set the infeed mode.void
void
setOperationMode
(String operationMode) void
setOutgoingActive
(boolean outgoingActive) Set the outfeed mode.void
void
toString()
Only the name.Methods 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
-
pKey
The persistent technical key of theLocationGroup
. -
name
Unique identifier of theLocationGroup
. -
accountId
TheLocationGroup
might be assigned to anAccount
. -
description
Description of theLocationGroup
. -
groupType
A type can be assigned to aLocationGroup
. -
parent
ParentLocationGroup
. -
operationMode
The operation mode is controlled by the subsystem and defines the physical mode aLocationGroup
is currently able to operate in. -
groupStateIn
Infeed state, controlled by the subsystem only. -
groupStateOut
Outfeed state. -
children
ChildLocationGroup
s. -
createDt
Timestamp when theLocationGroup
has been created.
-
-
Constructor Details
-
LocationGroupVO
public LocationGroupVO() -
LocationGroupVO
-
LocationGroupVO
public LocationGroupVO(String name, LocationGroupState groupStateIn, LocationGroupState groupStateOut)
-
-
Method Details
-
create
Creates a new LocationGroupVO object with the given name and operation mode.- Parameters:
name
- The name of the location group.operationMode
- The operation mode of the location group.- Returns:
- The created LocationGroupVO object.
-
streamLocationGroups
-
hasParent
public boolean hasParent()Check whether the LocationGroup has a parent.- Returns:
- true if it has a parent, otherwise false
-
isInfeedBlocked
public boolean isInfeedBlocked()Checks whether the LocationGroup is blocked for infeed.- Returns:
- true if blocked, otherwise false
-
isIncomingActive
public boolean isIncomingActive()Checks whether the LocationGroup is available for infeed.- Returns:
- true if available, otherwise false
-
setIncomingActive
public void setIncomingActive(boolean incomingActive) Set the infeed mode.- Parameters:
incomingActive
- true if available for infeed otherwise false
-
setGroupStateIn
-
isOutgoingActive
public boolean isOutgoingActive()Checks whether the LocationGroup is available for outfeed.- Returns:
- true if available, otherwise false
-
setOutgoingActive
public void setOutgoingActive(boolean outgoingActive) Set the outfeed mode.- Parameters:
outgoingActive
- true if available for outfeed otherwise false
-
setGroupStateOut
-
getOperationMode
-
setOperationMode
-
getGroupStateIn
-
getGroupStateOut
-
getpKey
Description copied from interface:TargetVO
Get the persistent key. -
setpKey
-
getName
-
setName
-
getAccountId
-
setAccountId
-
getDescription
-
setDescription
-
getGroupType
-
setGroupType
-
getParent
-
setParent
-
getChildren
-
addChild
-
setChildren
-
getCreateDt
-
setCreateDt
-
asString
Returns the unique business key of the Target. -
equals
All fields.- Overrides:
equals
in classorg.springframework.hateoas.RepresentationModel<LocationGroupVO>
-
hashCode
public int hashCode()All fields.- Overrides:
hashCode
in classorg.springframework.hateoas.RepresentationModel<LocationGroupVO>
-
toString
Only the name.- Overrides:
toString
in classorg.springframework.hateoas.RepresentationModel<LocationGroupVO>
-
allFieldsToString
Returns a string representation of the LocationGroupVO object, including all its fields. Fields are concatenated using a delimiter ", ".- Returns:
- A string representation of the LocationGroupVO object.
-