Package org.forgerock.api.annotations
Annotation Interface PropertyPolicies
An annotation to declare the policies for property access in the CREST API Descriptor schema elements.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Whether breaking the declared policy will result in an error from the service.The read policy for the property.boolean
true
when a field is available, but must be explicitly requested, orfalse
(default) when always returned.The write policy for the property.
-
Element Details
-
write
WritePolicy writeThe write policy for the property. Defaults toWRITABLE
.- Default:
- WRITABLE
-
read
ReadPolicy readThe read policy for the property. Defaults toUSER
.- Default:
- USER
-
errorOnWritePolicyFailure
boolean errorOnWritePolicyFailureWhether breaking the declared policy will result in an error from the service. Only required whenwrite()
is not set toWRITABLE
. Defaults tofalse
.- Default:
- false
-
returnOnDemand
boolean returnOnDemandtrue
when a field is available, but must be explicitly requested, orfalse
(default) when always returned.- Default:
- false
-