use of org.ow2.proactive.scheduler.permissions.ConnectToResourceManagerPermission in project scheduling by ow2-proactive.
the class SchedulerFrontendState method checkLinkResourceManager.
synchronized void checkLinkResourceManager() throws NotConnectedException, PermissionException {
UniqueID id = checkAccess();
UserIdentificationImpl ident = identifications.get(id).getUser();
// renew session for this user
renewUserSession(id, ident);
try {
ident.checkPermission(new ConnectToResourceManagerPermission(), ident.getUsername() + " does not have permissions to change RM in the scheduler");
} catch (PermissionException ex) {
logger.info(ex.getMessage());
throw ex;
}
}
Aggregations