Interface IAuthorizationGuardPredicate<T,​D>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ch.systemsx.cisd.common.exceptions.Status evaluate​(T receiver, java.lang.String sessionToken, D argument)
      Evaluate the predicate for the receiver object, sessionToken, and predicate argument.
    • Method Detail

      • evaluate

        ch.systemsx.cisd.common.exceptions.Status evaluate​(T receiver,
                                                           java.lang.String sessionToken,
                                                           D argument)
                                                    throws ch.systemsx.cisd.common.exceptions.UserFailureException
        Evaluate the predicate for the receiver object, sessionToken, and predicate argument.
        Parameters:
        receiver - The object on which the guarded method was called
        sessionToken - A token identifying the user
        argument - The argument to the predicate
        Returns:
        Status.OK if the action is allowed, Status.createError() otherwise.
        Throws:
        ch.systemsx.cisd.common.exceptions.UserFailureException