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