* An authorization decision that indicates if the authorization request should be allowed or denied. *
*/ private String decision; /** ** The list of determining policies used to make the authorization decision. For example, if there are two matching * policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. * In the case of multiple matching permit policies then there would be multiple determining policies. In the case * that no policies match, and hence the response is DENY, there would be no determining policies. *
*/ private java.util.List* Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity * Attribute that does not exist in the slice. *
*/ private java.util.List* An authorization decision that indicates if the authorization request should be allowed or denied. *
* * @param decision * An authorization decision that indicates if the authorization request should be allowed or denied. * @see Decision */ public void setDecision(String decision) { this.decision = decision; } /** ** An authorization decision that indicates if the authorization request should be allowed or denied. *
* * @return An authorization decision that indicates if the authorization request should be allowed or denied. * @see Decision */ public String getDecision() { return this.decision; } /** ** An authorization decision that indicates if the authorization request should be allowed or denied. *
* * @param decision * An authorization decision that indicates if the authorization request should be allowed or denied. * @return Returns a reference to this object so that method calls can be chained together. * @see Decision */ public IsAuthorizedResult withDecision(String decision) { setDecision(decision); return this; } /** ** An authorization decision that indicates if the authorization request should be allowed or denied. *
* * @param decision * An authorization decision that indicates if the authorization request should be allowed or denied. * @return Returns a reference to this object so that method calls can be chained together. * @see Decision */ public IsAuthorizedResult withDecision(Decision decision) { this.decision = decision.toString(); return this; } /** ** The list of determining policies used to make the authorization decision. For example, if there are two matching * policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. * In the case of multiple matching permit policies then there would be multiple determining policies. In the case * that no policies match, and hence the response is DENY, there would be no determining policies. *
* * @return The list of determining policies used to make the authorization decision. For example, if there are two * matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the * determining policy. In the case of multiple matching permit policies then there would be multiple * determining policies. In the case that no policies match, and hence the response is DENY, there would be * no determining policies. */ public java.util.List* The list of determining policies used to make the authorization decision. For example, if there are two matching * policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. * In the case of multiple matching permit policies then there would be multiple determining policies. In the case * that no policies match, and hence the response is DENY, there would be no determining policies. *
* * @param determiningPolicies * The list of determining policies used to make the authorization decision. For example, if there are two * matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the * determining policy. In the case of multiple matching permit policies then there would be multiple * determining policies. In the case that no policies match, and hence the response is DENY, there would be * no determining policies. */ public void setDeterminingPolicies(java.util.Collection* The list of determining policies used to make the authorization decision. For example, if there are two matching * policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. * In the case of multiple matching permit policies then there would be multiple determining policies. In the case * that no policies match, and hence the response is DENY, there would be no determining policies. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDeterminingPolicies(java.util.Collection)} or {@link #withDeterminingPolicies(java.util.Collection)} * if you want to override the existing values. *
* * @param determiningPolicies * The list of determining policies used to make the authorization decision. For example, if there are two * matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the * determining policy. In the case of multiple matching permit policies then there would be multiple * determining policies. In the case that no policies match, and hence the response is DENY, there would be * no determining policies. * @return Returns a reference to this object so that method calls can be chained together. */ public IsAuthorizedResult withDeterminingPolicies(DeterminingPolicyItem... determiningPolicies) { if (this.determiningPolicies == null) { setDeterminingPolicies(new java.util.ArrayList* The list of determining policies used to make the authorization decision. For example, if there are two matching * policies, where one is a forbid and the other is a permit, then the forbid policy will be the determining policy. * In the case of multiple matching permit policies then there would be multiple determining policies. In the case * that no policies match, and hence the response is DENY, there would be no determining policies. *
* * @param determiningPolicies * The list of determining policies used to make the authorization decision. For example, if there are two * matching policies, where one is a forbid and the other is a permit, then the forbid policy will be the * determining policy. In the case of multiple matching permit policies then there would be multiple * determining policies. In the case that no policies match, and hence the response is DENY, there would be * no determining policies. * @return Returns a reference to this object so that method calls can be chained together. */ public IsAuthorizedResult withDeterminingPolicies(java.util.Collection* Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity * Attribute that does not exist in the slice. *
* * @return Errors that occurred while making an authorization decision, for example, a policy references an Entity * or entity Attribute that does not exist in the slice. */ public java.util.List* Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity * Attribute that does not exist in the slice. *
* * @param errors * Errors that occurred while making an authorization decision, for example, a policy references an Entity or * entity Attribute that does not exist in the slice. */ public void setErrors(java.util.Collection* Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity * Attribute that does not exist in the slice. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setErrors(java.util.Collection)} or {@link #withErrors(java.util.Collection)} if you want to override the * existing values. *
* * @param errors * Errors that occurred while making an authorization decision, for example, a policy references an Entity or * entity Attribute that does not exist in the slice. * @return Returns a reference to this object so that method calls can be chained together. */ public IsAuthorizedResult withErrors(EvaluationErrorItem... errors) { if (this.errors == null) { setErrors(new java.util.ArrayList* Errors that occurred while making an authorization decision, for example, a policy references an Entity or entity * Attribute that does not exist in the slice. *
* * @param errors * Errors that occurred while making an authorization decision, for example, a policy references an Entity or * entity Attribute that does not exist in the slice. * @return Returns a reference to this object so that method calls can be chained together. */ public IsAuthorizedResult withErrors(java.util.Collection