Authorizor (interface)

Represents a mechanism to evaluate whether the current user (as represented by Authentication can either view or invoke the domain object feature (as represented by Identifier .

API

Authorizor.java
interface Authorizor {
  boolean isVisible(Authentication authentication, Identifier identifier)     (1)
  boolean isUsable(Authentication authentication, Identifier identifier)     (2)
}
1 isVisible(Authentication, Identifier)

Whether the current Authentication can view the domain object feature (represented by Identifier ).

2 isUsable(Authentication, Identifier)

Whether the current Authentication can invoke the domain object feature (represented by Identifier ).

Members

isVisible(Authentication, Identifier)

Whether the current Authentication can view the domain object feature (represented by Identifier ).

isUsable(Authentication, Identifier)

Whether the current Authentication can invoke the domain object feature (represented by Identifier ).

If this methods returns false then the feature will be greyed out/disabled.