gluu
|
公開メンバ関数 | |
CustomAttributes (String uri) | |
String | getUri () |
Set< String > | getAttributeNames () |
void | remove (String name) |
void | setAttribute (String name, String value) |
void | setAttribute (String name, Boolean value) |
void | setAttribute (String name, Double value) |
void | setAttribute (String name, Integer value) |
void | setAttribute (String name, DateTime value) |
void | setAttribute (String name, Date value) |
void | setAttribute (String name, List<?> values) |
関数 | |
CustomAttributes (String uri, Map< String, Object > attributeMap) | |
Map< String, Object > | getAttributeMap () |
public< T > List< T > | getValues (String name, Class< T > cls) |
public< T > T | getValue (String name, Class< T > cls) |
非公開メンバ関数 | |
void | set (String name, Object value) |
静的非公開メンバ関数 | |
static< T > T | getTypedValue (Object val, Class< T > cls) |
非公開変数類 | |
Map< String, Object > | attributeMap |
String | uri |
A class used to store the values of custom attributes associated to a resource extension. This class is mainly targeted at users of Java SCIM-Client in order to specify/retrieve custom attributes.
Use the setAttribute
methods to associate one (or several) values to an attribute, and use the getValue
/getValues
methods to retrive those values when coming directly from service invocations.
For both kind of operations (set/get) the data types used should ideally be consistent with the previously configured custom attributes at Gluu Server. This allows your custom data to be successfully validated when sent to server, or to be correctly retrieved when reading a response.
For photo
or text
, you may use String, for numeric
sensible choices are Integer or Double, for boolean
use Boolean, and for date
you may use Date or DateTime from Joda-Time library.
Remember that custom attributes can be managed via Gluu Server oxTrust admin web console. For instructions, please see the SCIM docs page.
See also: BaseScimResource#addCustomAttributes(CustomAttributes) and BaseScimResource#getCustomAttributes(String).
|
inline |
Constructs an instance of this class to store the attribute values associated to an extension whose URI is supplied.
uri | A string denoting the URI of an existing extension |
|
inlinepackage |
|
inlinepackage |
|
inline |
Returns the names of all attributes currently part of this instance object.
|
inlinestaticprivate |
|
inline |
|
inlinepackage |
Returns the value of a custom attribute as an instance of the specified type. If you are not sure about the data type of the attribute, use String
for type parameter T: in this case toString is used to generate a representation.
name | The name of the custom attribute |
cls | Specifies the type utilized to read the attribute value |
<T> | Type parameter for cls |
|
inlinepackage |
Returns the values of a multi-valued custom attribute as a List
of objects of the specified type. If you are not sure about the data type of the attribute, use String
for type parameter T: in this case toString is used to generate a representation.
name | The name of the custom attribute |
cls | Specifies the type utilized to read the attribute values |
<T> | Type parameter for cls |
|
inline |
Removes an attribute (and associated value) from this object
name | The name of the attribute to remove. Use the exactly the same String as when the attribute was set |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the value of an attribute using a Joda DateTime
.
name | Name of attribute |
value | A DateTime object. Must be non-null, or else it won't be stored |
|
inline |
Sets the value of an attribute using a JDK Date
.
name | Name of attribute |
value | A Date object. Must be non-null, or else it won't be stored |
|
inline |
|
private |
|
private |