Search in sources :

Example 16 with GlobalNotificationMessage

use of net.geoprism.registry.ws.GlobalNotificationMessage in project geoprism-registry by terraframe.

the class PublishMasterListJob method execute.

@Override
public void execute(ExecutionContext executionContext) throws Throwable {
    NotificationFacade.queue(new GlobalNotificationMessage(MessageType.PUBLISH_JOB_CHANGE, null));
    this.getMasterList().publishFrequencyVersions();
}
Also used : GlobalNotificationMessage(net.geoprism.registry.ws.GlobalNotificationMessage)

Example 17 with GlobalNotificationMessage

use of net.geoprism.registry.ws.GlobalNotificationMessage in project geoprism-registry by terraframe.

the class PublishMasterListJob method afterJobExecute.

@Override
public void afterJobExecute(JobHistory history) {
    super.afterJobExecute(history);
    NotificationFacade.queue(new GlobalNotificationMessage(MessageType.PUBLISH_JOB_CHANGE, null));
}
Also used : GlobalNotificationMessage(net.geoprism.registry.ws.GlobalNotificationMessage)

Example 18 with GlobalNotificationMessage

use of net.geoprism.registry.ws.GlobalNotificationMessage in project geoprism-registry by terraframe.

the class PublishMasterListVersionJob method afterJobExecute.

@Override
public void afterJobExecute(JobHistory history) {
    super.afterJobExecute(history);
    NotificationFacade.queue(new GlobalNotificationMessage(MessageType.PUBLISH_JOB_CHANGE, null));
}
Also used : GlobalNotificationMessage(net.geoprism.registry.ws.GlobalNotificationMessage)

Example 19 with GlobalNotificationMessage

use of net.geoprism.registry.ws.GlobalNotificationMessage in project geoprism-registry by terraframe.

the class PublishShapefileJob method afterJobExecute.

@Override
public void afterJobExecute(JobHistory history) {
    super.afterJobExecute(history);
    NotificationFacade.queue(new GlobalNotificationMessage(MessageType.PUBLISH_JOB_CHANGE, null));
}
Also used : GlobalNotificationMessage(net.geoprism.registry.ws.GlobalNotificationMessage)

Example 20 with GlobalNotificationMessage

use of net.geoprism.registry.ws.GlobalNotificationMessage in project geoprism-registry by terraframe.

the class DataExportJob method setStage.

private void setStage(ExportHistory history, ExportStage stage) {
    history.appLock();
    history.clearStage();
    history.addStage(stage);
    history.apply();
    NotificationFacade.queue(new GlobalNotificationMessage(MessageType.DATA_EXPORT_JOB_CHANGE, null));
}
Also used : GlobalNotificationMessage(net.geoprism.registry.ws.GlobalNotificationMessage)

Aggregations

GlobalNotificationMessage (net.geoprism.registry.ws.GlobalNotificationMessage)25 Date (java.util.Date)5 ProgrammingErrorException (com.runwaysdk.dataaccess.ProgrammingErrorException)4 Request (com.runwaysdk.session.Request)4 ServerGeoObjectType (net.geoprism.registry.model.ServerGeoObjectType)4 JsonObject (com.google.gson.JsonObject)3 Session (com.runwaysdk.session.Session)3 HttpError (net.geoprism.registry.etl.export.HttpError)3 FhirExternalSystem (net.geoprism.registry.graph.FhirExternalSystem)3 Transaction (com.runwaysdk.dataaccess.transaction.Transaction)2 ListTypeVersion (net.geoprism.registry.ListTypeVersion)2 OAuthClientRequest (org.apache.oltu.oauth2.client.request.OAuthClientRequest)2 DataFormatException (ca.uhn.fhir.parser.DataFormatException)1 GsonBuilder (com.google.gson.GsonBuilder)1 JsonArray (com.google.gson.JsonArray)1 Business (com.runwaysdk.business.Business)1 BusinessQuery (com.runwaysdk.business.BusinessQuery)1 QueryFactory (com.runwaysdk.query.QueryFactory)1 JobHistory (com.runwaysdk.system.scheduler.JobHistory)1 JobHistoryQuery (com.runwaysdk.system.scheduler.JobHistoryQuery)1