Package com.sun.identity.liberty.ws.dst
Class DSTQuery
- java.lang.Object
-
- com.sun.identity.liberty.ws.dst.DSTQuery
-
public class DSTQuery extends Object
TheDSTQueryclass represents aDSTquery request.The following schema fragment specifies the expected content within the
DSTQueryobject.<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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptedResourceIDgetEncryptedResourceID()Gets encrypted resource ID.ListgetExtension()Gets the extension property.StringgetId()Gets id attribute.StringgetItemID()Gets item ID attributeStringgetNameSpacePrefix()Gets the name space prefix.StringgetNameSpaceURI()Gets the name space.ListgetQueryItems()Gets the value of theQueryItemproperty.StringgetResourceID()Gets resource ID.voidsetEncryptedResourceID(EncryptedResourceID encResourceID)Sets encrypted resource ID for theDSTquery.voidsetId(String id)Sets id attributevoidsetItemID(String value)Sets item ID attributevoidsetNameSpacePrefix(String prefix)Sets the name space prefix.voidsetNameSpaceURI(String nameSpace)Sets the name space.voidsetQueryItem(List items)Sets the value of theQueryItemproperty.voidsetResourceID(String resourceID)Sets resource ID for theDSTquery.StringtoString()Creates a String representation of this object.StringtoString(boolean includeNS, boolean declareNS)Creates a String representation of this object.
-
-
-
Constructor Detail
-
DSTQuery
public DSTQuery()
Constructor
-
DSTQuery
public DSTQuery(String resourceID, List items, String serviceNS)
Constructor- Parameters:
resourceID- id for the resource to be queried.items- List ofDSTQueryItemobjects.serviceNS- service name space.
-
DSTQuery
public DSTQuery(EncryptedResourceID encResourceID, List items, String serviceNS)
Constructor- Parameters:
encResourceID- id for the encrypted resource to be queried.items- list ofDSTQueryItemobjects.serviceNS- service name space.
-
DSTQuery
public DSTQuery(Element element) throws DSTException
Constructor- Parameters:
element-DOMElement.- Throws:
DSTException
-
-
Method Detail
-
getQueryItems
public List getQueryItems()
Gets the value of theQueryItemproperty.- Returns:
- List of
DSTQueryItemobjects
-
setQueryItem
public void setQueryItem(List items)
Sets the value of theQueryItemproperty.- Parameters:
items- List ofDSTQueryItemobjects
-
getId
public String getId()
Gets id attribute.- Returns:
- id attribute.
-
setId
public void setId(String id)
Sets id attribute- Parameters:
id- value of id to be set
-
getEncryptedResourceID
public EncryptedResourceID getEncryptedResourceID()
Gets encrypted resource ID.- Returns:
- Encrypted resource ID.
-
setEncryptedResourceID
public void setEncryptedResourceID(EncryptedResourceID encResourceID)
Sets encrypted resource ID for theDSTquery.- Parameters:
encResourceID- encrypted resource ID.
-
getResourceID
public String getResourceID()
Gets resource ID.- Returns:
- resource ID.
-
setResourceID
public void setResourceID(String resourceID)
Sets resource ID for theDSTquery.- Parameters:
resourceID- resource ID to be set
-
getItemID
public String getItemID()
Gets item ID attribute- Returns:
- String
-
setItemID
public void setItemID(String value)
Sets item ID attribute- Parameters:
value- item ID to be set
-
getExtension
public List getExtension()
Gets the extension property.- Returns:
- List of any Object
-
getNameSpaceURI
public String getNameSpaceURI()
Gets the name space.- Returns:
- name space.
-
setNameSpaceURI
public void setNameSpaceURI(String nameSpace)
Sets the name space.- Parameters:
nameSpace- Name space URI.
-
setNameSpacePrefix
public void setNameSpacePrefix(String prefix)
Sets the name space prefix.- Parameters:
prefix- Name space prefix.
-
getNameSpacePrefix
public String getNameSpacePrefix()
Gets the name space prefix.- Returns:
- Name space prefix.
-
toString
public String toString()
Creates a String representation of this object. By default name space name is prepended to the element name
-
toString
public String toString(boolean includeNS, boolean declareNS)
Creates a String representation of this object.- Parameters:
includeNS- if true prepends all elements by their name space prefixdeclareNS- if true includes the name space within the generated.- Returns:
- String A string containing the valid XML for this element
-
-