/** * Generates a ArchiveDetailsList structure with one ArchiveDetails object. * The object instance identifier will be set as 0. The operation will use * the submitted related, source, network, provider and objId fields to * fill-in the object. The fields network and provider are not set. * * @param related Related field * @param source Source field * @param network Network field * @param provider Provider field * @param objId Object instance identifier field * @return The ArchiveDetailsList object */ public static ArchiveDetailsList generateArchiveDetailsList(final Long related, final ObjectId source, final Identifier network, final URI provider, final Long objId) { final ArchiveDetailsList archiveDetailsList = HelperArchive.generateArchiveDetailsList( related, source, network, provider ); archiveDetailsList.get(0).setInstId(objId); return archiveDetailsList; }
public Long update(Long statLinkId, StatisticCreationRequest statLink, SingleConnectionDetails connectionDetails) { // requirement: 3.3.2.5 Long newLinkDefId; if (comServices.getArchiveService() == null) { newLinkDefId = ++uniqueObjIdLinkDef; // This line as to go before any writing (because it's initialized as zero and that's the wildcard) } else { try { StatisticLinkDetailsList links = new StatisticLinkDetailsList(); links.add(statLink.getLinkDetails()); LongList linkDefIds = comServices.getArchiveService().store( //requirement: 3.6.15.2.i true, StatisticHelper.STATISTICLINKDEFINITION_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(statLinkId, null, connectionDetails), links, null); newLinkDefId = linkDefIds.get(0); } catch (MALException ex) { Logger.getLogger(StatisticManager.class.getName()).log(Level.SEVERE, null, ex); return null; } catch (MALInteractionException ex) { Logger.getLogger(StatisticManager.class.getName()).log(Level.SEVERE, null, ex); return null; } } // requirement: 3.7.2.13 this.statLinks.put(statLinkId, statLink); this.statLinkDefIdsByStatLinkIds.put(statLinkId, newLinkDefId); return newLinkDefId; }
public Long storeAndGenerateAValobjId(AggregationValue aVal, Long related, ObjectId source, URI uri) { if (super.getArchiveService() == null) { uniqueObjIdAVal++; return this.uniqueObjIdAVal; } else { AggregationValueList aValList = new AggregationValueList(); aValList.add(aVal); try { //requirement: 3.7.4.d, 3.7.6.b LongList objIds = super.getArchiveService().store( true, AggregationHelper.AGGREGATIONVALUEINSTANCE_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(related, source, uri), //requirement: 3.7.4.e aValList, null); if (objIds.size() == 1) { return objIds.get(0); } } catch (MALException ex) { Logger.getLogger(ParameterManager.class.getName()).log(Level.SEVERE, null, ex); } catch (MALInteractionException ex) { Logger.getLogger(ParameterManager.class.getName()).log(Level.SEVERE, null, ex); } return null; } }
objType, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(identityId, null, connectionDetails), //requirement 3.5.4.d defs, null);
ActionHelper.ACTIONINSTANCE_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(related, null, uri), aValList, null);
public Long update(Long identityId, ActionDefinitionDetails definition, ObjectId source, URI uri) { // requirement: 3.3.2.5 Long newDefId = null; if (super.getArchiveService() == null) { //only update locally //add to providers local list uniqueObjIdDef++; // This line as to go before any writing (because it's initialized as zero and that's the wildcard) newDefId = uniqueObjIdDef; } else { // update in the COM Archive try { ActionDefinitionDetailsList defs = new ActionDefinitionDetailsList(); defs.add(definition); //create a new ActionDefinition LongList defIds = super.getArchiveService().store(true, ActionHelper.ACTIONDEFINITION_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(identityId, source, uri), defs, null); newDefId = defIds.get(0); } catch (MALException ex) { Logger.getLogger(ParameterManager.class.getName()).log(Level.SEVERE, null, ex); } catch (MALInteractionException ex) { Logger.getLogger(ParameterManager.class.getName()).log(Level.SEVERE, null, ex); } } //update internal list this.updateDef(identityId, newDefId, definition); return newDefId; }
public Long update(final Long identityId, final AlertDefinitionDetails definition, final ObjectId source, final SingleConnectionDetails connectionDetails) { // requirement: 3.3.2.5 Long newDefId = null; if (super.getArchiveService() == null) { //only update locally //add to providers local list uniqueObjIdDef++; // This line as to go before any writing (because it's initialized as zero and that's the wildcard) newDefId = uniqueObjIdDef; } else { // update in the COM Archive try { AlertDefinitionDetailsList defs = new AlertDefinitionDetailsList(); defs.add(definition); //create a new AlertDefinition and add to the archive; requirement: 3.4.7.a LongList defIds = super.getArchiveService().store(true, AlertHelper.ALERTDEFINITION_OBJECT_TYPE, //requirement: 3.4.4.c ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(identityId, source, connectionDetails), //requirement: 3.4.4.d, 3.4.4.h defs, null); newDefId = defIds.get(0); } catch (MALException ex) { Logger.getLogger(ParameterManager.class.getName()).log(Level.SEVERE, null, ex); } catch (MALInteractionException ex) { Logger.getLogger(ParameterManager.class.getName()).log(Level.SEVERE, null, ex); } } this.updateDef(identityId, newDefId, definition); return newDefId; }
HelperArchive.generateArchiveDetailsList(related, source, connectionDetails), //requirement: 3.6.4. , n, o sValList, null);
AggregationHelper.AGGREGATIONDEFINITION_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(identityId, source, connectionDetails), //requirement: 3.7.4.d, h defs, null);
private Long updateCheckLinkObject(Long checkLinkId, CheckLinkDetails checkLinkDetails, SingleConnectionDetails connectionDetails) { final Long oldCheckLinkDefId = this.getCheckLinkDefId(checkLinkId); super.updateCheckLinkDetails(oldCheckLinkDefId, checkLinkDetails); Long newCheckLinkDefId = 0L; if (super.getArchiveService() == null) { // It should also update in the COM Archive newCheckLinkDefId = ++uniqueObjIdLinkDef; } try { //Store the new CheckLinkDefinition-Object CheckLinkDetailsList linkDetails = new CheckLinkDetailsList(); linkDetails.add(checkLinkDetails); LongList checkLinkDefIds = super.getArchiveService().store( //requirement: 3.5.7.d true, CheckHelper.CHECKLINKDEFINITION_OBJECT_TYPE, //requirement: 3.5.4.h ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(checkLinkId, null, connectionDetails), //requirement: 3.5.18.2.b, 3.5.4.i linkDetails, //requirement: 3.5.18.2.a null); newCheckLinkDefId = checkLinkDefIds.get(0); } catch (MALException ex) { Logger.getLogger(CheckManager.class.getName()).log(Level.SEVERE, null, ex); } catch (MALInteractionException ex) { Logger.getLogger(CheckManager.class.getName()).log(Level.SEVERE, null, ex); } return newCheckLinkDefId; }
ParameterHelper.PARAMETERDEFINITION_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(identityId, source, connectionDetails), defs, null);
HelperArchive.generateArchiveDetailsList(statLink.getStatFuncInstId(), source, connectionDetails), //requirement: 3.6.4.j, k null, null); HelperArchive.generateArchiveDetailsList(newLinkId, null, connectionDetails), //requirement: 3.6.4.j, k linkDetails, null);
ArchiveDetailsList details = HelperArchive.generateArchiveDetailsList(null, null, ConfigurationProviderSingleton.getNetwork(), new URI(""), configObjectsObjId); ConfigurationObjectDetailsList confObjsList = new ConfigurationObjectDetailsList();
HelperArchive.generateArchiveDetailsList(linkRef.getRelated(), HelperArchive.generateArchiveDetailsList(checkLinkId, null, connectionDetails), //requirement: 3.5.18.2.b, 3.5.4.i
HelperArchive.generateArchiveDetailsList(null, source, connectionDetails), //requirement 3.4.4.g HelperArchive.generateArchiveDetailsList(identityId, source, connectionDetails), //requirement: 3.4.4.e, 3.4.4.h defs, null);
ParameterHelper.PARAMETERIDENTITY_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(null, source, connectionDetails), names, null); ParameterHelper.PARAMETERDEFINITION_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(identityId, source, connectionDetails), defs, null);
ConfigurationHelper.CONFIGURATIONOBJECTS_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(null, null, ConfigurationProviderSingleton.getNetwork(), new URI("")), archObj1, ConfigurationHelper.SERVICECONFIGURATION_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(objIds1.get(0), null, ConfigurationProviderSingleton.getNetwork(), new URI(""), defaultObjId), serviceKeyList,
if (timestamp == null) //ParameterValue-Object will not be published, generate a new timestamp then archiveDetailsList = HelperArchive.generateArchiveDetailsList(related, source, connectionDetails); } else { //use the timestamp given archiveDetailsList = new ArchiveDetailsList();
AggregationHelper.AGGREGATIONIDENTITY_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(null, source, connectionDetails), names, null); AggregationHelper.AGGREGATIONDEFINITION_OBJECT_TYPE, ConfigurationProviderSingleton.getDomain(), HelperArchive.generateArchiveDetailsList(identityId, source, connectionDetails), defs, null);
final ArchiveDetailsList archiveDetails = HelperArchive.generateArchiveDetailsList(null, source, interaction); final Long objId = interaction.getMessageHeader().getTransactionId(); archiveDetails.get(0).setInstId(objId); // requirement: 3.5.2.4