Package com.centraview.contact.group

Examples of com.centraview.contact.group.GroupVO


      if (session.getAttribute("listErrorMessage") != null) {
        ActionMessages allErrors = (ActionMessages)session.getAttribute("listErrorMessage");
        saveErrors(request, allErrors);
        session.removeAttribute("listErrorMessage");
      }
      GroupVO groupVO = remote.getGroup(individualId, Integer.parseInt(row));
      DynaActionForm dynaForm = (DynaActionForm)form;
      IndividualVO ivo = remote.getIndividual(groupVO.getOwner());
      if (ivo != null) {
        dynaForm.set("ownerName", new String(ivo.getFirstName() + " " + ivo.getLastName()));
      }
      ivo = null;
      dynaForm.set("groupname", groupVO.getGroupName());
      dynaForm.set("groupdescription", groupVO.getDescription());
      dynaForm.set("groupid", (new Integer(groupVO.getGroupID())).toString());
      Date createdDate = groupVO.getCreatedate();
      Date modifiedDate = groupVO.getModifydate();
      // TODO common date formatter
      SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MMM d, yyyy h:mm a");
      dynaForm.set("create", simpleDateFormat.format(createdDate));
      dynaForm.set("modify", simpleDateFormat.format(modifiedDate));
      dynaForm.set("owner", (new Integer(groupVO.getOwner())).toString());

      ListPreference listPreference = userObject.getListPreference("Individual");
      ListView view = listPreference.getListView(String.valueOf(listPreference.getDefaultView()));
      ValueListParameters listParameters = (ValueListParameters)request
          .getAttribute("listParameters");
View Full Code Here


  }   // end getAllGroupList() method


  public GroupVO getGroup(int userId, int groupId)
  {
    GroupVO gvo = null;

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
View Full Code Here

      if (this.envo.getAccTeam() != 0) {
        try {
          GroupLocalHome groupHome = (GroupLocalHome)ic.lookup("local/Group");
          GroupLocal groupRemote = groupHome.create();
          groupRemote.setDataSource(this.dataSource);
          GroupVO groupVO = groupRemote.getGroupDetails(1,this.envo.getAccTeam());
          this.envo.setAcctTeamName(groupVO.getGroupName());
        }catch(Exception e){
          logger.error("[getEntityVOWithBasicReferences] Exception thrown.", e);
          this.envo.setAcctTeamName("");
        }
      } else {
View Full Code Here

TOP

Related Classes of com.centraview.contact.group.GroupVO

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.