|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.AbstractEntity
org.openwms.core.domain.system.AbstractPreference
org.openwms.core.domain.system.usermanagement.RolePreference
public class RolePreference
A RolePreference is used to provide settings specific to an Role
. These kind of Preferences
is valid for the assigned Role only.
User
s assigned to a Role
inherit these
RolePreferences but a RolePreference can be overruled by an
UserPreference
. RolePreferences can be defined within a
preferences file but also be created with the UI.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.openwms.core.domain.AbstractEntity |
---|
AbstractEntity.AbstractEntityListener |
Field Summary | |
---|---|
static String |
NQ_FIND_ALL
Query to find all RolePreference s. |
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
RolePreference(String rolename,
String key)
Create a new RolePreference. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compare the uid property field. |
protected Object[] |
getFields()
Return all fields as an array of objects. |
String |
getKey()
Get the key. |
String |
getOwner()
Get the name of the Role as String. |
PreferenceKey |
getPrefKey()
Return a PreferenceKey of this preference. |
PropertyScope |
getType()
Return the particular type of the preference. |
int |
hashCode()
Use the uid to calculate the hashCode. |
Methods inherited from class org.openwms.core.domain.system.AbstractPreference |
---|
getDescription, getFloatValue, getId, getMaximum, getMinimum, getPropertiesAsString, getValue, getVersion, isFromFile, isNew, setDescription, setFloatValue, setFromFile, setMaximum, setMinimum, setValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NQ_FIND_ALL
RolePreference
s. Name is "RolePreference.findAll" .
Constructor Detail |
---|
public RolePreference(String rolename, String key)
rolename
- The name of the Role that owns this preferencekey
- the key
IllegalArgumentException
- when rolename or key is null
or emptyMethod Detail |
---|
public String getKey()
public String getOwner()
Role
as String.
public PropertyScope getType()
getType
in class AbstractPreference
AbstractPreference.getType()
protected Object[] getFields()
getFields
in class AbstractPreference
AbstractPreference.getFields()
public PreferenceKey getPrefKey()
PreferenceKey
of this preference.
Uses the type, owner and the key to create a PreferenceKey
instance.
getPrefKey
in class AbstractPreference
PreferenceKey
AbstractPreference.getPrefKey()
public int hashCode()
Use all fields to calculate the hashCode and don't use the hashCode of the super class.
Uses key, owner and type for hashCode calculation.
hashCode
in class AbstractPreference
Object.hashCode()
public boolean equals(Object obj)
Use all fields for comparison but don't call the super class.
Comparison done with key, owner and type fields. Not delegated to super class.
equals
in class AbstractPreference
Object.equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |