Package com.eforce.baby.auth.delegates

Examples of com.eforce.baby.auth.delegates.DistributionGroupBD


    } catch (InvocationTargetException e) {
      log.error("ERROR in createDistGroup", e);
    }
    log.debug("Asking for DistGroupBD");
    try {
      DistributionGroupBD bd =
        (DistributionGroupBD) BusinessDelegateFactory
          .getInstance()
          .getDelegate(
          "com.eteam.ems.auth.delegates.DistributionGroupBD");

      log.debug("BD got, calling create distribution group");

      HttpSession session = request.getSession();
      SessionUserVO sessUser =
        (SessionUserVO) session.getAttribute(
          IConstants.SESSION_ATTR_USER_SESSION_INFO);
      String dsName = sessUser.getDsName();
      String dbType = sessUser.getDbType();

      bd.createDistGroup(dsName, dbType, distGroupVO);
      log.debug("Distribution Group Created Successfully !!!");

      request.setAttribute(
        "fwd",
        "/admin/DistributionGroup.do?target=viewDistGroup&id="
View Full Code Here


    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    ActionForward actionFrwd = null;

    DistributionGroupBD bd =
      (DistributionGroupBD) BusinessDelegateFactory
        .getInstance()
        .getDelegate(
        "com.eteam.ems.auth.delegates.DistributionGroupBD");
    log.debug("calling findDistGroup");
    HttpSession session = request.getSession();
    SessionUserVO sessUser =
      (SessionUserVO) session.getAttribute(
        IConstants.SESSION_ATTR_USER_SESSION_INFO);
    String dsName = sessUser.getDsName();
    String dbType = sessUser.getDbType();
    DistributionGroupVO distGroupVO = new DistributionGroupVO();
    try {
      distGroupVO =
        bd.getDistGroup(dsName, dbType, request.getParameter("id"));
    } catch(DAOException e){
      ActionMessage message =  new ActionMessage(IErrorMessageKeys.KEY_DATABASE_ERROR);
      ActionMessages messages = new ActionMessages();
      messages.add(IConstants.PAGE_ERROR_MSG_ERROR_MESSAGE, message);
      this.saveErrors(request, messages);
View Full Code Here

    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    ActionForward actionFrwd = null;

    DistributionGroupBD bd =
      (DistributionGroupBD) BusinessDelegateFactory
        .getInstance()
        .getDelegate(
        "com.eteam.ems.auth.delegates.DistributionGroupBD");
    log.debug("calling findDistGroup");
    HttpSession session = request.getSession();
    SessionUserVO sessUser =
      (SessionUserVO) session.getAttribute(
        IConstants.SESSION_ATTR_USER_SESSION_INFO);
    String dsName = sessUser.getDsName();
    String dbType = sessUser.getDbType();
    DistributionGroupVO distGroupVO = new DistributionGroupVO();
    try {
      distGroupVO =
        bd.getDistGroup(dsName, dbType, request.getParameter("id"));
    } catch(DAOException e){
      ActionMessage message =  new ActionMessage(IErrorMessageKeys.KEY_DATABASE_ERROR);
      ActionMessages messages = new ActionMessages();
      messages.add(IConstants.PAGE_ERROR_MSG_ERROR_MESSAGE, message);
      this.saveErrors(request, messages);
View Full Code Here

    } catch (InvocationTargetException e) {
      log.error("ERROR in updateDistGroup", e);
    }
    log.debug("Asking for DistGroupBD");
    try {
      DistributionGroupBD bd =
        (DistributionGroupBD) BusinessDelegateFactory
          .getInstance()
          .getDelegate(
          "com.eteam.ems.auth.delegates.DistributionGroupBD");
      log.debug("BD got, calling updateDistGroup");

      HttpSession session = request.getSession();
      SessionUserVO sessUser =
        (SessionUserVO) session.getAttribute(
          IConstants.SESSION_ATTR_USER_SESSION_INFO);
      String dsName = sessUser.getDsName();
      String dbType = sessUser.getDbType();

      bd.updateDistGroup(dsName, dbType, distGroupVO);
      log.debug("distGroup Updated Successfully !!!");

      request.setAttribute(
        "fwd",
        "/admin/DistributionGroup.do?target=viewDistGroup&id="
View Full Code Here

    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {
    DistributionGroupBD bd =
      (DistributionGroupBD) BusinessDelegateFactory
        .getInstance()
        .getDelegate(
        IConstants.CLASS_DIST_GROUP_BD);
    HttpSession session = request.getSession();
    SessionUserVO sessUser =
      (SessionUserVO) session.getAttribute(
        IConstants.SESSION_ATTR_USER_SESSION_INFO);
    ArrayList list = null;
    try {
      list =
        bd.findGroupsForDistribution(
          sessUser.getDsName(),
          sessUser.getDbType());
    } catch (BusinessException be) {
      // If some business error occured, will return to the input page
      ActionMessage message = new ActionMessage(be.getMessageKey());
View Full Code Here

    HttpServletResponse response)
    throws IOException, ServletException {
    ActionForward actionFrwd = null;

    try {
      DistributionGroupBD bd =
        (DistributionGroupBD) BusinessDelegateFactory
          .getInstance()
          .getDelegate(
          "com.eteam.ems.auth.delegates.DistributionGroupBD");
      HttpSession session = request.getSession();
      SessionUserVO sessUser =
        (SessionUserVO) session.getAttribute(
          IConstants.SESSION_ATTR_USER_SESSION_INFO);
      String dsName = sessUser.getDsName();
      String dbType = sessUser.getDbType();

      bd.delete(dsName, dbType, request.getParameter("id"));

      actionFrwd = mapping.findForward(request.getParameter("target"));
    } catch (BusinessException be) {
      // TODO Auto-generated catch block
View Full Code Here

TOP

Related Classes of com.eforce.baby.auth.delegates.DistributionGroupBD

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.