|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.service.spring.EntityServiceImpl<LocationGroup,Long>
org.openwms.common.service.spring.LocationGroupServiceImpl
@Service @Transactional public class LocationGroupServiceImpl
A LocationGroupServiceImpl.
EntityServiceImpl
Field Summary |
---|
Fields inherited from class org.openwms.core.service.spring.EntityServiceImpl |
---|
ctx |
Constructor Summary | |
---|---|
LocationGroupServiceImpl()
|
Method Summary | |
---|---|
void |
changeGroupState(LocationGroup locationGroup)
Changes the GroupStates of a LocationGroup .Both, the GroupStateIn and the GroupStateOut of all child LocationGroup s are changed according to the parent
locationGroup. |
protected void |
changeGroupState(LocationGroup persisted,
LocationGroup locationGroup)
Regarding at least one groupState has changed the state is set on the LocationGroup directly. |
List<LocationGroup> |
getLocationGroupsAsList()
Returns a List of all LocationGroup s. |
TreeNode<LocationGroup> |
getLocationGroupsAsTree()
Returns a hierarchical Tree of all LocationGroup s. |
protected LocationGroup |
mergeLocationGroup(LocationGroup persisted,
LocationGroup locationGroup)
Save changed fields by setting them directly. |
LocationGroup |
save(LocationGroup locationGroup)
Save an entity of type T . |
Methods inherited from class org.openwms.core.service.spring.EntityServiceImpl |
---|
add, findAll, remove, setApplicationContext, setDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openwms.core.service.EntityService |
---|
add, findAll, remove |
Constructor Detail |
---|
public LocationGroupServiceImpl()
Method Detail |
---|
public void changeGroupState(LocationGroup locationGroup)
LocationGroup
.LocationGroup
s are changed according to the parent
locationGroup. This call is executed recursively to
all child LocationGroup
s of the
locationGroup Entity.
changeGroupState
in interface LocationGroupService<LocationGroup>
locationGroup
- The LocationGroup
to changepublic LocationGroup save(LocationGroup locationGroup)
T
.
save
in interface LocationGroupService<LocationGroup>
save
in interface EntityService<LocationGroup>
save
in class EntityServiceImpl<LocationGroup,Long>
locationGroup
- Instance to be saved
protected LocationGroup mergeLocationGroup(LocationGroup persisted, LocationGroup locationGroup)
persisted
- The instance read from the persisted storagelocationGroup
-
protected void changeGroupState(LocationGroup persisted, LocationGroup locationGroup)
LocationGroup
directly. Whether a state change is allowed or not
is checked within the LocationGroup
itself but we do a basic
check before. When the parent LocationGroup
is blocked the
current LocationGroup
cannot be turned to AVAILABLE.
persisted
- The instance read from the persisted storagelocationGroup
- The instance holding the new values to save
ServiceRuntimeException
- when a state change is not allowed@Transactional(readOnly=true) public TreeNode<LocationGroup> getLocationGroupsAsTree()
LocationGroup
s. Used by the
user interface to show all LocationGroup
s in a tree form.
getLocationGroupsAsTree
in interface LocationGroupService<LocationGroup>
LocationGroup
s as hierarchical tree@Transactional(readOnly=true) public List<LocationGroup> getLocationGroupsAsList()
LocationGroup
s.
getLocationGroupsAsList
in interface LocationGroupService<LocationGroup>
LocationGroup
s as a list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |