@Override public boolean isAllowed(final String key, final Map<String, Serializable> context) throws SExecutionException { Long processInstanceId = getLongParameter(context, URLAdapterConstants.ID_QUERY_PARAM); if (processInstanceId == null) { throw new IllegalArgumentException("Parameter 'id' is mandatory to execute Page Authorization rule 'isManagerOfUserInvolvedInProcessInstance'"); } try { long userId = getLoggedUserId(sessionAccessor, sessionService); return processInvolvementDelegate.isManagerOfUserInvolvedInProcessInstance(userId, processInstanceId); } catch (BonitaException e) { throw new SExecutionException(e); } }
@Override public boolean isAllowed(final String key, final Map<String, Serializable> context) throws SExecutionException { Long processInstanceId = getLongParameter(context, URLAdapterConstants.ID_QUERY_PARAM); if (processInstanceId == null) { throw new IllegalArgumentException("Parameter 'id' is mandatory to execute Page Authorization rule 'isManagerOfUserInvolvedInProcessInstance'"); } try { long userId = getLoggedUserId(sessionAccessor, sessionService); return processInvolvementDelegate.isManagerOfUserInvolvedInProcessInstance(userId, processInstanceId); } catch (BonitaException e) { throw new SExecutionException(e); } }