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