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

java.lang.Object
  extended bycom.opensymphony.module.propertyset.AbstractPropertySet
      extended bycom.atlassian.confluence.user.providers.jira.ConditionalPropertySet
All Implemented Interfaces:
com.opensymphony.module.propertyset.PropertySet

public class ConditionalPropertySet
extends com.opensymphony.module.propertyset.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  com.opensymphony.module.propertyset.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)

getKeys

public Collection getKeys(String prefix,
                          int type)
                   throws com.opensymphony.module.propertyset.PropertyException
Gets keys from default and conditional PS's

Parameters:
prefix -
type -
Returns:
Throws:
com.opensymphony.module.propertyset.PropertyException

getType

public int getType(String key)
            throws com.opensymphony.module.propertyset.PropertyException
Throws:
com.opensymphony.module.propertyset.PropertyException

exists

public boolean exists(String key)
               throws com.opensymphony.module.propertyset.PropertyException
Throws:
com.opensymphony.module.propertyset.PropertyException

remove

public void remove(String key)
            throws com.opensymphony.module.propertyset.PropertyException
Throws:
com.opensymphony.module.propertyset.PropertyException

setImpl

protected void setImpl(int type,
                       String key,
                       Object value)
                throws com.opensymphony.module.propertyset.PropertyException
Throws:
com.opensymphony.module.propertyset.PropertyException

get

protected Object get(int type,
                     String key)
              throws com.opensymphony.module.propertyset.PropertyException
Throws:
com.opensymphony.module.propertyset.PropertyException

getRelevantPS

protected com.opensymphony.module.propertyset.PropertySet getRelevantPS(String key)

conditionPasses

protected boolean conditionPasses(String key)


Confluence is developed by Atlassian.