use of org.bimserver.database.actions.AddObjectIDMDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method addObjectIDM.
@Override
public Long addObjectIDM(SObjectIDMPluginConfiguration objectIDM) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
return session.executeAndCommitAction(new AddObjectIDMDatabaseAction(session, getInternalAccessMethod(), getAuthorization(), getBimServer().getSConverter().convertFromSObject(objectIDM, session)));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations