use of org.bimserver.database.actions.RemoveUserFromProjectDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method removeUserFromProject.
@Override
public Boolean removeUserFromProject(Long uoid, Long poid) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.POSSIBLY_WRITE);
try {
BimDatabaseAction<Boolean> action = new RemoveUserFromProjectDatabaseAction(getBimServer(), session, getInternalAccessMethod(), uoid, poid, getAuthorization());
return session.executeAndCommitAction(action);
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations