org.openwms.common.service
Interface LocationGroupService<T extends LocationGroup>

Type Parameters:
T - Any kind of LocationGroup
All Superinterfaces:
EntityService<T>
All Known Implementing Classes:
LocationGroupServiceImpl

public interface LocationGroupService<T extends LocationGroup>
extends EntityService<T>

A LocationGroupService - Extends the EntityService interface about some useful methods regarding the general handling with LocationGroup s.

This interface is declared generic typed that implementation classes can use any extension of LocationGroups.

Since:
0.1
Version:
$Revision: 1409 $
Author:
Heiko Scherrer
See Also:
EntityService

Method Summary
 void changeGroupState(T locationGroup)
          Changes the GroupStates of a LocationGroup.
Both, the GroupStateIn and the GroupStateOut of all child LocationGroups are changed according to the parent locationGroup.
 List<T> getLocationGroupsAsList()
          Returns a List of all LocationGroups.
 TreeNode<T> getLocationGroupsAsTree()
          Returns a hierarchical Tree of all LocationGroups.
 T save(T locationGroup)
          Save an already persisted LocationGroup and return the saved instance.
 
Methods inherited from interface org.openwms.core.service.EntityService
add, findAll, remove
 

Method Detail

changeGroupState

void changeGroupState(T locationGroup)
Changes the GroupStates of a LocationGroup.
Both, the GroupStateIn and the GroupStateOut of all child LocationGroups are changed according to the parent locationGroup. This call is executed recursively to all child LocationGroups of the locationGroup Entity.

Parameters:
locationGroup - The LocationGroup to change

getLocationGroupsAsTree

TreeNode<T> getLocationGroupsAsTree()
Returns a hierarchical Tree of all LocationGroups. Used by the user interface to show all LocationGroups in a tree form.

Returns:
All LocationGroups as hierarchical tree

getLocationGroupsAsList

List<T> getLocationGroupsAsList()
Returns a List of all LocationGroups.

Returns:
All LocationGroups as a list

save

T save(T locationGroup)
Save an already persisted LocationGroup and return the saved instance.

Specified by:
save in interface EntityService<T extends LocationGroup>
Parameters:
locationGroup - The LocationGroup to save
Returns:
The saved LocationGroup


Copyright © 2005-2011 openwms.org. All Rights Reserved.