public class DSTQuery extends Object
DSTQuery
class represents a DST
query request.
The following schema fragment specifies the expected content within the
DSTQuery
object.
<complexType name="QueryType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <group ref="{urn:liberty:idpp:2003-08}ResourceIDGroup"/> <element name="QueryItem" maxOccurs="unbounded"> <complexType> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema} anyType"> <sequence> <element name="Select" type="{urn:liberty:idpp:2003-08}SelectType"/> </sequence> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> <attribute name="changedSince" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> <attribute name="itemID" type="{urn:liberty:idpp:2003-08}IDType" /> <attribute name="includeCommonAttributes" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </restriction> </complexContent> </complexType> </element> <element ref="{urn:liberty:idpp:2003-08}Extension" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="itemID" type="{urn:liberty:idpp:2003-08}IDType" /> <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>
Constructor and Description |
---|
DSTQuery()
Constructor
|
DSTQuery(Element element)
Constructor
|
DSTQuery(EncryptedResourceID encResourceID,
List items,
String serviceNS)
Constructor
|
DSTQuery(String resourceID,
List items,
String serviceNS)
Constructor
|
Modifier and Type | Method and Description |
---|---|
EncryptedResourceID |
getEncryptedResourceID()
Gets encrypted resource ID.
|
List |
getExtension()
Gets the extension property.
|
String |
getId()
Gets id attribute.
|
String |
getItemID()
Gets item ID attribute
|
String |
getNameSpacePrefix()
Gets the name space prefix.
|
String |
getNameSpaceURI()
Gets the name space.
|
List |
getQueryItems()
Gets the value of the
QueryItem property. |
String |
getResourceID()
Gets resource ID.
|
void |
setEncryptedResourceID(EncryptedResourceID encResourceID)
Sets encrypted resource ID for the
DST query. |
void |
setId(String id)
Sets id attribute
|
void |
setItemID(String value)
Sets item ID attribute
|
void |
setNameSpacePrefix(String prefix)
Sets the name space prefix.
|
void |
setNameSpaceURI(String nameSpace)
Sets the name space.
|
void |
setQueryItem(List items)
Sets the value of the
QueryItem property. |
void |
setResourceID(String resourceID)
Sets resource ID for the
DST query. |
String |
toString()
Creates a String representation of this object.
|
String |
toString(boolean includeNS,
boolean declareNS)
Creates a String representation of this object.
|
public DSTQuery()
public DSTQuery(String resourceID, List items, String serviceNS)
resourceID
- id for the resource to be queried.items
- List of DSTQueryItem
objects.serviceNS
- service name space.public DSTQuery(EncryptedResourceID encResourceID, List items, String serviceNS)
encResourceID
- id for the encrypted resource to be queried.items
- list of DSTQueryItem
objects.serviceNS
- service name space.public DSTQuery(Element element) throws DSTException
element
- DOM
Element.DSTException
- If there was an error while parsing the XML.public List getQueryItems()
QueryItem
property.DSTQueryItem
objectspublic void setQueryItem(List items)
QueryItem
property.items
- List of DSTQueryItem
objectspublic String getId()
public void setId(String id)
id
- value of id to be setpublic EncryptedResourceID getEncryptedResourceID()
public void setEncryptedResourceID(EncryptedResourceID encResourceID)
DST
query.encResourceID
- encrypted resource ID.public String getResourceID()
public void setResourceID(String resourceID)
DST
query.resourceID
- resource ID to be setpublic String getItemID()
public void setItemID(String value)
value
- item ID to be setpublic List getExtension()
public String getNameSpaceURI()
public void setNameSpaceURI(String nameSpace)
nameSpace
- Name space URI.public void setNameSpacePrefix(String prefix)
prefix
- Name space prefix.public String getNameSpacePrefix()
public String toString()
public String toString(boolean includeNS, boolean declareNS)
includeNS
- if true prepends all elements by their name space prefixdeclareNS
- if true includes the name space within the
generated.Copyright © 2010-2018, ForgeRock All Rights Reserved.