public class UserDiscoEntryHandler extends Object implements DiscoEntryHandler
NEW_ENTRY_IDS, STATUS_CODE
Constructor and Description |
---|
UserDiscoEntryHandler()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
Map |
getDiscoEntries(String userID,
List reqServiceTypes)
Finds discovery entries for a user under user entry.
|
Map |
modifyDiscoEntries(String userID,
List removes,
List inserts)
Modifies discovery entries for a user.
|
public Map getDiscoEntries(String userID, List reqServiceTypes)
getDiscoEntries
in interface DiscoEntryHandler
userID
- The user whose discovery entries will be returned.reqServiceTypes
- List of
com.sun.identity.liberty.ws.disco.jaxb.RequestedServiceType
objects from discovery query.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.public Map modifyDiscoEntries(String userID, List removes, List inserts)
modifyDiscoEntries
in interface DiscoEntryHandler
userID
- The user whose discovery entries will be set.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.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.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.