Examples of GroupVO


Examples of com.eforce.baby.auth.vo.GroupVO

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

    GroupVO groupVO = new GroupVO();
    DynaActionForm dynaForm = (DynaActionForm) form;

    try {
      // Copying form objects to VO objects
      BeanUtils.copyProperties(groupVO, form);
      // Added by Arindam
    } catch (IllegalAccessException ex) {
      log.error("Error GroupAction:viewGroup()");
    } catch (InvocationTargetException ex) {
      log.error("Error GroupAction:viewGroup()");
    }

    HttpSession session = request.getSession();
    SessionUserVO sessUser =
      (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());
      actionFrwd = mapping.findForward("pop_success");
    } catch(DAOException e){
      ActionMessage message;
      log.debug("Message Key:= "+e.getMessageKey());
      log.debug("Error Message := "+IErrorMessageKeys.KEY_ERROR_DUPLICATE_GROUP);
      if( e.getMessageKey().equals(IErrorMessageKeys.KEY_ERROR_DUPLICATE_GROUP)){
        message =  new ActionMessage(IErrorMessageKeys.KEY_ERROR_DUPLICATE_GROUP);
      }
      else{
        message =  new ActionMessage(IErrorMessageKeys.KEY_DATABASE_ERROR);
      }
      //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);

      //actionFrwd = new ActionForward(mapping.getInput());
      actionFrwd = new ActionForward("/admin/Group.do?target=viewGroupForUpdate&id="+groupVO.getId()+"&mode=update&page=updateMain");
    } catch(BusinessException e){
      ActionMessage message = new ActionMessage(e.getMessageKey());
      ActionMessages messages = new ActionMessages();
      messages.add(IConstants.PAGE_ERROR_MSG_ERROR_MESSAGE, message);
      this.saveErrors(request, messages);

      actionFrwd = new ActionForward("/admin/Group.do?target=viewGroupForUpdate&id="+groupVO.getId()+"&mode=update&page=updateMain");
    }

    return actionFrwd;
  }
View Full Code Here

Examples of com.eteam.ems.auth.vo.GroupVO

   * @throws DAOException
   * @throws BusinessException
   */
  public GroupVO findGroup( String dsName, String dbType, String groupID) throws DAOException, BusinessException
  {
    GroupVO groupVO = null;

    GroupDAO dao = (GroupDAO) DAOFactory.getInstance().
              getDAO("com.eteam.ems.auth.dao.GroupDAO");
    groupVO = dao.findGroup(dsName, dbType, groupID);

View Full Code Here

Examples of org.infoglue.cms.entities.management.GroupVO

   * is handling.
   */

  public BaseEntityVO getNewVO()
  {
    return new GroupVO();
  }
View Full Code Here

Examples of org.infoglue.cms.entities.management.GroupVO

 
  private String userName;

  public UpdateGroupAction()
  {
    this(new GroupVO());
  }
View Full Code Here

Examples of org.infoglue.cms.entities.management.GroupVO

  private List contentTypeDefinitionVOList;
  private ConstraintExceptionBuffer ceb;

  public CreateGroupAction()
  {
    this(new GroupVO());
  }
View Full Code Here

Examples of org.infoglue.cms.entities.management.GroupVO

                t.printElapsedTime("groupVOList took:");

            Iterator<GroupVO> groupVOListIterator = groupVOList.iterator();
            while(groupVOListIterator.hasNext())
            {
              GroupVO groupVO = groupVOListIterator.next();
              if(logger.isInfoEnabled())
                logger.info("Adding group:" + groupVO.getGroupName());
              InfoGlueGroup infoGlueGroup = new InfoGlueGroup(groupVO.getGroupName(), groupVO.getGroupName(), groupVO.getDescription(), groupVO.getSource(), groupVO.getGroupType(), groupVO.getIsActive(), groupVO.getModifiedDateTime(), this);
              groups.add(infoGlueGroup);
            }
             
            infogluePrincipal = new InfoGluePrincipal(userName, userName, systemUser.getFirstName(), systemUser.getLastName(), systemUser.getEmail(), systemUser.getSource(), systemUser.getIsActive(), systemUser.getModifiedDateTime(), roles, groups, new HashMap(), isAdministrator, this);
          }
          else
          {
              logger.warn("Could not find user with userName '" + userName + "' - fix your template logic.");
              infogluePrincipal = null;
          }
          //setDebug(Level.ERROR, "org.exolab.castor.jdo");
         
          commitTransaction(db);
        }
        catch (Exception e)
        {
          logger.info("An error occurred trying to get SystemUser for " + userName + ":" + e.getMessage());
          rollbackTransaction(db);
          throw new SystemException(e.getMessage());
        }
      }
      else
      {
          SystemUser systemUser = SystemUserController.getController().getReadOnlySystemUserWithName(userName, transactionObject);
          if(logger.isInfoEnabled())
            t.printElapsedTime("systemUser BBB took:");
         
          if(systemUser != null)
          {
            Collection<RoleVO> roleVOList = RoleController.getController().getRoleVOList(userName, transactionObject);
            if(logger.isInfoEnabled())
              t.printElapsedTime("getRoleVOList took:");

          Iterator<RoleVO> roleVOListIterator = roleVOList.iterator();
          while(roleVOListIterator.hasNext())
          {
            RoleVO roleVO = roleVOListIterator.next();
            if(logger.isInfoEnabled())
              logger.info("Adding role:" + roleVO.getRoleName());
            InfoGlueRole infoGlueRole = new InfoGlueRole(roleVO.getRoleName(), roleVO.getRoleName(), roleVO.getDescription(), roleVO.getSource(), roleVO.getIsActive(), roleVO.getModifiedDateTime(), this);
            roles.add(infoGlueRole);
          }
         
            Collection<GroupVO> groupVOList = GroupController.getController().getGroupVOList(userName, transactionObject);
            if(logger.isInfoEnabled())
              t.printElapsedTime("groupVOList took:");

          Iterator<GroupVO> groupVOListIterator = groupVOList.iterator();
          while(groupVOListIterator.hasNext())
          {
            GroupVO groupVO = (GroupVO)groupVOListIterator.next();
            if(logger.isInfoEnabled())
              logger.info("Adding group:" + groupVO.getGroupName());
            InfoGlueGroup infoGlueGroup = new InfoGlueGroup(groupVO.getGroupName(), groupVO.getGroupName(), groupVO.getDescription(), groupVO.getSource(), groupVO.getGroupType(), groupVO.getIsActive(), groupVO.getModifiedDateTime(), this);
            groups.add(infoGlueGroup);
          }
         
          infogluePrincipal = new InfoGluePrincipal(userName, userName, systemUser.getFirstName(), systemUser.getLastName(), systemUser.getEmail(), systemUser.getSource(), systemUser.getIsActive(), systemUser.getModifiedDateTime(), roles, groups, new HashMap(), isAdministrator, this);
          }
View Full Code Here

Examples of org.infoglue.cms.entities.management.GroupVO

 
  public InfoGlueGroup getAuthorizedInfoGlueGroup(String groupName) throws Exception
  {
    InfoGlueGroup infoglueGroup = null;
   
    GroupVO groupVO = null;
    if(transactionObject == null)
    {
        groupVO = GroupController.getController().getGroupVOWithId(groupName);
    }
    else
    {
        groupVO = GroupController.getController().getGroupVOWithId(groupName, transactionObject);
    }

      infoglueGroup = new InfoGlueGroup(groupVO.getGroupName(), groupVO.getGroupName(), groupVO.getDescription(), groupVO.getSource(), groupVO.getGroupType(), groupVO.getIsActive(), groupVO.getModifiedDateTime(), this);
       
    return infoglueGroup;
  }
View Full Code Here

Examples of org.infoglue.cms.entities.management.GroupVO

    {
      List groupVOList = GroupController.getController().getGroupVOList();
      Iterator groupVOListIterator = groupVOList.iterator();
      while(groupVOListIterator.hasNext())
      {
          GroupVO groupVO = (GroupVO)groupVOListIterator.next();
        InfoGlueGroup infoGlueGroup = new InfoGlueGroup(groupVO.getGroupName(), groupVO.getGroupName(), groupVO.getDescription(), groupVO.getSource(), groupVO.getGroupType(), groupVO.getIsActive(), groupVO.getModifiedDateTime(), this);
        groups.add(infoGlueGroup);
      }
    }
    else
    {
      List groupVOList = GroupController.getController().getGroupVOList(this.transactionObject);
      Iterator groupVOListIterator = groupVOList.iterator();
      while(groupVOListIterator.hasNext())
      {
          GroupVO groupVO = (GroupVO)groupVOListIterator.next();
        InfoGlueGroup infoGlueGroup = new InfoGlueGroup(groupVO.getGroupName(), groupVO.getGroupName(), groupVO.getDescription(), groupVO.getSource(), groupVO.getGroupType(), groupVO.getIsActive(), groupVO.getModifiedDateTime(), this);
        groups.add(infoGlueGroup);
      }       
    }
   
    return groups;
View Full Code Here

Examples of org.vosao.service.vo.GroupVO

  @Override
  public GroupVO getById(Long id) {
    GroupEntity group = getDao().getGroupDao().getById(id);
    if (group != null) {
      GroupVO result = new GroupVO(group);
      result.setUsers(UserVO.create(getDao().getUserDao().selectByGroup(
          id)));
      return result;
    }
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.