org.openliberty.xmltooling.idsis.dap
Class DAPCreate
java.lang.Object
org.opensaml.xml.AbstractXMLObject
org.openliberty.xmltooling.dst2_1.RequestType
org.openliberty.xmltooling.idsis.dap.DAPCreate
- All Implemented Interfaces:
- org.opensaml.xml.AttributeExtensibleXMLObject, org.opensaml.xml.XMLObject
public class DAPCreate
- extends RequestType
<xs:complexType name="CreateType">
<xs:complexContent>
<xs:extension base="dst:RequestType">
<xs:sequence>
<xs:element ref="dap:Subscription" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="dap:CreateItem" minOccurs="1" maxOccurs="unbounded"/>
<xs:element ref="dap:ResultQuery" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
- Author:
- asa
|
Constructor Summary |
|
DAPCreate(DAPCreateItem createItem)
Constructor that insures the minimum requirement of 1 CreateItem
element |
|
DAPCreate(java.lang.String ldifCreateString,
java.lang.String itemId)
Constructor that takes an LDIF string meant to be
added to the LDAP directory and builds the appropriate
and simplest element construction to request the add
through ID-DAP: |
protected |
DAPCreate(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
Constructor that takes an LDIF string meant to be
added to the LDAP directory and builds the appropriate
and simplest element construction to request the add
through ID-DAP. |
| Methods inherited from class org.opensaml.xml.AbstractXMLObject |
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opensaml.xml.XMLObject |
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation |
LOCAL_NAME
public static java.lang.String LOCAL_NAME
subscriptions
private org.opensaml.xml.util.XMLObjectChildrenList<DAPSubscription> subscriptions
createItems
private org.opensaml.xml.util.XMLObjectChildrenList<DAPCreateItem> createItems
resultQueries
private org.opensaml.xml.util.XMLObjectChildrenList<DAPResultQuery> resultQueries
DAPCreate
public DAPCreate(DAPCreateItem createItem)
- Constructor that insures the minimum requirement of 1 CreateItem
element
- Parameters:
createItem -
DAPCreate
public DAPCreate(java.lang.String ldifCreateString,
java.lang.String itemId)
- Constructor that takes an LDIF string meant to be
added to the LDAP directory and builds the appropriate
and simplest element construction to request the add
through ID-DAP:
- Parameters:
ldifCreateString -
DAPCreate
protected DAPCreate(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
- Constructor that takes an LDIF string meant to be
added to the LDAP directory and builds the appropriate
and simplest element construction to request the add
through ID-DAP. It also takes a NameSpace string. This
was built because symlabs uses a slightly different NS
than is defined in the spec for their DST 2.1 ID-SIS-DAP
results.
- Parameters:
ldifCreateString - NS - public DAPCreate(String ldifCreateString, String NS, String itemId)
{
super(NS, LOCAL_NAME, Konstantz.DAP_PREFIX);
setItemID(UUID.randomUUID().toString());
DAPCreateItem createItem = new DAPCreateItem(NS, DAPCreateItem.LOCAL_NAME, Konstantz.DAP_PREFIX);
createItem.getCreateItemAttributeGroup().setItemID(UUID.randomUUID().toString(), createItem);
LDIF ldif = new LDIF(NS, LDIF.LOCAL_NAME, Konstantz.DAP_PREFIX);
ldif.setValue(ldifCreateString);
DAPNewData newData = new DAPNewData(NS, DAPNewData.LOCAL_NAME, Konstantz.DAP_PREFIX);
newData.setLDIF(ldif);
createItem.setNewData(newData);
createItems = new XMLObjectChildrenList(this);
createItems.add(createItem);
}
getDAPSubscriptions
public org.opensaml.xml.util.XMLObjectChildrenList<DAPSubscription> getDAPSubscriptions()
getDAPCreateItems
public org.opensaml.xml.util.XMLObjectChildrenList<DAPCreateItem> getDAPCreateItems()
getDAPResultQueries
public org.opensaml.xml.util.XMLObjectChildrenList<DAPResultQuery> getDAPResultQueries()
getOrderedChildren
public java.util.List<org.opensaml.xml.XMLObject> getOrderedChildren()
- Specified by:
getOrderedChildren in interface org.opensaml.xml.XMLObject- Overrides:
getOrderedChildren in class RequestType