public class PSObject
extends org.opensaml.core.xml.AbstractXMLObject
implements org.opensaml.core.xml.ElementExtensibleXMLObject
From section 2.1 of the ID-WSF People Service Specification v1.0:
Both individual users and the groups to which they may belong are represented as <Object> elements - whether an <Object> refers to a group or a user (or perhaps some other individual entity) is distinguished by a NodeType attribute with values of urn:liberty:ps:collection or urn:liberty:ps:entity respectively (see Section 2.1.1 for exact definition).
The <Object> element has DisplayName elements to carry a human-readable name for the <Object> (see
Section 2.1.5).
The <ObjectID> element uniquely labels each <Object> (see Section 2.1.4). The optional CreatedDateTime and ModifiedDateTime attributes express the time at which an Object was created and last modified respectively (see Section 2.1.2).
To account for nested Objects, an <Object> element can have multiple <Object> and/or <ObjectRef> elements to refer to other Objects.
<xs:element name="Object" type="ObjectType" />
<xs:complexType name="ObjectType">
<xs:sequence>
<xs:element ref="ObjectID" minOccurs="0" />
<xs:element name="DisplayName" type="LocalizedDisplayNameType" minOccurs="1" maxOccurs="unbounded" />
<xs:element name="Tag" type="TagType" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="Object" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="ObjectRef" type="ObjectIDType" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="NodeType" type="xs:anyURI" use="required" />
<xs:attribute name="CreatedDateTime" type="xs:dateTime" use="optional" />
<xs:attribute name="ModifiedDateTime" type="xs:dateTime" use="optional" />
</xs:complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
PSObject.Builder
Static Builder for PSObject
|
static class |
PSObject.Marshaller
Static Marshaller for PSObject
|
static class |
PSObject.NodeType |
static class |
PSObject.Unmarshaller
Ststic Unmarshaller for PSObject
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ATT_CREATED_DATE_TIME |
static String |
ATT_MODIFIED_DATE_TIME |
static String |
ATT_NODE_TYPE |
private DateTime |
createdDateTime |
private org.opensaml.core.xml.util.XMLObjectChildrenList<DisplayName> |
displayNames |
static String |
LOCAL_NAME |
private DateTime |
modifiedDateTime |
private PSObject.NodeType |
nodeType |
private ObjectID |
objectID |
private org.opensaml.core.xml.util.XMLObjectChildrenList<ObjectRef> |
objectRefs |
private org.opensaml.core.xml.util.XMLObjectChildrenList<PSObject> |
objects |
private org.opensaml.core.xml.util.XMLObjectChildrenList<Tag> |
tags |
private org.opensaml.core.xml.util.IndexedXMLObjectChildrenList<org.opensaml.core.xml.XMLObject> |
unknownXMLObjects |
| Modifier | Constructor and Description |
|---|---|
|
PSObject() |
|
PSObject(String displayName) |
protected |
PSObject(String namespaceURI,
String elementLocalName,
String namespacePrefix) |
| Modifier and Type | Method and Description |
|---|---|
static PSObject |
createCollection(String displayName) |
static PSObject |
createEntity(String displayName) |
ObjectRef |
createObjectRef()
This method returns a PSObjectRef only if there is a PSObjectID present in the PSObject
|
TargetObjectID |
createTargetObjectID()
This method returns a TargetObjectID only if there is a PSObjectID present in the PSObject
|
DateTime |
getCreatedDateTime() |
org.opensaml.core.xml.util.XMLObjectChildrenList<DisplayName> |
getDisplayNames() |
DateTime |
getModifiedDateTime() |
String |
getName() |
PSObject.NodeType |
getNodeType() |
ObjectID |
getObjectID() |
org.opensaml.core.xml.util.XMLObjectChildrenList<ObjectRef> |
getObjectRefs() |
org.opensaml.core.xml.util.XMLObjectChildrenList<PSObject> |
getObjects() |
List<org.opensaml.core.xml.XMLObject> |
getOrderedChildren() |
org.opensaml.core.xml.util.XMLObjectChildrenList<Tag> |
getTags() |
List<org.opensaml.core.xml.XMLObject> |
getUnknownXMLObjects() |
List<org.opensaml.core.xml.XMLObject> |
getUnknownXMLObjects(QName typeOrName) |
boolean |
isCollection() |
boolean |
isEntity() |
void |
print() |
static void |
printPSObject(PSObject object) |
private static void |
printPSObject(PSObject object,
int depth) |
void |
setCreatedDateTime(DateTime createdDateTime) |
void |
setModifiedDateTime(DateTime modifiedDateTime) |
void |
setName(String displayNameValue)
Sets the value of the first DisplayName, or creates one if it does not exist
|
void |
setNodeType(PSObject.NodeType nodeType) |
void |
setObjectID(ObjectID objectID) |
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocationpublic static String LOCAL_NAME
public static String ATT_NODE_TYPE
public static String ATT_CREATED_DATE_TIME
public static String ATT_MODIFIED_DATE_TIME
private PSObject.NodeType nodeType
private DateTime createdDateTime
private DateTime modifiedDateTime
private ObjectID objectID
private org.opensaml.core.xml.util.XMLObjectChildrenList<DisplayName> displayNames
private org.opensaml.core.xml.util.XMLObjectChildrenList<Tag> tags
private org.opensaml.core.xml.util.XMLObjectChildrenList<PSObject> objects
private org.opensaml.core.xml.util.XMLObjectChildrenList<ObjectRef> objectRefs
private org.opensaml.core.xml.util.IndexedXMLObjectChildrenList<org.opensaml.core.xml.XMLObject> unknownXMLObjects
public PSObject()
public PSObject(String displayName)
public boolean isCollection()
public boolean isEntity()
public void print()
public static void printPSObject(PSObject object)
private static void printPSObject(PSObject object, int depth)
public ObjectRef createObjectRef()
public TargetObjectID createTargetObjectID()
public String getName()
public void setName(String displayNameValue)
public PSObject.NodeType getNodeType()
public void setNodeType(PSObject.NodeType nodeType)
public void setCreatedDateTime(DateTime createdDateTime)
public DateTime getCreatedDateTime()
public void setModifiedDateTime(DateTime modifiedDateTime)
public DateTime getModifiedDateTime()
public void setObjectID(ObjectID objectID)
public ObjectID getObjectID()
public org.opensaml.core.xml.util.XMLObjectChildrenList<DisplayName> getDisplayNames()
public org.opensaml.core.xml.util.XMLObjectChildrenList<Tag> getTags()
public org.opensaml.core.xml.util.XMLObjectChildrenList<PSObject> getObjects()
public org.opensaml.core.xml.util.XMLObjectChildrenList<ObjectRef> getObjectRefs()
public List<org.opensaml.core.xml.XMLObject> getUnknownXMLObjects()
getUnknownXMLObjects in interface org.opensaml.core.xml.ElementExtensibleXMLObjectpublic List<org.opensaml.core.xml.XMLObject> getUnknownXMLObjects(QName typeOrName)
getUnknownXMLObjects in interface org.opensaml.core.xml.ElementExtensibleXMLObjectpublic List<org.opensaml.core.xml.XMLObject> getOrderedChildren()
getOrderedChildren in interface org.opensaml.core.xml.XMLObjectCopyright © 1999–2015. All rights reserved.