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