org.openwms.common.service
Interface LocationService<T extends Location>

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

public interface LocationService<T extends Location>
extends EntityService<Location>

A LocationService - Extends the EntityService interface about some useful methods regarding the general handling with Locations.

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

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

Method Summary
 void createLocationType(LocationType locationType)
          Create a new LocationType.
 void deleteLocationTypes(List<LocationType> locationTypes)
          Delete already persisted LocationType instances.
 List<T> getAllLocations()
          Return a list of all Locations not sorted and not filtered in natural order.
 List<LocationType> getAllLocationTypes()
          Return a list of all LocationTypes not sorted and not filtered in natural order.
 Location removeMessages(Long id, List<Message> messages)
          Removes a list of Messages from a Location.
 LocationType saveLocationType(LocationType locationType)
          Saves a LocationType.
 
Methods inherited from interface org.openwms.core.service.EntityService
add, findAll, remove, save
 

Method Detail

getAllLocations

List<T> getAllLocations()
Return a list of all Locations not sorted and not filtered in natural order.

Returns:
All Locations as a list

removeMessages

Location removeMessages(Long id,
                        List<Message> messages)
Removes a list of Messages from a Location.

Parameters:
id - The technical key of the Location
messages - The messages to be removed
Returns:
The updated Location

getAllLocationTypes

List<LocationType> getAllLocationTypes()
Return a list of all LocationTypes not sorted and not filtered in natural order.

Returns:
All LocationTypes as a list

createLocationType

void createLocationType(LocationType locationType)
Create a new LocationType.

Parameters:
locationType - The type to be created

deleteLocationTypes

void deleteLocationTypes(List<LocationType> locationTypes)
Delete already persisted LocationType instances.

Parameters:
locationTypes - A list of all instances to be deleted.

saveLocationType

LocationType saveLocationType(LocationType locationType)
Saves a LocationType.

Parameters:
locationType - The type to save
Returns:
The saved type


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