public DefinitionsManager(COMServicesProvider comServices) { this.defs = new HashMap<Long, Element>(); if (comServices != null) { this.eventService = comServices.getEventService(); this.archiveService = comServices.getArchiveService(); this.activityTrackingService = comServices.getActivityTrackingService(); this.comServices = comServices; } else { this.eventService = null; this.archiveService = null; this.activityTrackingService = null; this.comServices = null; } }
protected MCManager(COMServicesProvider comServices) { this.identitiesToNamesMap = new HashMap<Long, Identifier>(); this.namesToPairsMap = new HashMap<Identifier, ObjectInstancePair>(); this.objIdToDefMap = new HashMap<Long, Element>(); if (comServices != null) { this.eventService = comServices.getEventService(); this.archiveService = comServices.getArchiveService(); this.activityTrackingService = comServices.getActivityTrackingService(); this.comServices = comServices; } else { this.eventService = null; this.archiveService = null; this.activityTrackingService = null; this.comServices = null; } try { groupService.init(archiveService); } catch (MALException ex) { Logger.getLogger(MCManager.class.getName()).log(Level.SEVERE, null, ex); } }
private void publishConfigurationStoredFailure(Long related) { // Publish event: Failure with the objId of the Configuration stored ObjectType objTypeEvent = ConfigurationHelper.CONFIGURATIONSTORED_OBJECT_TYPE; BooleanList bool = new BooleanList(); bool.add(false); // Failure ObjectId eventSource = null; // It was not stored... try { comServices.getEventService().publishEvent( providerURI, null, objTypeEvent, related, eventSource, bool ); } catch (IOException ex) { Logger.getLogger(ConfigurationEventAdapter.class.getName()).log(Level.SEVERE, null, ex); } }
Long eventId = this.getCOMServices().getEventService().generateAndStoreEvent( AppsLauncherHelper.STOPPING_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), null); final URI uri = this.getCOMServices().getEventService().getConnectionProvider().getConnectionDetails().getProviderURI(); this.getCOMServices().getEventService().publishEvent(uri, eventId, AppsLauncherHelper.STOPPING_OBJECT_TYPE, null, source, null); } catch (IOException ex) { Long eventId2 = this.getCOMServices().getEventService().generateAndStoreEvent( AppsLauncherHelper.STOPPED_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), this.getCOMServices().getEventService().publishEvent(uri, eventId2, AppsLauncherHelper.STOPPED_OBJECT_TYPE, null, source, null); } catch (IOException ex) {
Long eventId = this.getCOMServices().getEventService().generateAndStoreEvent( AppsLauncherHelper.STOPPING_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), null); final URI uri = this.getCOMServices().getEventService().getConnectionProvider().getConnectionDetails().getProviderURI(); this.getCOMServices().getEventService().publishEvent(uri, eventId, AppsLauncherHelper.STOPPING_OBJECT_TYPE, null, source, null); } catch (IOException ex) { Long eventId2 = this.getCOMServices().getEventService().generateAndStoreEvent( AppsLauncherHelper.STOPPED_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), this.getCOMServices().getEventService().publishEvent(uri, eventId2, AppsLauncherHelper.STOPPED_OBJECT_TYPE, null, source, null); } catch (IOException ex) {
private void publishConfigurationStoredSuccess(Long objId, Long related) { // Publish event: Success with the objId of the Configuration stored ObjectType objTypeEvent = ConfigurationHelper.CONFIGURATIONSTORED_OBJECT_TYPE; BooleanList bool = new BooleanList(); bool.add(true); // Success ObjectId eventSource = new ObjectId(); eventSource.setType(ConfigurationHelper.CONFIGURATIONOBJECTS_OBJECT_TYPE); eventSource.setKey(new ObjectKey(providerDomain, objId)); try { comServices.getEventService().publishEvent( providerURI, objId, objTypeEvent, related, eventSource, bool ); } catch (IOException ex) { Logger.getLogger(ConfigurationEventAdapter.class.getName()).log(Level.SEVERE, null, ex); } }
Long eventId = this.getCOMServices().getEventService().generateAndStoreEvent( AppsLauncherHelper.STOPPING_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), null); final URI uri = this.getCOMServices().getEventService().getConnectionProvider().getIPCConnectionDetails().getProviderURI(); this.getCOMServices().getEventService().publishEvent(uri, eventId, AppsLauncherHelper.STOPPING_OBJECT_TYPE, null, source, null); } catch (IOException ex) { Long eventId2 = this.getCOMServices().getEventService().generateAndStoreEvent( AppsLauncherHelper.STOPPED_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), this.getCOMServices().getEventService().publishEvent(uri, eventId2, AppsLauncherHelper.STOPPED_OBJECT_TYPE, null, source, null); } catch (IOException ex) {
final LongList objIds = super.getCOMServices().getEventService().generateAndStoreEvents(objType, ConfigurationProviderSingleton.getDomain(), appInstIds, sourceList, interaction.getInteraction()); super.getCOMServices().getEventService().publishEvents(uri, objIds, objType, appInstIds, sourceList, appDirectoryNames); } catch (IOException ex) { Logger.getLogger(AppsLauncherManager.class.getName()).log(Level.SEVERE, null, ex);