|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationService
A ConfigurationService is responsible to deal with preferences. Whereby
preferences have particular defined scopes, e.g. some preferences are in a
global scope which means they are visible and valid for the whole
application. Others are only valid in a certain scope, probably only visible
for a particular Module
, Role
or User
.
Other subclasses of AbstractPreference
may be implemented as well.
AbstractPreference
,
PropertyScope
Method Summary | ||
---|---|---|
List<AbstractPreference> |
findAll()
Find and return all preferences. |
|
|
findByType(Class<T> clazz)
Find and return all preferences in the scope of the application. |
|
void |
remove(AbstractPreference preference)
Remove a AbstractPreference . |
|
AbstractPreference |
save(AbstractPreference preference)
Save the given AbstractPreference or persist it when it is a
transient instance. |
Method Detail |
---|
List<AbstractPreference> findAll()
<T extends AbstractPreference> List<T> findByType(Class<T> clazz)
T
- Any subtype of AbstractPreference
clazz
- The class of preference to search for
AbstractPreference save(AbstractPreference preference)
AbstractPreference
or persist it when it is a
transient instance.
preference
- AbstractPreference
entity to save
AbstractPreference
entity instancevoid remove(AbstractPreference preference)
AbstractPreference
.
preference
- The AbstractPreference
to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |