Interface DiscoEntryHandler
-
- All Known Implementing Classes:
GlobalDiscoEntryHandler,UserDiscoEntryHandler
public interface DiscoEntryHandlerThe classDiscoEntryHandleris an interface that is used to get and setDiscoEntriesfor a user.A default implementation will be provided for this discovery service. If you want to handle
DiscoEntrydifferently, implement this interface and set the implementing class toDiscoEntryHandler Plugins Classfield in Discovery Service.
-
-
Field Summary
Fields Modifier and Type Field Description static StringNEW_ENTRY_IDSKey used in methodmodifyDiscoEntries()return Map.static StringSTATUS_CODEKey used in methodmodifyDiscoEntries()return Map.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MapgetDiscoEntries(String userID, List reqServiceTypes)Finds all the discovery entries for a user.MapmodifyDiscoEntries(String userID, List removes, List inserts)Modifies discovery entries for a user.
-
-
-
Field Detail
-
STATUS_CODE
static final String STATUS_CODE
Key used in methodmodifyDiscoEntries()return Map. The value of this key is status code String such as "OK", "Failed", etc.- See Also:
- Constant Field Values
-
NEW_ENTRY_IDS
static final String NEW_ENTRY_IDS
Key used in methodmodifyDiscoEntries()return Map. The value of this key is a List ofentryIdsfor the entries that were added.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDiscoEntries
Map getDiscoEntries(String userID, List reqServiceTypes)
Finds all the discovery entries for a user.- 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.DiscoEntryElementobjects for this user. For eachDiscoEntryelement in the List, theentryIdattribute ofResourceOfferingshould be set.
-
modifyDiscoEntries
Map modifyDiscoEntries(String userID, List removes, List inserts)
Modifies discovery entries for a user.- Parameters:
userID- The user whose discovery entries will be set.removes- List ofcom.sun.identity.liberty.ws.disco.jaxb.RemoveEntryTypejaxbobjects.inserts- List ofcom.sun.identity.liberty.ws.disco.jaxb.InsertEntryTypejaxbobjects.- 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 ofentryIds for the entries that were added. The second key/value pair will only exist when status code is "OK", and there areInsertEntryelements in theModifyrequest. When successful, all modification (removes and inserts) should be done. No partial changes should be done.
-
-