Examples of SbiAlarmContact


Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

      return hibDs;
    }    else if (hibObj instanceof SbiAlarmContact) {
      String label = (String) unique;
      hql = "from SbiAlarmContact ds where ds.name = '" + label + "'";
      hqlQuery = sessionCurrDB.createQuery(hql);
      SbiAlarmContact hibDs = null;
      try{
        hibDs=(SbiAlarmContact) hqlQuery.uniqueResult();
      }
      catch (Exception e) {
        throw new EMFUserError(EMFErrorSeverity.ERROR, "9008", "component_impexp_messages");
View Full Code Here

Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

      Set<SbiAlarmContact> listSbiContacts = new HashSet<SbiAlarmContact>();
      if(alarm.getSbiAlarmContacts()!=null){
        for (Iterator iterator = alarm.getSbiAlarmContacts().iterator(); iterator.hasNext();) {
          AlarmContact alarmContact = (AlarmContact) iterator.next();
          insertAlarmContact(alarmContact, session);
          SbiAlarmContact sbiAlCon=(SbiAlarmContact)session.load(SbiAlarmContact.class, alarmContact.getId());     
          listSbiContacts.add(sbiAlCon);
        }
      }
      hibAlarm.setSbiAlarmContacts(listSbiContacts)
View Full Code Here

Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

      if(!hibList.isEmpty()) {
        return;
      }

      // main attributes     
      SbiAlarmContact hibCon = new SbiAlarmContact();

      hibCon.setId(con.getId());
      hibCon.setEmail(con.getEmail());
      hibCon.setMobile(con.getMobile());
      hibCon.setName(con.getName());
      hibCon.setResources(con.getResources());

      Transaction tx = session.beginTransaction();     
      session.save(hibCon);
      tx.commit();
    } catch (Exception e) {
View Full Code Here

Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

    if( !(o instanceof SbiAlarmContact) ) {
      throw new SerializationException("AlarmContactJSONSerializer is unable to serialize object of type: " + o.getClass().getName());
    }
   
    try {
      SbiAlarmContact sbiAlarmContact = (SbiAlarmContact)o;
      result = new JSONObject();
      result.put(ID, sbiAlarmContact.getId());
      result.put(NAME, sbiAlarmContact.getName());
      result.put(EMAIL, sbiAlarmContact.getEmail());     
      result.put(RESOURCES, sbiAlarmContact.getResources());
      result.put(MOBILE, sbiAlarmContact.getMobile());

    } catch (Throwable t) {
      throw new SerializationException("An error occurred while serializing object: " + o, t);
    } finally {
     
View Full Code Here

Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

    Set<SbiAlarmContact> setContactsToImport=existingAlarm.getSbiAlarmContacts();

    // I want a Array to fill with Id already present just to check not to insert again an already present association
    Vector<Integer> idsAlready=new Vector<Integer>();
    for (Iterator iterator = setContactsToImport.iterator(); iterator.hasNext();) {
      SbiAlarmContact sbiAlarmContact = (SbiAlarmContact) iterator.next();
      Integer id=sbiAlarmContact.getId();
      idsAlready.add(id);
    }


    for (Iterator iterator = setContactsExported.iterator(); iterator.hasNext();) {
      SbiAlarmContact sbiAlarmContact = (SbiAlarmContact) iterator.next();
      Integer oldId=sbiAlarmContact.getId();
      Map<Integer, Integer> alarmContactAssociation=metaAss.getAlarmContactIDAssociation();
      Integer newId=alarmContactAssociation.get(oldId);
      //load
      if(newId==null){
        newId=oldId;
      }

      // check id not already present
      if(!idsAlready.contains(newId)){
        SbiAlarmContact newSbiAlarmContact = (SbiAlarmContact) sessionCurrDB.load(SbiAlarmContact.class, newId);
        setContactsToImport.add(newSbiAlarmContact);
        idsAlready.add(newId);
      }

View Full Code Here

Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

   *
   * @return the new hibernate parameter object
   */
  public static SbiAlarmContact makeNewSbiAlarmContacts(SbiAlarmContact alarmContact,Session sessionCurrDB, MetadataAssociations metaAss, ImporterMetadata importer){
    logger.debug("IN");
    SbiAlarmContact newAlarmContact = new SbiAlarmContact();
    try{
      newAlarmContact.setName(alarmContact.getName());
      newAlarmContact.setEmail(alarmContact.getEmail());
      newAlarmContact.setMobile(alarmContact.getMobile());
      newAlarmContact.setResources(alarmContact.getResources());


      // associations
      entitiesAssociationsSbiAlarmContacts(alarmContact, newAlarmContact, sessionCurrDB, metaAss, importer);

View Full Code Here

Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

   * @throws EMFUserError the EMF user error
   */
  public static SbiAlarmContact modifyExistingSbiAlarmContacts(SbiAlarmContact exportedAlarmContact, Session sessionCurrDB,
      Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer) throws EMFUserError {
    logger.debug("IN");
    SbiAlarmContact existingAlarmContact = null;
    try {
      // update Alarm
      existingAlarmContact = (SbiAlarmContact) sessionCurrDB.load(SbiAlarmContact.class, existingId);
      existingAlarmContact.setName(exportedAlarmContact.getName());
      existingAlarmContact.setEmail(exportedAlarmContact.getEmail());
      existingAlarmContact.setMobile(exportedAlarmContact.getMobile());
      existingAlarmContact.setResources(exportedAlarmContact.getResources());

      // associations
      entitiesAssociationsSbiAlarmContacts(exportedAlarmContact, existingAlarmContact, sessionCurrDB, metaAss, importer);
    }

View Full Code Here

Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

    // Alarm Contact

    List exportedAlarmContacts = importer.getAllExportedSbiObjects(sessionExpDB, "SbiAlarmContact", null);
    Iterator iterSbiAlarmContacts = exportedAlarmContacts.iterator();
    while (iterSbiAlarmContacts.hasNext()) {
      SbiAlarmContact dsExp = (SbiAlarmContact) iterSbiAlarmContacts.next();
      String name = dsExp.getName();
      Object existObj = importer.checkExistence(name, sessionCurrDB, new SbiAlarmContact());
      if (existObj != null) {
        SbiAlarmContact dsCurr = (SbiAlarmContact) existObj;
        metaAss.insertCoupleAlarmContact(dsExp.getId(), dsCurr.getId());
        metaLog.log("Found an existing alarm contact " + dsCurr.getName() + " with "
            + "the same name of one exported alarm contact");
      }
    }

    // TODO cambiare con i nuovi UDP VAlues
/*
    List exportedKpiModelAttrs = importer.getAllExportedSbiObjects(sessionExpDB, "SbiKpiModelAttr", null);
    Iterator iterSbiKpiModelAttr = exportedKpiModelAttrs.iterator();
    while (iterSbiKpiModelAttr.hasNext()) {
      SbiKpiModelAttr attrExp = (SbiKpiModelAttr) iterSbiKpiModelAttr.next();
      SbiDomains sbiDomain  = attrExp.getSbiDomains();
      String kpiModelAttrCd  = attrExp.getKpiModelAttrCd();
      // get new sbi Domain ID
      Integer newIdDomain = (Integer)metaAss.getDomainIDAssociation().get(sbiDomain.getValueId());
      Object existObj = importer.checkExistenceKpiModelAttr(newIdDomain, kpiModelAttrCd, sessionCurrDB, new SbiKpiModelAttr());
      if (existObj != null) {
        SbiKpiModelAttr attrCurr = (SbiKpiModelAttr) existObj;
        metaAss.insertCoupleSbiKpiModelAttrID(attrExp.getKpiModelAttrId(), attrCurr.getKpiModelAttrId());
        metaLog.log("Found an existing model attr with code " + attrCurr.getKpiModelAttrCd() + " " +
            " and referring to domain "+ sbiDomain.getDomainCd()+" - "+ sbiDomain.getValueCd() +" with "
            + "the same name of one exported kpi model attr");
      }
    }


    // Model Attr Val

    List exportedKpiModelAttrVals = importer.getAllExportedSbiObjects(sessionExpDB, "SbiKpiModelAttrVal", null);
    Iterator iterSbiKpiModelAttrVal = exportedKpiModelAttrVals.iterator();
    while (iterSbiKpiModelAttrVal.hasNext()) {
      SbiKpiModelAttrVal attrValExp = (SbiKpiModelAttrVal) iterSbiKpiModelAttrVal.next();
      Integer kpiModelId = attrValExp.getSbiKpiModel().getKpiModelId();
      Integer kpiModelAttrId = attrValExp.getSbiKpiModelAttr().getKpiModelAttrId();

      // get the new Ids
      Integer newModelId = (Integer)metaAss.getModelIDAssociation().get(kpiModelId);
      Integer newModelAttrId = (Integer)metaAss.getSbiKpiModelAttrIDAssociation().get(kpiModelAttrId);

      // get new sbi Domain ID
      Object existObj = importer.checkExistenceKpiModelAttrVal(newModelAttrId, newModelId, sessionCurrDB, new SbiKpiModelAttrVal());
      if (existObj != null) {
        SbiKpiModelAttrVal attrValCurr = (SbiKpiModelAttrVal) existObj;
        metaAss.insertCoupleSbiKpiModelAttrValID(attrValExp.getKpiModelAttrValId(), attrValCurr.getKpiModelAttrValId());
        metaLog.log("Found an existing model attribute value referring to model" + attrValCurr.getSbiKpiModel().getKpiModelNm()+ " " +
            " and referring to attribute "+ attrValCurr.getSbiKpiModelAttr().getKpiModelAttrCd()+" with "
            + "the same name of one exported kpi model attr");
      }
    }
*/

    logger.debug("check existence of Object MetaContent, only for Objects!");
    List exportedMetaContent = importer.getAllExportedSbiObjects(sessionExpDB, "SbiObjMetacontents", null);
    Iterator iterSbiModMetaContent = exportedMetaContent.iterator();
    while (iterSbiModMetaContent.hasNext()) {
      SbiObjMetacontents contExp = (SbiObjMetacontents) iterSbiModMetaContent.next();
      String objectLabel = contExp.getSbiObjects().getLabel();
      // metacontent referring to subobjects not referred here because of a previous structure
      if( contExp.getSbiSubObjects() != null ){
        continue;
        //        SbiSubObjects sub = contExp.getSbiSubObjects();
        //        subObjectName = sub.getName();
      }
      Integer objMetaId = contExp.getObjmetaId();

      // I want metadata label
      String metaLabel = exportedMetadatasMap.get(objMetaId.toString());

      Object existObj = importer.checkExistenceObjMetacontent(objectLabel,metaLabel, sessionCurrDB, new SbiObjMetacontents());
      if (existObj != null) {
        SbiObjMetacontents contCurr = (SbiObjMetacontents) existObj;
        //metaAss.insertCoupleObjMeIDAssociation(metaExp.getKpiModelResourcesId(), metaCurr.getKpiModelResourcesId());       
        metaAss.insertCoupleObjMetacontentsIDAssociation(contExp.getObjMetacontentId(), contCurr.getObjMetacontentId());
        metaLog.log("Found an existing metacontents with id " + contCurr.getObjMetacontentId()+ "" +
            "referring to the same object label "+contCurr.getSbiObjects().getLabel()+", " +
            "referring to meta with id "+ contCurr.getObjmetaId()
        );
      }
    }
    // Kpi Relations
    List exportedKpiRelList = importer.getAllExportedSbiObjects(sessionExpDB, "SbiKpiRel", null);
    Iterator iterKpiRel = exportedKpiRelList.iterator();
    while (iterKpiRel.hasNext()) {
      SbiKpiRel kpirel = (SbiKpiRel) iterKpiRel.next();
      // check if the association already exist
      Map uniqueMap = new HashMap();
      Map kpiAss = metaAss.getKpiIDAssociation();
      if(kpirel.getSbiKpiByKpiFatherId() != null){
        Integer newFatherId = (Integer)kpiAss.get(kpirel.getSbiKpiByKpiFatherId().getKpiId());
        uniqueMap.put("fatherId", newFatherId);
        if(kpirel.getSbiKpiByKpiChildId()!= null){
          Integer newChildId = (Integer)kpiAss.get(kpirel.getSbiKpiByKpiChildId().getKpiId());
          uniqueMap.put("childId", newChildId);
          uniqueMap.put("parameter", kpirel.getParameter());
        }
      }
      Object existObj = importer.checkExistence(uniqueMap, sessionCurrDB, new SbiKpiRel());
      if (existObj != null) {
        SbiKpiRel dsCurr = (SbiKpiRel) existObj;
        metaAss.insertCoupleKpiRelAssociation(kpirel.getKpiRelId(), dsCurr.getKpiRelId());
        metaLog.log("Found an existing kpi Relation");
      }
    }
    // Udp

    List exportedUdpList = importer.getAllExportedSbiObjects(sessionExpDB, "SbiUdp", null);
    Iterator iterUdp = exportedUdpList.iterator();
    while (iterUdp.hasNext()) {
      SbiUdp udp = (SbiUdp) iterUdp.next();

      //logical unique key but table just looks for label
/*      Map uniqueMap = new HashMap();
      Map doaminAss = metaAss.getDomainIDAssociation();
      Integer newTypeId = (Integer)doaminAss.get(udp.getTypeId());
      uniqueMap.put("typeId", newTypeId);
      Integer newFamilyId = (Integer)doaminAss.get(udp.getFamilyId());
      uniqueMap.put("familyId", newFamilyId);
      uniqueMap.put("label", udp.getLabel());
      Object existObj = importer.checkExistence(uniqueMap, sessionCurrDB, new SbiUdp());*/
      String label = udp.getLabel();
      Object existObj = importer.checkExistence(label, sessionCurrDB, new SbiUdp());
      if (existObj != null) {
        SbiUdp dsCurr = (SbiUdp) existObj;
        metaAss.insertCoupleUdpAssociation(udp.getUdpId(), dsCurr.getUdpId());
        metaLog.log("Exported association between type id " + udp.getTypeId() + " "
            + " and family id " + udp.getFamilyId() + " with label "
            + udp.getLabel() + " not inserted"
            + " because already existing into the current database");
      }
    }
    // Udp Value

    List exportedUdpValList = importer.getAllExportedSbiObjects(sessionExpDB, "SbiUdpValue", null);
    Iterator iterUdpVal = exportedUdpValList.iterator();
    while (iterUdpVal.hasNext()) {
      SbiUdpValue udpVal = (SbiUdpValue) iterUdpVal.next();
      // check if the association already exist
      Map uniqueMap = new HashMap();
      Map kpiAss = metaAss.getKpiIDAssociation();
      Map modelAss = metaAss.getModelIDAssociation();
      Map udpAss = metaAss.getUdpAssociation();
     
      if(udpVal.getSbiUdp() != null){
        Integer newUdpId = (Integer)udpAss.get(udpVal.getSbiUdp().getUdpId());
        uniqueMap.put("udpId", newUdpId);
        Integer newRefId = null;
        if(udpVal.getFamily().equalsIgnoreCase("Kpi")){
          newRefId = (Integer)kpiAss.get(udpVal.getReferenceId());
        }else{
          newRefId = (Integer)modelAss.get(udpVal.getReferenceId());
        }
        uniqueMap.put("referenceId", newRefId);
        uniqueMap.put("family", udpVal.getFamily());
      }
 
      Object existObj = importer.checkExistence(uniqueMap, sessionCurrDB, new SbiUdpValue());
      if (existObj != null) {
        SbiUdpValue dsCurr = (SbiUdpValue) existObj;
        metaAss.insertCoupleUdpValueAssociation(udpVal.getUdpValueId(), dsCurr.getUdpValueId());
        metaLog.log("Exported association udp value between udp with label " + udpVal.getSbiUdp().getLabel() + " "
            + " and family " + udpVal.getFamily() + " with reference id "
            +  udpVal.getReferenceId() + " not inserted"
            + " because already existing into the current database");
      }
    }
    // OU  SbiOrgUnit
    List exportedSbiOrgUnitList = importer.getAllExportedSbiObjects(sessionExpDB, "SbiOrgUnit", null);
    Iterator iterOUVal = exportedSbiOrgUnitList.iterator();
    while (iterOUVal.hasNext()) {
      SbiOrgUnit ouVal = (SbiOrgUnit) iterOUVal.next();
      Map uniqueMap = new HashMap();
      String label = ouVal.getLabel();
      String name = ouVal.getName();
      uniqueMap.put("label", label);
      uniqueMap.put("name", name);
      Object existObj = importer.checkExistence(uniqueMap, sessionCurrDB, new SbiOrgUnit());
      if (existObj != null) {
        SbiOrgUnit dsCurr = (SbiOrgUnit) existObj;
        metaAss.insertCoupleIdOuAssociation(ouVal.getId(), dsCurr.getId());
        metaLog.log("Found an existing ou " + dsCurr.getName() + " with "
            + "the same label of one exported ou");
      }
    }// OU hierarchy SbiOrgUnitHierarchies
    List exportedSbiOuHierList = importer.getAllExportedSbiObjects(sessionExpDB, "SbiOrgUnitHierarchies", null);
    Iterator iterOUHierVal = exportedSbiOuHierList.iterator();
    while (iterOUHierVal.hasNext()) {
      SbiOrgUnitHierarchies ouHierVal = (SbiOrgUnitHierarchies) iterOUHierVal.next();
      // check if the association already exist
      Map uniqueMap = new HashMap();
      String label = ouHierVal.getLabel();
      String company = ouHierVal.getCompany();
      uniqueMap.put("label", label);
      uniqueMap.put("company", company);
      Object existObj = importer.checkExistence(uniqueMap, sessionCurrDB, new SbiOrgUnitHierarchies());
      if (existObj != null) {
        SbiOrgUnitHierarchies dsCurr = (SbiOrgUnitHierarchies) existObj;
        metaAss.insertCoupleIdOuHierarchyAssociation(ouHierVal.getId(), dsCurr.getId());
        metaLog.log("Found an existing ou hierarchy " + dsCurr.getName() + " with "
            + "the same label of one exported ou hierarchy");
      }
      /*
      String label = ouHierVal.getLabel();
      Object existObj = importer.checkExistence(label, sessionCurrDB, new SbiOrgUnitHierarchies());
      if (existObj != null) {
        SbiOrgUnitHierarchies dsCurr = (SbiOrgUnitHierarchies) existObj;
        metaAss.insertCoupleIdOuHierarchyAssociation(ouHierVal.getId(), dsCurr.getId());
        metaLog.log("Found an existing ou hierarchy " + dsCurr.getName() + " with "
            + "the same label of one exported ou hierarchy");
      }
      */
    }// OU node  SbiOrgUnitNodes
    List exportedSbiOrgUnitNodeList = importer.getAllExportedSbiObjects(sessionExpDB, "SbiOrgUnitNodes", null);
    Iterator iterOUNodeVal = exportedSbiOrgUnitNodeList.iterator();
    while (iterOUNodeVal.hasNext()) {
      SbiOrgUnitNodes ouVal = (SbiOrgUnitNodes) iterOUNodeVal.next();
      // check if the association already exist
      Map uniqueMap = new HashMap();
      Map ouAss = metaAss.getOuAssociation();
      Map hierAss = metaAss.getOuHierarchiesAssociation();
      if(ouVal.getSbiOrgUnit() != null){
        Integer newOuId = (Integer)ouAss.get(ouVal.getSbiOrgUnit().getId());
        uniqueMap.put("ouId", newOuId);
        Integer newHierId = (Integer)hierAss.get(ouVal.getSbiOrgUnitHierarchies().getId());
        uniqueMap.put("hierarchyId", newHierId);
      }
      Object existObj = importer.checkExistence(uniqueMap, sessionCurrDB, new SbiOrgUnitNodes());
      if (existObj != null) {
        SbiOrgUnitNodes dsCurr = (SbiOrgUnitNodes) existObj;
        metaAss.insertCoupleIdOuNodeAssociation(ouVal.getNodeId(), dsCurr.getNodeId());
        metaLog.log("Found an existing ou node " + dsCurr.getNodeId() + " with "
            + "the same organizational unit and hierarchy of one exported ou node");
      }
    }// OU grants  SbiOrgUnitGrant
    List exportedSbiOUGrantList = importer.getAllExportedSbiObjects(sessionExpDB, "SbiOrgUnitGrant", null);
    Iterator iterOUGrantVal = exportedSbiOUGrantList.iterator();
    while (iterOUGrantVal.hasNext()) {
      SbiOrgUnitGrant ouGrantVal = (SbiOrgUnitGrant) iterOUGrantVal.next();
      String label = ouGrantVal.getLabel();
      Object existObj = importer.checkExistence(label, sessionCurrDB, new SbiOrgUnitGrant());
      if (existObj != null) {
        SbiOrgUnitGrant dsCurr = (SbiOrgUnitGrant) existObj;
        metaAss.insertCoupleIdOuGrantAssociation(ouGrantVal.getId(), dsCurr.getId());
        metaLog.log("Found an existing ou grant " + dsCurr.getId() + " with "
            + "the same label of one exported ou grant");
      }
    }// OU grant nodes  SbiOrgUnitGrantNodes
    List exportedSbiOUGrantNodeList = importer.getAllExportedSbiObjects(sessionExpDB, "SbiOrgUnitGrantNodes", null);
    Iterator iterOUGrantNodesVal = exportedSbiOUGrantNodeList.iterator();
    while (iterOUGrantNodesVal.hasNext()) {
      SbiOrgUnitGrantNodes ouGrantNode = (SbiOrgUnitGrantNodes) iterOUGrantNodesVal.next();
      Map uniqueMap = new HashMap();   
      Map nodeAss = metaAss.getOuNodeAssociation();
      Map miAss = metaAss.getModelInstanceIDAssociation();
      Map grantAss = metaAss.getOuGrantAssociation();
      if(ouGrantNode.getId() != null){
        Integer newGrantId = (Integer)grantAss.get(ouGrantNode.getId().getGrantId());
        uniqueMap.put("grantId", newGrantId );
        Integer newNodeId = (Integer)nodeAss.get(ouGrantNode.getId().getNodeId());
        uniqueMap.put("nodeId", newNodeId);
        Integer newMiId = (Integer)miAss.get(ouGrantNode.getId().getKpiModelInstNodeId());
        uniqueMap.put("modelInstId", newMiId);
      }
      Object existObj = importer.checkExistence(uniqueMap, sessionCurrDB, new SbiOrgUnitGrantNodes());
      if (existObj != null) {
        SbiOrgUnitGrantNodes dsCurr = (SbiOrgUnitGrantNodes) existObj;
        metaAss.insertCoupleIdOuGrantNodesAssociation(ouGrantNode.getId(), dsCurr.getId());
        metaLog.log("Found an existing ou grant node with grant id " + dsCurr.getId().getGrantId() + " with "
            + "the same id of one exported ou grant node");
      }
    }
    logger.debug("OUT");
  }
View Full Code Here

Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

      String mobile = getAttributeAsString(MOBILE);
      String resources = getAttributeAsString(RESOURCES);
     
      String id = getAttributeAsString(ID);
     
      SbiAlarmContact contact = new SbiAlarmContact();
      contact.setEmail(email);
      contact.setMobile(mobile);
      contact.setName(name);
      if(resources != null && !resources.equals(NO_RESOURCES_STR)){
        contact.setResources(resources);
      }else{
        contact.setResources(null);
      }
      try {
        if(id != null && !id.equals("") && !id.equals("0")){             
          contact.setId(Integer.valueOf(id));
          contactDao.update(contact);
          logger.debug("Contact "+id+" updated");
          JSONObject attributesResponseSuccessJSON = new JSONObject()
          attributesResponseSuccessJSON.put("success", true)
          attributesResponseSuccessJSON.put("responseText", "Operation succeded");
View Full Code Here

Examples of it.eng.spagobi.kpi.alarm.metadata.SbiAlarmContact

    ISbiAlarmContactDAO alarmContactDAO=DAOFactory.getAlarmContactDAO();
    Set<AlarmContact> contactsToInsert = new HashSet<AlarmContact>(0);
    Set<SbiAlarmContact> contacts=sbiAlarm.getSbiAlarmContacts();
    if(contacts!=null){
      for (Iterator iterator = contacts.iterator(); iterator.hasNext();) {
        SbiAlarmContact sbiAlarmContact = (SbiAlarmContact) iterator.next();
        Integer idAlarmContact=sbiAlarmContact.getId();
        AlarmContact alarmContact=alarmContactDAO.loadById(idAlarmContact);
        contactsToInsert.add(alarmContact);
      }     
    }
    toReturn.setSbiAlarmContacts(contactsToInsert)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.