use of org.bimserver.database.actions.AddExtendedDataToProjectDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method addExtendedDataToProject.
@Override
public void addExtendedDataToProject(Long poid, SExtendedData extendedData) throws ServerException, UserException {
requireAuthenticationAndRunningServer();
DatabaseSession session = getBimServer().getDatabase().createSession(OperationType.POSSIBLY_WRITE);
try {
ExtendedData convert = getBimServer().getSConverter().convertFromSObject(extendedData, session);
session.executeAndCommitAction(new AddExtendedDataToProjectDatabaseAction(getBimServer(), session, getInternalAccessMethod(), poid, convert, getAuthorization()));
} catch (Exception e) {
handleException(e);
} finally {
session.close();
}
}
Aggregations