/** * Initialize the Authorizations for a new proposal. The initiator/creator is assigned the * Aggregator role. * * @param document the proposal development document */ protected void initializeAuthorization(ProposalDevelopmentDocument document) { String userId = GlobalVariables.getUserSession().getPrincipalId(); KraAuthorizationService kraAuthService = KraServiceLocator.getService(KraAuthorizationService.class); kraAuthService.addRole(userId, RoleConstants.AGGREGATOR, document); }