Class GlobalDiscoEntryHandler
- java.lang.Object
-
- com.sun.identity.liberty.ws.disco.plugins.GlobalDiscoEntryHandler
-
- All Implemented Interfaces:
DiscoEntryHandler
public class GlobalDiscoEntryHandler 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 GlobalDiscoEntryHandler()
Default Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
getDiscoEntries(String userID, List reqServiceTypes)
Returns DiscoEntries for a user under userEntry.Map
modifyDiscoEntries(String userID, List removes, List inserts)
Modify DiscoEntries for the default organization.
-
-
-
Method Detail
-
getDiscoEntries
public Map getDiscoEntries(String userID, List reqServiceTypes)
Returns DiscoEntries for a user under userEntry.- Specified by:
getDiscoEntries
in interfaceDiscoEntryHandler
- Parameters:
userID
- The user whose DiscoEntries will be returned.reqServiceTypes
- List of com.sun.identity.liberty.ws.disco.jaxb.RequestedServiceType objects from discovery Query.- Returns:
- Map of entryId and com.sun.identity.liberty.ws.disco.plugins.jaxb.DiscoEntryElement for this user. For each DiscoEntry element in the List, the entryId attribute of ResourceOffering need to be set.
-
modifyDiscoEntries
public Map modifyDiscoEntries(String userID, List removes, List inserts)
Modify DiscoEntries for the default organization.- Specified by:
modifyDiscoEntries
in interfaceDiscoEntryHandler
- Parameters:
userID
- This is not used in this implementation.removes
- List of com.sun.identity.liberty.ws.disco.jaxb.RemoveEntryType jaxb objects.inserts
- List of com.sun.identity.liberty.ws.disco.jaxb.InsertEntryType jaxb objects.- Returns:
- Map which contains the following key value pairs:
Key:
DiscoEntryHandler.STATUS_CODE
Value: status code String such as "OK", "Failed", etc. Key:DiscoEntryHandler.NEW_ENTRY_IDS
Value: List of entryIds for the entries that were added. The second key/value pair will only exist when status code is "OK", and there are InsertEntry elements in the Modify request. When successful, all modification (removes and inserts) should be done. No partial changes should be done.
-
-