Ejemplo n.º 1
0
  /**
   * Loads all GROUPValueObjects through the business facade using information in the
   * HttpServletRequest.
   *
   * @return String as result
   * @exception ProcessingException
   */
  public String loadAllGROUPs() throws ProcessingException {
    String sReturnValue = null;

    logMessage(FrameworkLogEventType.DEBUG_LOG_EVENT_TYPE, "Inside GROUPWorkerBean::loadAllGROUPs");

    try {
      // load the GROUPValueObject
      Collection coll = GROUPProxy.getGROUPs();

      if (coll != null) {
        logMessage(
            FrameworkLogEventType.DEBUG_LOG_EVENT_TYPE,
            "GROUPWorkerBean:loadAllGROUPs() - successfully loaded all GROUPValueObjects - "
                + coll.toString());

        // assign the GROUPValueObject to the ApplicationUSOM
        ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM();
        objectManager.setGROUPs(coll);
      }
    } catch (Exception exc) {
      throw new ProcessingException(
          "GROUPWorkerBean:loadAllGROUPs() - successfully loaded all GROUPValueObjects - " + exc,
          exc);
    }

    return (sReturnValue);
  }