|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.preferences.Preferences
public class Preferences
An instance of a Preferences
represents the root of a
preferences XML file and aggregates all other types of preference.
Constructor Summary | |
---|---|
Preferences()
|
Method Summary | ||
---|---|---|
List<AbstractPreference> |
getAll()
Return a list of all preferences. |
|
List<AbstractPreference> |
getApplicationOrRoleOrUserOrModule()
Gets the value of the applicationOrRoleOrUserOrModule property. |
|
List<ApplicationPreference> |
getApplications()
Return a list of all ApplicationPreference s or an empty ArrayList
when no ApplicationPreference s exist. |
|
List<ModulePreference> |
getModules()
Return a list of all ModulePreference s or an empty ArrayList when
no ModulePreference s exist. |
|
|
getOfType(Class<T> clazz)
Return a list of preferences filtered by a specific type, defined by the parameter clazz. |
|
List<RolePreference> |
getRoles()
Return a list of all RolePreference s or an empty ArrayList when
no RolePreference s exist. |
|
List<UserPreference> |
getUsers()
Return a list of all UserPreference s or an empty ArrayList when
no UserPreference s exist. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Preferences()
Method Detail |
---|
public List<AbstractPreference> getApplicationOrRoleOrUserOrModule()
public List<AbstractPreference> getAll()
getApplicationOrRoleOrUserOrModule()
. Is only added due to
naming purpose.
public List<ApplicationPreference> getApplications()
ApplicationPreference
s or an empty ArrayList
when no ApplicationPreference
s exist.
ApplicationPreference
spublic List<ModulePreference> getModules()
ModulePreference
s or an empty ArrayList when
no ModulePreference
s exist.
ModulePreference
spublic List<UserPreference> getUsers()
UserPreference
s or an empty ArrayList when
no UserPreference
s exist.
UserPreference
spublic List<RolePreference> getRoles()
RolePreference
s or an empty ArrayList when
no RolePreference
s exist.
RolePreference
spublic <T extends AbstractPreference> List<T> getOfType(Class<T> clazz)
T
- Expected types are ApplicationPreference
,
ModulePreference
, RolePreference
UserPreference
clazz
- The class type of the preference to filter for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |