Package com.sourcetap.sfa.event

Examples of com.sourcetap.sfa.event.GenericEventProcessor


        int status = STATUS_CONTINUE;

        // Delete related OpportunityProducts.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "OpportunityProduct", originatingEntityName,
                new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related OpportunityContacts.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "OpportunityContact", originatingEntityName,
                new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related DealStageStepsTrackings.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "DealStageStepsTracking", originatingEntityName,
                new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related OpportunityStatusTrackings.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "OpportunityStatusTracking", originatingEntityName,
                new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related Expenses.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Expense",
                originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related FileAttachments.  (Note: This must happen before the DealFiles are deleted.)
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "FileAttachment", originatingEntityName,
                new AbstractAttachmentEP());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related DealFiles.  (Note: This must happen after the FileAttachments are deleted.)
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "DealFile", originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related parties.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Party",
                originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }
View Full Code Here


        int status = STATUS_CONTINUE;

        // Delete related display object attributes.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "UiDisplayObjectAttrib", originatingEntityName,
                new GenericEventProcessor());

        return status;
    }
View Full Code Here

        int status = STATUS_CONTINUE;

        // Delete related addresses.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Address",
                originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related contacts.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Contact",
                originatingEntityName, new ContactEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related activities.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "Activity", originatingEntityName, new ActivityEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related opportunities.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Deal",
                originatingEntityName, new OpportunityEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related forecasts.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "Forecast", originatingEntityName, new ForecastEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related parties.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Party",
                originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related entity accesses.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "EntityAccess", originatingEntityName,
                new EntityAccessEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related FileAttachments.  (Note: This must happen before the AccountFiles are deleted.)
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "FileAttachment", originatingEntityName,
                new AbstractAttachmentEP());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related AccountFiles.  (Note: This must happen after the FileAttachments are deleted.)
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "AccountFile", originatingEntityName,
                new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }
View Full Code Here

   *
   * @see com.sourcetap.sfa.ui.UIDropDown
   */
  public static GenericEventProcessor getEventProcessor(String className) {
    Class eventProcessorClass = null;
    GenericEventProcessor eventProcessor = null;

    if ((className != null ) && (className.length() > 0) && !className.equals("null")) {
      try {
        eventProcessorClass = Class.forName(className);
      } catch (ClassNotFoundException e) {
        Debug.logError("[UIUtility.getEventProcessor] Class \"" +
          className +
          "\" specified in section.eventProcessorClass could not be found.", module);
        Debug.logError(e, module);

        return null;
      }

      try {
        eventProcessor = (GenericEventProcessor) eventProcessorClass.newInstance();
      } catch (IllegalAccessException e) {
        Debug.logError(
          "[UIUtility.getEventProcessor]  EventProcessor class \"" +
          className + "\" could not be instantiated because " +
          "the class or initializer is not accessible.", module);
        Debug.logError(e, module);

        return null;
      } catch (InstantiationException e) {
        Debug.logError("[UIUtility.getEventProcessor] EventProcessor class \"" +
          className + "\" cannot be instantiated because it is an " +
          "abstract class, an interface, an array class, a primitive type, or void.", module);
        Debug.logError(e, module);

        return null;
      }
    } else {
      // Class name was not specified in the display object. Use the default class.
      eventProcessor = new GenericEventProcessor();
    }

    // Return the new instance of UIDropDown.
    return eventProcessor;
  }
View Full Code Here

        int status = STATUS_CONTINUE;

        // Delete related screen section entities.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "UiAttribute", originatingEntityName,
                new GenericEventProcessor());

        return status;
    }
View Full Code Here

        int status = STATUS_CONTINUE;

        // Delete any related Code Types associated with this code type.  Set the allowRecursive flag to true.
        status = deleteOneRelated(userInfo, delegator, entityGV, "child",
                "CodeType", originatingEntityName, new GenericEventProcessor(),
                true);

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete any related Codes associated with this code type.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Code",
                originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }
View Full Code Here

        int status = STATUS_CONTINUE;

        // Delete any related Codes associated with this code.  Set the allowRecursive flag to true.
        status = deleteOneRelated(userInfo, delegator, entityGV, "child",
                "Code", originatingEntityName, new GenericEventProcessor(), true);

        return status;
    }
View Full Code Here

        int status = STATUS_CONTINUE;

        // Delete related screen section entities.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "UiScreenSectionEntity", originatingEntityName,
                new GenericEventProcessor());

        // Delete related screen section infos (fields).
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "UiScreenSectionInfo", originatingEntityName,
                new GenericEventProcessor());

        return status;
    }
View Full Code Here

        int status = STATUS_CONTINUE;

        // Delete related teams.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "TeamMember", originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related party.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Party",
                originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }
View Full Code Here

        int status = STATUS_CONTINUE;

        // Delete related ActivityContacts.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "ActivityContact", originatingEntityName,
                new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related Addresses.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Address",
                originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related Parties.
        status = deleteOneRelated(userInfo, delegator, entityGV, "", "Party",
                originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related UserLogins.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "UserLogin", originatingEntityName, new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related OpportunityContacts.
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "OpportunityContact", originatingEntityName,
                new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related FileAttachments.  (Note: This must happen before the ContactFiles are deleted.)
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "FileAttachment", originatingEntityName,
                new AbstractAttachmentEP());

        if (status != STATUS_CONTINUE) {
            return status;
        }

        // Delete related ContactFiles.  (Note: This must happen after the FileAttachments are deleted.)
        status = deleteOneRelated(userInfo, delegator, entityGV, "",
                "ContactFile", originatingEntityName,
                new GenericEventProcessor());

        if (status != STATUS_CONTINUE) {
            return status;
        }
View Full Code Here

TOP

Related Classes of com.sourcetap.sfa.event.GenericEventProcessor

Copyright © 2018 www.massapicom. 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.