Interface BasePermission<DomainObjectType>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getPermissionProvided()
      Get the implementation-specific permission provided.
      boolean isAllowed​(org.springframework.security.core.Authentication authentication, java.lang.Object targetDomainObject)
      Is the authenticated user allowed to perform some action on the target domain object?
    • Method Detail

      • getPermissionProvided

        java.lang.String getPermissionProvided()
        Get the implementation-specific permission provided.
        Returns:
        the permission provided by the permission class.
      • isAllowed

        boolean isAllowed​(org.springframework.security.core.Authentication authentication,
                          java.lang.Object targetDomainObject)
        Is the authenticated user allowed to perform some action on the target domain object?
        Parameters:
        authentication - the authenticated user.
        targetDomainObject - the object the user is requesting to perform an action on.
        Returns:
        true if the action is allowed, false otherwise.