Package com.eforce.baby.auth.delegates

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


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

      log.debug("BD got, calling create 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.createGroup(dsName, dbType, groupVO);
      log.debug("Group Created Successfully !!!");

      request.setAttribute(
        "fwd",
        "/admin/Group.do?target=viewGroup&id=" + groupVO.getId());
View Full Code Here


    HttpServletResponse response)
    throws IOException, ServletException {
    ActionForward actionFrwd = null;
    DynaActionForm dynaForm = (DynaActionForm) form;

    GroupBD bd =
      (GroupBD) BusinessDelegateFactory.getInstance().getDelegate(
        "com.eteam.ems.auth.delegates.GroupBD");

    // get dsName and dbType from the session - begin
    HttpSession session = request.getSession();
    SessionUserVO sessUser =
      (SessionUserVO) session.getAttribute(
        IConstants.SESSION_ATTR_USER_SESSION_INFO);
    String dsName = sessUser.getDsName();
    String dbType = sessUser.getDbType();
    GroupVO groupVO = new GroupVO();

    /* Forward to the View Page  */
    try {
      groupVO = bd.findGroup(dsName, dbType, request.getParameter(IConstants.REQ_PARAM_ID));
      BeanUtils.copyProperties(form, groupVO);
    } catch (IllegalAccessException ex) {
      log.error("Error GroupAction:viewGroup()");
    } catch (InvocationTargetException ex) {
      log.error("Error GroupAction:viewGroup()");
View Full Code Here

    throws IOException, ServletException {

    ActionForward actionFrwd = null;
    DynaActionForm dynaForm = (DynaActionForm) form;

    GroupBD groupbd =
      (GroupBD) BusinessDelegateFactory.getInstance().getDelegate(
        "com.eteam.ems.auth.delegates.GroupBD");

    // get dsName and dbType from the session - begin
    HttpSession session = request.getSession();
    SessionUserVO sessUser =
      (SessionUserVO) session.getAttribute(
        IConstants.SESSION_ATTR_USER_SESSION_INFO);
    String dsName = sessUser.getDsName();
    String dbType = sessUser.getDbType();
    // get dsName and dbType from the session - end
    GroupVO groupVO = new GroupVO();

    try {
      groupVO =
        (GroupVO) groupbd.findGroup(
          dsName,
          dbType,
          request.getParameter(IConstants.REQ_PARAM_ID));
      BeanUtils.copyProperties(form, groupVO);
    } catch (IllegalAccessException ex) {
View Full Code Here

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

    GroupBD groupbd =
      (GroupBD) BusinessDelegateFactory.getInstance().getDelegate(
        "com.eteam.ems.auth.delegates.GroupBD");

    try {
      groupbd.updateGroup(dsName, dbType, groupVO);

      log.debug("new report id = " + groupVO.getId());
      request.setAttribute(
        "fwd",
        "/admin/Group.do?target=viewGroup&id=" + groupVO.getId());
View Full Code Here

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

    try {
      GroupBD bd =
        (GroupBD) BusinessDelegateFactory.getInstance().getDelegate(
          "com.eteam.ems.auth.delegates.GroupBD");
      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(DAOException e){
      ActionMessage message =  new ActionMessage(IErrorMessageKeys.KEY_DATABASE_ERROR);
      ActionMessages messages = new ActionMessages();
View Full Code Here

TOP

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

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.