public class LookupServiceImpl extends Object implements LookupService
Constructor and Description |
---|
LookupServiceImpl() |
Modifier and Type | Method and Description |
---|---|
LookupTableInfo |
getTable(String id)
Get the lookup table registered with the given identifier.
|
Set<String> |
getTableIDs()
Get the identifiers of the available lookup tables.
|
void |
registerTable(String id,
LookupTableInfo tableInfo)
Register a lookup table with the service.
|
boolean |
removeTable(String id)
Remove the lookup table with the given identifier.
|
public void registerTable(String id, LookupTableInfo tableInfo) throws IllegalArgumentException
LookupService
registerTable
in interface LookupService
id
- the unique lookup table IDtableInfo
- the lookup table plus meta informationIllegalArgumentException
- if the given identifier is already usedpublic LookupTableInfo getTable(String id)
LookupService
getTable
in interface LookupService
id
- the lookup table identifiernull
public Set<String> getTableIDs()
LookupService
getTableIDs
in interface LookupService
public boolean removeTable(String id)
LookupService
removeTable
in interface LookupService
id
- the resource ID identifying the lookup table to removetrue
if the lookup table was present and
successfully removed, false
otherwiseBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a