Package com.centraview.contact.group

Examples of com.centraview.contact.group.GroupLocalHome


  {
    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();
View Full Code Here


    int newGroupID = 0;

    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);
View Full Code Here

  public void addContactToGroup(int userId,int groupId, int[] contactId)
  {
    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

    GroupVO gvo = null;

    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);
View Full Code Here

  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);
View Full Code Here

  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) {
View Full Code Here

    }

    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();
View Full Code Here

  {
    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();
View Full Code Here

      }

      //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);
View Full Code Here

TOP

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

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.