Class GetPropertyActionHandler
- java.lang.Object
-
- org.forgerock.openam.core.rest.session.action.GetPropertyActionHandler
-
- All Implemented Interfaces:
ActionHandler
public class GetPropertyActionHandler extends Object implements ActionHandler
Handles 'getProperty' actions. If a field is requested, return only that field. If no field is specified, return the key/value of all whitelisted fields. REQUEST: { 'properties' : [ 'property1', 'property2'] } RESPONSE: { 'property1' : 'value1', 'property2' : 'value2' }
-
-
Constructor Summary
Constructors Constructor Description GetPropertyActionHandler(SessionPropertyWhitelist sessionPropertyWhitelist, SessionResourceUtil sessionResourceUtil)Constructs a GetPropertyActionHandler instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,org.forgerock.json.resource.ResourceException>handle(String tokenId, org.forgerock.services.context.Context context, org.forgerock.json.resource.ActionRequest request)
-
-
-
Constructor Detail
-
GetPropertyActionHandler
public GetPropertyActionHandler(SessionPropertyWhitelist sessionPropertyWhitelist, SessionResourceUtil sessionResourceUtil)
Constructs a GetPropertyActionHandler instance- Parameters:
sessionPropertyWhitelist- An instance of the SessionPropertyWhitelist.sessionResourceUtil- An instance of the session resource manager.
-
-
Method Detail
-
handle
public org.forgerock.util.promise.Promise<org.forgerock.json.resource.ActionResponse,org.forgerock.json.resource.ResourceException> handle(String tokenId, org.forgerock.services.context.Context context, org.forgerock.json.resource.ActionRequest request)
- Specified by:
handlein interfaceActionHandler
-
-