Class AbstractRoleAuthorizationStrategy

    • Method Detail

      • hasAny

        protected final boolean hasAny​(Roles roles)
        Gets whether any of the given roles applies to the authorizer.
        Parameters:
        roles - the roles
        Returns:
        whether any of the given roles applies to the authorizer
      • isEmpty

        protected final boolean isEmpty​(Roles roles)
        Conducts a check to see if the roles object is empty. Since the roles object does not contain any null values and will always hold an empty string, an extra test is required beyond roles.isEmpty().
        Parameters:
        roles - the Roles object to test
        Returns:
        true if the object holds no real roles