public final class EmbeddedCrowdPropertySet
extends com.opensymphony.module.propertyset.map.MapPropertySet
The values are all backed by Strings, so many types are not supported and type safety is not assured. Dates are stored in an ISO 8601 date-time format in UTC.
Updates are pushed straight through to Embedded Crowd, but reads are done only from the copy of the attributes made when the PropertySet is created.
This class is not thread-safe and should not be cached across operations.
| Constructor and Description |
|---|
EmbeddedCrowdPropertySet(UserWithAttributes user,
CrowdService crowdService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String key) |
byte[] |
getData(String key) |
Date |
getDate(String key) |
double |
getDouble(String key) |
int |
getInt(String key) |
long |
getLong(String key) |
Map |
getMap() |
Object |
getObject(String key) |
Properties |
getProperties(String key) |
int |
getType(String key) |
Document |
getXML(String key) |
void |
remove(String key) |
void |
setBoolean(String key,
boolean value) |
void |
setData(String key,
byte[] value) |
void |
setDate(String key,
Date value) |
void |
setDouble(String key,
double value) |
protected void |
setImpl(int type,
String key,
Object value) |
void |
setInt(String key,
int value) |
void |
setLong(String key,
long value) |
void |
setMap(Map map) |
void |
setObject(String key,
Object value) |
void |
setProperties(String key,
Properties value) |
void |
setText(String key,
String value)
Throws IllegalPropertyException if value length greater than 255.
|
void |
setXML(String key,
Document value) |
boolean |
supportsType(int type) |
boolean |
supportsTypes() |
String |
toString() |
exists, get, getKeys, initpublic EmbeddedCrowdPropertySet(UserWithAttributes user, CrowdService crowdService)
public int getType(String key) throws UnsupportedOperationException
getType in interface com.opensymphony.module.propertyset.PropertySetgetType in class com.opensymphony.module.propertyset.map.MapPropertySetUnsupportedOperationExceptionpublic boolean getBoolean(String key)
getBoolean in interface com.opensymphony.module.propertyset.PropertySetgetBoolean in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setBoolean(String key, boolean value)
setBoolean in interface com.opensymphony.module.propertyset.PropertySetsetBoolean in class com.opensymphony.module.propertyset.AbstractPropertySetpublic int getInt(String key)
getInt in interface com.opensymphony.module.propertyset.PropertySetgetInt in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setInt(String key, int value)
setInt in interface com.opensymphony.module.propertyset.PropertySetsetInt in class com.opensymphony.module.propertyset.AbstractPropertySetpublic long getLong(String key)
getLong in interface com.opensymphony.module.propertyset.PropertySetgetLong in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setLong(String key, long value)
setLong in interface com.opensymphony.module.propertyset.PropertySetsetLong in class com.opensymphony.module.propertyset.AbstractPropertySetpublic double getDouble(String key)
getDouble in interface com.opensymphony.module.propertyset.PropertySetgetDouble in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setDouble(String key, double value)
setDouble in interface com.opensymphony.module.propertyset.PropertySetsetDouble in class com.opensymphony.module.propertyset.AbstractPropertySetpublic Date getDate(String key)
getDate in interface com.opensymphony.module.propertyset.PropertySetgetDate in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setDate(String key, Date value)
setDate in interface com.opensymphony.module.propertyset.PropertySetsetDate in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setText(String key, String value) throws com.opensymphony.module.propertyset.IllegalPropertyException
setText in interface com.opensymphony.module.propertyset.PropertySetsetText in class com.opensymphony.module.propertyset.AbstractPropertySetcom.opensymphony.module.propertyset.IllegalPropertyExceptionpublic byte[] getData(String key)
getData in interface com.opensymphony.module.propertyset.PropertySetgetData in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setData(String key, byte[] value)
setData in interface com.opensymphony.module.propertyset.PropertySetsetData in class com.opensymphony.module.propertyset.AbstractPropertySetpublic Object getObject(String key)
getObject in interface com.opensymphony.module.propertyset.PropertySetgetObject in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setObject(String key, Object value)
setObject in interface com.opensymphony.module.propertyset.PropertySetsetObject in class com.opensymphony.module.propertyset.AbstractPropertySetpublic Properties getProperties(String key)
getProperties in interface com.opensymphony.module.propertyset.PropertySetgetProperties in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setProperties(String key, Properties value)
setProperties in interface com.opensymphony.module.propertyset.PropertySetsetProperties in class com.opensymphony.module.propertyset.AbstractPropertySetpublic Document getXML(String key)
getXML in interface com.opensymphony.module.propertyset.PropertySetgetXML in class com.opensymphony.module.propertyset.AbstractPropertySetpublic void setXML(String key, Document value)
setXML in interface com.opensymphony.module.propertyset.PropertySetsetXML in class com.opensymphony.module.propertyset.AbstractPropertySetpublic boolean supportsTypes()
supportsTypes in interface com.opensymphony.module.propertyset.PropertySetsupportsTypes in class com.opensymphony.module.propertyset.map.MapPropertySetpublic Map getMap()
getMap in class com.opensymphony.module.propertyset.map.MapPropertySetpublic void setMap(Map map)
setMap in class com.opensymphony.module.propertyset.map.MapPropertySetpublic void remove(String key)
remove in interface com.opensymphony.module.propertyset.PropertySetremove in class com.opensymphony.module.propertyset.map.MapPropertySetprotected void setImpl(int type,
String key,
Object value)
setImpl in class com.opensymphony.module.propertyset.map.MapPropertySetpublic boolean supportsType(int type)
supportsType in interface com.opensymphony.module.propertyset.PropertySetsupportsType in class com.opensymphony.module.propertyset.map.MapPropertySetpublic String toString()
toString in class com.opensymphony.module.propertyset.AbstractPropertySetCopyright © 2023 Atlassian. All rights reserved.