com.atlassian.confluence.user.providers.jira
Class ConditionalPropertySet
java.lang.Object
com.opensymphony.module.propertyset.AbstractPropertySet
com.atlassian.confluence.user.providers.jira.ConditionalPropertySet
- All Implemented Interfaces:
- PropertySet
public class ConditionalPropertySet
- extends AbstractPropertySet
Responsible for delegating to either one of two PropertySets based on key prefix.
Fields inherited from interface com.opensymphony.module.propertyset.PropertySet |
BOOLEAN, DATA, DATE, DOUBLE, INT, LONG, OBJECT, PROPERTIES, STRING, TEXT, XML |
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, isSettable, setAsActualType, setBoolean, setData, setDate, setDouble, setInt, setLong, setObject, setProperties, setSchema, setString, setText, setXML, supportsType, supportsTypes, toString, type, type |
ConditionalPropertySet
public ConditionalPropertySet()
init
public void init(Map config,
Map args)
- Specified by:
init
in interface PropertySet
- Overrides:
init
in class AbstractPropertySet
getKeys
public Collection getKeys(String prefix,
int type)
throws PropertyException
- Gets keys from default and conditional PS's
- Specified by:
getKeys
in interface PropertySet
- Specified by:
getKeys
in class AbstractPropertySet
- Parameters:
prefix
- type
-
- Returns:
-
- Throws:
PropertyException
getType
public int getType(String key)
throws PropertyException
- Specified by:
getType
in interface PropertySet
- Specified by:
getType
in class AbstractPropertySet
- Throws:
PropertyException
exists
public boolean exists(String key)
throws PropertyException
- Specified by:
exists
in interface PropertySet
- Specified by:
exists
in class AbstractPropertySet
- Throws:
PropertyException
remove
public void remove(String key)
throws PropertyException
- Specified by:
remove
in interface PropertySet
- Specified by:
remove
in class AbstractPropertySet
- Throws:
PropertyException
setImpl
protected void setImpl(int type,
String key,
Object value)
throws PropertyException
- Specified by:
setImpl
in class AbstractPropertySet
- Throws:
PropertyException
get
protected Object get(int type,
String key)
throws PropertyException
- Specified by:
get
in class AbstractPropertySet
- Throws:
PropertyException
getRelevantPS
protected PropertySet getRelevantPS(String key)
conditionPasses
protected boolean conditionPasses(String key)