com.atlassian.confluence.user.providers.jira
Class ConditionalPropertySet

java.lang.Object
  extended by com.opensymphony.module.propertyset.AbstractPropertySet
      extended by 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.


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
 
Constructor Summary
ConditionalPropertySet()
           
 
Method Summary
protected  boolean conditionPasses(String key)
           
 boolean exists(String key)
           
protected  Object get(int type, String key)
           
 Collection getKeys(String prefix, int type)
          Gets keys from default and conditional PS's
protected  PropertySet getRelevantPS(String key)
           
 int getType(String key)
           
 void init(Map config, Map args)
           
 void remove(String key)
           
protected  void setImpl(int type, String key, Object value)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConditionalPropertySet

public ConditionalPropertySet()
Method Detail

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)


Confluence is developed by Atlassian.