Package com.centraview.contact.contactfacade

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


      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

      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

    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

    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

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.