|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openliberty.wsc.BaseServiceClient
org.openliberty.wsc.PeopleService
public class PeopleService
| Nested Class Summary | |
|---|---|
static class |
PeopleService.ListStructure
|
static class |
PeopleService.PeopleServiceRequest
|
| Field Summary | |
|---|---|
private WSFMessage |
currentReqRespMessage
|
protected static org.apache.log4j.Logger |
log
|
static java.lang.String |
SERVICE_URN
|
| Constructor Summary | |
|---|---|
PeopleService(DiscoveryService discoveryService,
EndpointReference initialEndpointReference)
|
|
| Method Summary | |
|---|---|
PSCollection |
addCollection(PSCollection collection,
PSSubscription subscription)
(urn:liberty:ps:2006-08:AddCollection*) - The ClientLib will provide a mechanism for adding collections to the PS. |
PSEntity |
addEntity(PSEntity entity,
PSSubscription subscription)
(urn:liberty:ps:2006-08:AddEntity*) - The ClientLib will provide a mechanism for adding entities to the PS. |
PSEntity |
addKnownEntity(PSEntity entity,
Token token,
boolean createReciprocalPSObject,
PSSubscription subscription)
(urn:liberty:ps:2006-08:AddKnownEntity*) - The WSC sends an identity token to the PS to attempt the addition of a known entity. |
void |
addObjectsToCollection(java.util.List<PSObjectID> objectIDs,
TargetPSObjectID collectionID,
PSSubscription subscription)
This method requests that the PS add the objects referenced by the supplied object IDs to the collection specified by the collection ID |
WSFMessage |
currentReqRespMessage()
|
java.util.List<PSObject> |
findObjects(javax.xml.xpath.XPathExpression pathExpression,
int count,
int offset,
PSSubscription subscription)
(urn:liberty:ps:2006-08:QueryObjects*) The PS Client will provide a mechanism for creating an xpath base query to the PS, which will return 0...n Objects in a flat list (no tree). |
PSObject |
getObjectInfo(PSObjectRef objectRef,
PSSubscription subscription)
This method simply invokes objectForObjectRef() and is included for naming consistency with the spec |
void |
invoke(PeopleService.PeopleServiceRequest request)
|
java.util.List<PSObject> |
listCollectionMembers(TargetPSObjectID collectionID,
PeopleService.ListStructure structure,
java.lang.Integer count,
java.lang.Integer offset,
PSSubscription subscription)
The PS Client will provide a facility for a ClientLIb user to list the members of a collection. |
PSObject |
objectForObjectRef(PSObjectRef objectRef,
PSSubscription subscription)
(urn:liberty:ps:2006-08:GetObjectInfo*) a method for retrieving the object info for a specific object. |
static PeopleService |
peopleServiceForEndpointReference(DiscoveryService discoveryService,
EndpointReference epr)
Factory method that creates and initializes a PeopleService. |
boolean |
removeCollections(java.util.List<PSCollection> collections)
This method takes a list of PSCollections and asks the PS to remove them |
boolean |
removeEntities(java.util.List<PSEntity> entities)
This method takes a list of PSObjects and asks the PS to remove them |
void |
removeObjectsFromCollection(java.util.List<PSObjectID> objectIDs,
TargetPSObjectID collectionID,
PSSubscription subscription)
This method requests that the PS remove the objects referenced by the supplied object IDs from the collection specified by the collection ID |
java.util.List<ResolveOutput> |
resolveIdentifiers(java.util.List<ResolveInput> inputs)
urn:liberty:ps:2006-08:ResolveIdentifier* Method for retrieving stored identity tokens from an object identifier list 1...n. |
void |
setObjectInfo(java.util.List<PSObject> objects,
PSSubscription subscription)
This method simply invokes updateObjects() and is included for naming consistency with the spec |
boolean |
testMembership(Token identityToken,
PSCollection collection,
PSSubscription subscription)
(urn:liberty:ps:2006-08:TestMembership*) Poses the question 'Is user X a member of group Y?' to the PS |
void |
updateObjects(java.util.List<PSObject> objects,
PSSubscription subscription)
(urn:liberty:ps:2006-08:SetObjectInfo*) updating the object info for a list of existing objects (1...n) |
| Methods inherited from class org.openliberty.wsc.BaseServiceClient |
|---|
getDiscoveryService, getServiceEndpointReference, getServiceEndpointReferenceStore, isSigningOutgoingMessages, replaceServiceEndpointReference, serviceExplicitlySupportsOption, setDiscoveryService, setServiceEndpointReference, setSigningOutgoingMessages |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
public static final java.lang.String SERVICE_URN
private WSFMessage currentReqRespMessage
| Constructor Detail |
|---|
public PeopleService(DiscoveryService discoveryService,
EndpointReference initialEndpointReference)
| Method Detail |
|---|
public static PeopleService peopleServiceForEndpointReference(DiscoveryService discoveryService,
EndpointReference epr)
epr -
public WSFMessage currentReqRespMessage()
public PSEntity addEntity(PSEntity entity,
PSSubscription subscription)
entity - the entity that the user would like to addoptionalSubscription - a notification subscription
public PSEntity addKnownEntity(PSEntity entity,
Token token,
boolean createReciprocalPSObject,
PSSubscription subscription)
entity - the entity that the user would like to addtoken - used to convey an identity token for the target user Object being created.createReciprocalPSObject - if true, indicates that the WSC wants an object created representing the inviting user at the invited user's PS.optionalSubscription - a notification subscription
public boolean removeEntities(java.util.List<PSEntity> entities)
objectRefs -
public boolean testMembership(Token identityToken,
PSCollection collection,
PSSubscription subscription)
identityToken - required - identifies the entity being tested for membershipcollection - required - identifies the collection to query about membershipsubscription -
public PSCollection addCollection(PSCollection collection,
PSSubscription subscription)
collection - the collection that the user would like to addsubscription - a notification subscription
public boolean removeCollections(java.util.List<PSCollection> collections)
objectRefs -
public void addObjectsToCollection(java.util.List<PSObjectID> objectIDs,
TargetPSObjectID collectionID,
PSSubscription subscription)
objectIDs - collectionID - subscription -
public void removeObjectsFromCollection(java.util.List<PSObjectID> objectIDs,
TargetPSObjectID collectionID,
PSSubscription subscription)
objectIDs - collectionID - subscription -
public java.util.List<PSObject> listCollectionMembers(TargetPSObjectID collectionID,
PeopleService.ListStructure structure,
java.lang.Integer count,
java.lang.Integer offset,
PSSubscription subscription)
structure can be "children" "tree" or "entities"
count and offset are used to paginate the response tree/list
collectionID - if not specified root is assumedstructure - indicates the structure of the results returnedcount - non-negative value indicating how many objects to return maxoffset - non-negative value indicating where in the full results set to begin returning objectssubscription -
public PSObject objectForObjectRef(PSObjectRef objectRef,
PSSubscription subscription)
objectRef - optionalSubscription -
public PSObject getObjectInfo(PSObjectRef objectRef,
PSSubscription subscription)
objectRef - optionalSubscription -
public void updateObjects(java.util.List<PSObject> objects,
PSSubscription subscription)
objects - subscription -
public void setObjectInfo(java.util.List<PSObject> objects,
PSSubscription subscription)
objectRef - optionalSubscription - public java.util.List<ResolveOutput> resolveIdentifiers(java.util.List<ResolveInput> inputs)
targetIDs -
public java.util.List<PSObject> findObjects(javax.xml.xpath.XPathExpression pathExpression,
int count,
int offset,
PSSubscription subscription)
public void invoke(PeopleService.PeopleServiceRequest request)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||