Interface IAuthorizer

  • All Superinterfaces:
    Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IAuthorizer
    extends Serializable
    Common interface for authorizers.
    Since:
    8.0.0
    Author:
    XIMA Media GmbH
    • Method Detail

      • isUserAuthorized

        boolean isUserAuthorized​(IUser user,
                                 IAuthorizationContext context)
        Checks whether the given user is authorized for the given authorization context.
        Parameters:
        user - to check authorization for.
        context - holds information about the context that may be needed for the authorization check such as the current client or project.
        Returns:
        true if the user is authorized and false otherwise.