Class UserDiscoEntryHandler
- java.lang.Object
-
- com.sun.identity.liberty.ws.disco.plugins.UserDiscoEntryHandler
-
- All Implemented Interfaces:
DiscoEntryHandler
public class UserDiscoEntryHandler extends Object implements DiscoEntryHandler
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.liberty.ws.disco.plugins.DiscoEntryHandler
NEW_ENTRY_IDS, STATUS_CODE
-
-
Constructor Summary
Constructors Constructor Description UserDiscoEntryHandler()Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapgetDiscoEntries(String userID, List reqServiceTypes)Finds discovery entries for a user under user entry.MapmodifyDiscoEntries(String userID, List removes, List inserts)Modifies discovery entries for a user.
-
-
-
Method Detail
-
getDiscoEntries
public Map getDiscoEntries(String userID, List reqServiceTypes)
Finds discovery entries for a user under user entry.- Specified by:
getDiscoEntriesin interfaceDiscoEntryHandler- Parameters:
userID- The user whose discovery entries will be returned.reqServiceTypes- List ofcom.sun.identity.liberty.ws.disco.jaxb.RequestedServiceTypeobjects from discovery query.- Returns:
- Map of
entryIdandcom.sun.identity.liberty.ws.disco.plugins.jaxb.DiscoEntryElementfor this user. For eachDiscoEntryelement in the List, theentryIdattribute of ResourceOffering need to be set.
-
modifyDiscoEntries
public Map modifyDiscoEntries(String userID, List removes, List inserts)
Modifies discovery entries for a user.- Specified by:
modifyDiscoEntriesin interfaceDiscoEntryHandler- Parameters:
userID- The user whose discovery entries will be set.removes- List ofcom.sun.identity.liberty.ws.disco.jaxb.RemoveEntryTypejaxb objects.inserts- List ofcom.sun.identity.liberty.ws.disco.jaxb.InsertEntryTypejaxb objects.- Returns:
- Map which contains the following key value pairs:
Key:
DiscoEntryHandler.STATUS_CODEValue: status code String such as "OK", "Failed", etc. Key:DiscoEntryHandler.NEW_ENTRY_IDSValue: List ofentryIdsfor the entries that were added. The second key/value pair will only exist when status code is "OK", and there areInsertEntryelements in the modify request. When successful, all modification (removes and inserts) should be done. No partial changes should be done.
-
-