|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.module.propertyset.AbstractPropertySet
com.atlassian.crowd.integration.osuser.PrioritizedCompositePropertySet
public class PrioritizedCompositePropertySet
PrioritizedCompositePropertySet composes multiple PropertySets
into a unified view of the underlying properties. The order of the underlying PropertySets is significant and affects
the value that is returned for a particular property key. The first PropertySet that contains the value is the holder
of the official value.
remove(String) which otherwise would not actually
remove the property but allow the previously shadowed value to be returned.
| Field Summary |
|---|
| Fields inherited from class com.opensymphony.module.propertyset.AbstractPropertySet |
|---|
schema |
| Fields inherited from interface com.opensymphony.module.propertyset.PropertySet |
|---|
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML |
| Method Summary | |
|---|---|
boolean |
exists(java.lang.String key)
Does a property exist in the delegated property sets in order. |
protected java.lang.Object |
get(int type,
java.lang.String key)
Copied from com.opensymphony.module.propertyset.aggregate.AggregatePropertySet and modified to perform
the get operation on the highest property set. |
java.util.Collection |
getKeys(java.lang.String prefix,
int type)
Returns a collection of keys that are retrieved from all providers. |
int |
getType(java.lang.String key)
Returns the type of the property. |
boolean |
isSettable(java.lang.String property)
Determine whether the delegates will allow the property to be set. |
void |
remove(java.lang.String key)
Remove property with given key from all underlying property sets.It removes the property from all property sets. |
protected void |
setImpl(int type,
java.lang.String key,
java.lang.Object value)
Copied from com.opensymphony.module.propertyset.aggregate.AggregatePropertySet and modified to perform
the set operation on the highest property set. |
| Methods inherited from class com.opensymphony.module.propertyset.AbstractPropertySet |
|---|
getAsActualType, getBoolean, getData, getDate, getDouble, getInt, getKeys, getKeys, getKeys, getLong, getObject, getProperties, getSchema, getString, getText, getXML, init, setAsActualType, setBoolean, setData, setDate, setDouble, setInt, setLong, setObject, setProperties, setSchema, setString, setText, setXML, supportsType, supportsTypes, toString, type, type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.util.Collection getKeys(java.lang.String prefix,
int type)
throws com.opensymphony.module.propertyset.PropertyException
getKeys in interface com.opensymphony.module.propertyset.PropertySetgetKeys in class com.opensymphony.module.propertyset.AbstractPropertySetprefix - prefixtype - property type
com.opensymphony.module.propertyset.PropertyException - if any of the delegated property sets throws it
public int getType(java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
getType in interface com.opensymphony.module.propertyset.PropertySetgetType in class com.opensymphony.module.propertyset.AbstractPropertySetkey - property key to find the type of
PropertySet interface.
com.opensymphony.module.propertyset.PropertyException - if one of the underlying property set delegates does
public boolean exists(java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
exists in interface com.opensymphony.module.propertyset.PropertySetexists in class com.opensymphony.module.propertyset.AbstractPropertySetkey - property key to check
com.opensymphony.module.propertyset.PropertyException - if one of the underlying property set delegates does
public void remove(java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
remove in interface com.opensymphony.module.propertyset.PropertySetremove in class com.opensymphony.module.propertyset.AbstractPropertySetkey - key of the property to remove
com.opensymphony.module.propertyset.PropertyException - if property is first found but cannot be removed from the property setpublic boolean isSettable(java.lang.String property)
isSettable in interface com.opensymphony.module.propertyset.PropertySetisSettable in class com.opensymphony.module.propertyset.AbstractPropertySetproperty - the property name
protected void setImpl(int type,
java.lang.String key,
java.lang.Object value)
throws com.opensymphony.module.propertyset.PropertyException
com.opensymphony.module.propertyset.aggregate.AggregatePropertySet and modified to perform
the set operation on the highest property set.
setImpl in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.PropertyException
protected java.lang.Object get(int type,
java.lang.String key)
throws com.opensymphony.module.propertyset.PropertyException
com.opensymphony.module.propertyset.aggregate.AggregatePropertySet and modified to perform
the get operation on the highest property set.
get in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.PropertyException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||