Examples of deleteMOC()


Examples of com.centraview.contact.contactfacade.ContactFacade.deleteMOC()

    {
      //call to EJB server
      int elementID = Integer.parseInt(key);
      ContactFacade remote =(ContactFacade)cfh.create();
      remote.setDataSource(this.dataSource);
      remote.deleteMOC(elementID,this.contactId,this.contactType);
      // User-rights for DeleteMOC ?
    }
    catch(AuthorizationFailedException ae){
      logger.error("[Exception] MOCList.deleteElement( int indvID, String String key )", ae);
    }//end of catch block
View Full Code Here

Examples of com.centraview.contact.contactfacade.ContactFacade.deleteMOC()

      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
          try{
            remote.deleteMOC(elementID,this.contactId,this.contactType);
          }//end of try block
          catch(AuthorizationFailedException ae){
            String errorMessage = ae.getExceptionDescription();
            resultDeleteLog.add(errorMessage);
          }//end of catch block
View Full Code Here

Examples of com.centraview.contact.contactfacade.ContactFacade.deleteMOC()

      for (int i = 0; i < rowId.length; i++) {
        if (rowId[i] != null && !rowId[i].equals("")) {
          int elementId = Integer.parseInt(rowId[i]);
          try {
            remote.deleteMOC(elementId, -1, individualId);
            // -1 == contact ID which we don't need to pass
          } catch (Exception ae) {
            deleteLog.add("Could not delete contact method");
          }
        }
View Full Code Here

Examples of com.centraview.contact.contactfacade.ContactFacade.deleteMOC()

    for (int i = 0; i < methodOfContactVOs.size(); i++) {
      int currentId = ((MethodOfContactVO)methodOfContactVOs.get(i)).getMocID();
     
      if (! methodOfContactCheckList.contains(currentId+"")) {
        try {
          remoteContactFacade.deleteMOC(currentId, contactID, individualId);
        } catch (RemoteException re) {
          logger.error("[Exception] IndividualMerge.Execute Handler ", re);
        } catch (AuthorizationFailedException afe) {
          logger.error("[Exception] IndividualMerge.Execute Handler ", afe);
        }
View Full Code Here

Examples of com.centraview.contact.contactfacade.ContactFacade.deleteMOC()

    for (int i = 0; i < methodOfContactVOs.size(); i++) {
      int currentId = ((MethodOfContactVO)methodOfContactVOs.get(i)).getMocID();

      if (!methodOfContactCheckList.contains(currentId+"")) {
        try {
          remoteContactFacade.deleteMOC(currentId, entityId, individualId);
        } catch (RemoteException re) {
          logger.error("[Exception] EntityMerge.Execute Handler ", re);
        } catch (AuthorizationFailedException afe) {
          logger.error("[Exception] EntityMerge.Execute Handler ", afe);
        }
View Full Code Here

Examples of com.centraview.contact.helper.ContactHelperLocal.deleteMOC()

    try{
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteMOC(mocId,  contactId,  userId,true);
      remote.updateModified("moc", contactId, userId, mocId);
    }catch(NamingException re){
      throw new EJBException(re);
    }catch(CreateException ce){
      throw new EJBException(ce);
View Full Code Here

Examples of com.centraview.contact.helper.ContactHelperLocal.deleteMOC()

              // updating that record at this time.
              remote.addMOC(mocObj, entId, cntType, modBy, false);
            } else if (mocObj.isUpdated()) {
              remote.updateMOC(mocObj, entId, modBy, false); // don't update
            } else if (mocObj.isDelete()) {
              remote.deleteMOC(mocID, entId, modBy, false); // don't update
            }
          }
        } // end if (mocVOs != null)

        IndividualVO newInd = this.envo.getIndividualVO();
View Full Code Here

Examples of com.centraview.contact.helper.ContactHelperLocal.deleteMOC()

            remote.updateMOC(mocObj, indVo.getContactID(), indVo.getModifiedBy(), false);
          } else if (mocObj.isDelete()) {
            // We are passing the Extra boolean value to the method. if the
            // boolean value is false then we wil not update the individual
            // table
            remote.deleteMOC(mocID, indVo.getContactID(), indVo.getModifiedBy(), false);
          }
        }

        //this is to fill all the system fields like created on and modified on
        // date
View Full Code Here

Examples of com.centraview.contact.helper.ContactHelperLocal.deleteMOC()

        Iterator mi = this.indVo.getMOC().iterator();
        while (mi.hasNext()) {
          MethodOfContactVO mocVO = (MethodOfContactVO)mi.next();
          // We are passing the Extra boolean value to the method. if the
          // boolean value is false then we wil not update the individual table
          remote.deleteMOC(mocVO.getMocID(), this.indVo.getContactID(), this.operationIndividualId, false);
        }
        //ALLSQL.put("contact.deleteindividual", "delete from individual where
        // individualID = ? ");

        //Delete Custom Field
View Full Code Here

Examples of com.centraview.contact.helper.ContactHelperLocal.deleteMOC()

      {
        MethodOfContactVO mocVO = (MethodOfContactVO)mi.next();
        // The boolean value false tells the ContactHelperEJB to NOT
        // update the 'entity.Modified' field, since we are already
        // updating that record at this time.
        remote.deleteMOC(mocVO.getMocID(), this.envo.getContactID(), 1, false);
      }


      dl.setSqlQuery("SELECT IndividualID AS id FROM individual WHERE individual.Entity = ?");
      dl.setInt(1,this.envo.getContactID());
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.