org.tentackle.appworx
Interface SecurityResult


public interface SecurityResult

Represents a result from the SecurityManager for a privilege request.

Author:
harald

Method Summary
 String explain(String defaultMessage)
          Formats a string for an explanation of rule that fired.
 Security getSecurity()
          Gets the Security rule that fired for this result.
 boolean isAccepted()
          Denotes whether a privilege is accepted according to the Security rules.
 boolean isDefault()
          Denotes whether a privilege is neither accepted nor according to the Security rules, i.e.
 boolean isDenied()
          Denotes whether a privilege is denied according to the Security rules.
 

Method Detail

isAccepted

boolean isAccepted()
Denotes whether a privilege is accepted according to the Security rules.

Returns:
true if accepted

isDenied

boolean isDenied()
Denotes whether a privilege is denied according to the Security rules.

Returns:
true if denied

isDefault

boolean isDefault()
Denotes whether a privilege is neither accepted nor according to the Security rules, i.e. there are no rules that fired.

Returns:
true if default

explain

String explain(String defaultMessage)
Formats a string for an explanation of rule that fired. The default explanation will be returned unchanged if there is no message in the rule.

Parameters:
defaultMessage -
Returns:
the formatted message or defaultMessage unchanged

getSecurity

Security getSecurity()
Gets the Security rule that fired for this result.

Returns:
the security rule, null if no rule fired


Copyright © 2001-2008 Harald Krake, Bergstr. 48, 78098 Triberg, Germany, harald@krake.de