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:
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(java.lang.String key)
           
 boolean exists(java.lang.String key)
           
protected  java.lang.Object get(int type, java.lang.String key)
           
 java.util.Collection getKeys(java.lang.String prefix, int type)
          Gets keys from default and conditional PS's
protected  com.opensymphony.module.propertyset.PropertySet getRelevantPS(java.lang.String key)
           
 int getType(java.lang.String key)
           
 void init(java.util.Map config, java.util.Map args)
           
 void remove(java.lang.String key)
           
protected  void setImpl(int type, java.lang.String key, java.lang.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(java.util.Map config,
                 java.util.Map args)
Specified by:
init in interface com.opensymphony.module.propertyset.PropertySet
Overrides:
init in class com.opensymphony.module.propertyset.AbstractPropertySet

getKeys

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

Specified by:
getKeys in interface com.opensymphony.module.propertyset.PropertySet
Specified by:
getKeys in class com.opensymphony.module.propertyset.AbstractPropertySet
Throws:
com.opensymphony.module.propertyset.PropertyException

getType

public int getType(java.lang.String key)
            throws com.opensymphony.module.propertyset.PropertyException
Specified by:
getType in interface com.opensymphony.module.propertyset.PropertySet
Specified by:
getType in class com.opensymphony.module.propertyset.AbstractPropertySet
Throws:
com.opensymphony.module.propertyset.PropertyException

exists

public boolean exists(java.lang.String key)
               throws com.opensymphony.module.propertyset.PropertyException
Specified by:
exists in interface com.opensymphony.module.propertyset.PropertySet
Specified by:
exists in class com.opensymphony.module.propertyset.AbstractPropertySet
Throws:
com.opensymphony.module.propertyset.PropertyException

remove

public void remove(java.lang.String key)
            throws com.opensymphony.module.propertyset.PropertyException
Specified by:
remove in interface com.opensymphony.module.propertyset.PropertySet
Specified by:
remove in class com.opensymphony.module.propertyset.AbstractPropertySet
Throws:
com.opensymphony.module.propertyset.PropertyException

setImpl

protected void setImpl(int type,
                       java.lang.String key,
                       java.lang.Object value)
                throws com.opensymphony.module.propertyset.PropertyException
Specified by:
setImpl in class com.opensymphony.module.propertyset.AbstractPropertySet
Throws:
com.opensymphony.module.propertyset.PropertyException

get

protected java.lang.Object get(int type,
                               java.lang.String key)
                        throws com.opensymphony.module.propertyset.PropertyException
Specified by:
get in class com.opensymphony.module.propertyset.AbstractPropertySet
Throws:
com.opensymphony.module.propertyset.PropertyException

getRelevantPS

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

conditionPasses

protected boolean conditionPasses(java.lang.String key)


Copyright © 2003-2013 Atlassian. All Rights Reserved.