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

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

    try {
      // load the GROUPValueObject
      GROUPPrimaryKey primaryKey = getPrimaryKeyFromServletRequest();
      IGROUPValueObject valueObject = GROUPProxy.getGROUP(primaryKey);

      if (valueObject != null) {
        logMessage(
            FrameworkLogEventType.DEBUG_LOG_EVENT_TYPE,
            "GROUPWorkerBean:loadGROUP() - successfully loaded - " + valueObject.toString());

        // assign the GROUPValueObject to the ApplicationUSOM
        ApplicationUSOM objectManager = (ApplicationUSOM) getUSOM();
        objectManager.setCurrentGROUP(valueObject);
      }
    } catch (Exception exc) {
      throw new ProcessingException("GROUPWorkerBean:loadGROUP() - " + exc, exc);
    }

    return (sReturnValue);
  }