public class SCIMQueryAttributes extends Object
| Constructor and Description |
|---|
SCIMQueryAttributes(List<String> attributes,
ResourceDescriptor resourceDescriptor)
Create a new instance of query attributes from their string representation.
|
SCIMQueryAttributes(Map<AttributeDescriptor,Set<AttributeDescriptor>> descriptors)
Create a new set of query attributes from the provided information.
|
SCIMQueryAttributes(ResourceDescriptor resourceDescriptor,
String attributes)
Create a new instance of query attributes from their string representation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allAttributesRequested()
Determine whether all attributes and sub-attributes are requested by
these query attributes.
|
Map<AttributeDescriptor,Set<AttributeDescriptor>> |
getDescriptors()
Returns the map of requested attributes and sub-attributes.
|
boolean |
isAttributeRequested(AttributeDescriptor attributeDescriptor)
Determine whether the specified attribute is requested by these query
attributes.
|
SCIMQueryAttributes |
merge(SCIMQueryAttributes that)
Return query attributes formed by merging these query attributes with the
provided query attributes.
|
SCIMAttribute |
pareAttribute(SCIMAttribute attribute)
Pare down an attribute to its requested sub-attributes.
|
SCIMObject |
pareObject(SCIMObject scimObject)
Pare down a SCIM object to its requested attributes.
|
String |
toString() |
public SCIMQueryAttributes(ResourceDescriptor resourceDescriptor, String attributes) throws InvalidResourceException
resourceDescriptor - The resource descriptor for the SCIM endpoint.attributes - The attributes query parameter specifying the set of
attributes or sub-attributes requested, or null if
all attributes and sub-attributes are requested. The
attributes must be qualified by their
schema URI if they are not in the core schema.InvalidResourceException - If one of the specified attributes does
not exist.public SCIMQueryAttributes(List<String> attributes, ResourceDescriptor resourceDescriptor) throws InvalidResourceException
resourceDescriptor - The resource descriptor for the SCIM endpoint.attributes - The attributes query parameter specifying the set of
attributes or sub-attributes requested, or null if
all attributes and sub-attributes are requested. The
attributes must be qualified by their
schema URI if they are not in the core schema.InvalidResourceException - If one of the specified attributes does
not exist.public SCIMQueryAttributes(Map<AttributeDescriptor,Set<AttributeDescriptor>> descriptors)
descriptors - The set of attributes and sub-attributes
explicitly requested, or null if all
attributes are requested.public boolean allAttributesRequested()
true if all attributes and sub-attributes are requested,
and false otherwise.public boolean isAttributeRequested(AttributeDescriptor attributeDescriptor)
attributeDescriptor - The attribute for which to make the
determination.true if the specified attribute is requested, or false
otherwise.public Map<AttributeDescriptor,Set<AttributeDescriptor>> getDescriptors()
public SCIMObject pareObject(SCIMObject scimObject)
scimObject - The SCIM object to be pared down.public SCIMAttribute pareAttribute(SCIMAttribute attribute)
attribute - The attribute to be pared down.null if the attribute
should not be included at all.public SCIMQueryAttributes merge(SCIMQueryAttributes that) throws InvalidResourceException
that - The query attributes to be merged with these query attributes
to form new query attributes.InvalidResourceException - If the query attributes could not be
merged.Copyright © 2011–2016 UnboundID. All rights reserved.