Examples of GroupLocal


Examples of com.centraview.contact.group.GroupLocal

    Vector v = null ;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote = home.create();
      remote.setDataSource(dataSource);
      v = remote.getGroupMemberIDs(userID,groupId );
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getGroupMemberIDs] Exception Thrown: "+e);
      //e.printStackTrace();
    }
    return v;
View Full Code Here

Examples of com.centraview.contact.group.GroupLocal

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote =  home.create();
      remote.setDataSource(dataSource);
      // Transaction not required cause even if adding member fails its ok.
      newGroupID = remote.createGroup(userId, groupDetail);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.createGroup] Exception Thrown: "+e);
      //e.printStackTrace();
    }
    return newGroupID;
View Full Code Here

Examples of com.centraview.contact.group.GroupLocal

  {
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.addContactToGroup(userId, contactId,groupId);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.addContactToGroup] Exception Thrown: "+e);
      //e.printStackTrace();
    }
  }
View Full Code Here

Examples of com.centraview.contact.group.GroupLocal

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      // Transaction not required cause even if adding member fails its ok.
      gvo  = remote.getGroupDetails(userId, groupId);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getGroup] Exception Thrown: "+e);
      //e.printStackTrace();
    }
    return gvo;
View Full Code Here

Examples of com.centraview.contact.group.GroupLocal

  public void deleteGroup(int userId, int groupId)
  {
    try{
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      // Transaction not required cause even if adding member fails its ok.
      remote.deleteGroup(groupId);
    }catch(NamingException re){
      throw new EJBException(re);
    }catch(CreateException ce){
      throw new EJBException(ce);
    }
View Full Code Here

Examples of com.centraview.contact.group.GroupLocal

  public void deleteGroupMember(int groupMemberId, int groupId)
  {
    try {
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteGroupMember(groupId, groupMemberId);
    } catch (NamingException re) {
      throw new EJBException(re);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    }
View Full Code Here

Examples of com.centraview.contact.group.GroupLocal

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.updateGroup(userId,groupDetail);
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.updateGroup] Exception Thrown: "+e);
      e.printStackTrace();
    }
  }   // end updateGroup() method
View Full Code Here

Examples of com.centraview.contact.group.GroupLocal

    int newGroupID = 0;   // method will return 0 upon failure
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      GroupLocalHome home = (GroupLocalHome)ic.lookup("local/Group");
      GroupLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      newGroupID = remote.duplicateGroup(individualID, groupID);
    }catch(Exception e){
      System.out.println("[Exception] Exception thrown in ContactFacade.duplicateGroup(): " + e);
      // e.printStackTrace();
    }
    return newGroupID;
View Full Code Here

Examples of com.centraview.contact.group.GroupLocal

      //This is for getting group Detail
      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("");
        }
View Full Code Here

Examples of org.jboss.test.cmp2.fkmapping.ejb.GroupLocal

      }
   }

   public void testJoing() throws Exception {
      DepartmentLocal department = null;
      GroupLocal kv62Group = null;
      GroupLocal kv63Group = null;
      try {
         System.out.println("testJoin()");
         department = getDepartmentHome().create("KV", "Specialized Computer Systems");
         kv62Group = getGroupHome().create("KV", 62, "KV-62");
         kv63Group = getGroupHome().create("KV", 63, "KV-63");
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.