|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unboundid.scim.sdk.SCIMObject
public class SCIMObject
This class represents a Simple Cloud Identity Management (SCIM) object. A SCIM object may be composed of common schema attributes and a collection of attributes from one or more additional schema definitions. This class is not designed to be thread-safe.
| Constructor Summary | |
|---|---|
SCIMObject()
Create an empty SCIM object that initially has no attributes. |
|
SCIMObject(SCIMObject scimObject)
Create a new copy of the provided SCIM object. |
|
| Method Summary | |
|---|---|
boolean |
addAttribute(SCIMAttribute attribute)
Adds the provided attribute to this object. |
boolean |
equals(Object o)
|
SCIMAttribute |
getAttribute(String schema,
String name)
Retrieves the attribute with the specified name. |
Collection<SCIMAttribute> |
getAttributes(String schema)
Retrieves the set of attributes in this object from the specified schema. |
Set<String> |
getSchemas()
Retrieves the set of schemas currently contributing attributes to this object. |
boolean |
hasAttribute(String schema,
String name)
Determines whether this object contains the specified attribute. |
int |
hashCode()
|
boolean |
hasSchema(String schema)
Determines whether this object contains any attributes in the specified schema. |
boolean |
matchesFilter(SCIMFilter filter)
Determine whether this object matches the provided filter parameters. |
boolean |
removeAttribute(String schema,
String name)
Removes the specified attribute from this object. |
void |
setAttribute(SCIMAttribute attribute)
Adds the provided attribute to this object, replacing any existing attribute with the same name. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SCIMObject()
public SCIMObject(SCIMObject scimObject)
scimObject - The SCIMObject to copy.| Method Detail |
|---|
public Set<String> getSchemas()
public boolean hasSchema(String schema)
schema - The URI of the schema for which to make the determination.
It must not be null.
true if this object contains any attributes in the
specified schema, or false if not.
public SCIMAttribute getAttribute(String schema,
String name)
schema - The URI of the schema containing the attribute to retrieve.name - The name of the attribute to retrieve. It must not be
null.
null if the
specified attribute is not present in this object.public Collection<SCIMAttribute> getAttributes(String schema)
schema - The URI of the schema whose attributes are to be retrieved.
public boolean hasAttribute(String schema,
String name)
schema - The URI of the schema containing the attribute.name - The name of the attribute for which to make the
determination. It must not be null.
true if this object contains the specified attribute, or
false if not.public boolean addAttribute(SCIMAttribute attribute)
attribute - The attribute to be added. It must not be null.
true if the object was updated, or false if the
object already contained an attribute with the same name.public void setAttribute(SCIMAttribute attribute)
attribute - The attribute to be added. It must not be null.
public boolean removeAttribute(String schema,
String name)
schema - The URI of the schema to which the attribute belongs.name - The name of the attribute to remove. It must not be
null.
true if the attribute was removed from the object, or
false if it was not present.public boolean matchesFilter(SCIMFilter filter)
filter - The filter parameters to compare against the object.
true if this object matches the provided filter, and
false otherwise.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||