public interface LocalizedTextDataStore
LocalizedTextService and a backing datastore containing the items.
A bean implementing this interface should be passed to the AbstractLocalizedTextService implementation.| Modifier and Type | Method and Description |
|---|---|
void |
deleteLocalizedText(LocalizedText text)
Deletes an item in the datastore.
|
void |
flagAsUsed(LocalizedText text)
Flags an item as used in the datastore.
|
List<String> |
getApplications() |
List<String> |
getGroups(String application) |
LocalizedText |
getLocalizedText(String application,
String group,
String label)
Gets an item with a specified label from a particular group.
|
List<LocalizedText> |
getLocalizedTextForGroup(String application,
String group)
Gets a list of all LocalizedText items for a given group.
|
void |
insertLocalizedText(LocalizedText text)
Inserts a new item in the datastore.
|
List<LocalizedText> |
searchLocalizedText(String textToSearch)
This will do a search over all items in the datastore, looking for the text specified.
|
void |
updateLocalizedText(LocalizedText text)
Updates an existing item in the datastore.
|
List<LocalizedText> getLocalizedTextForGroup(String application, String group)
application - Application to get the group of items from.group - Name of the group.LocalizedText getLocalizedText(String application, String group, String label)
application - Application the item belongs to.group - Name of the group the item belongs to.label - Label of the item, unique within the group.void insertLocalizedText(LocalizedText text)
text - LocalizedText item.void updateLocalizedText(LocalizedText text)
text - LocalizedText item.void deleteLocalizedText(LocalizedText text)
text - LocalizedText item.List<String> getGroups(String application)
application - Name of an application in the datastore.void flagAsUsed(LocalizedText text)
text - LocalizedText item to be flagged.List<LocalizedText> searchLocalizedText(String textToSearch)
textToSearch - Text to search for.Copyright © 2017. All rights reserved.