Package com.centraview.contact.contactfacade

Examples of com.centraview.contact.contactfacade.ContactFacadeHome


  }

  //abstract
  public void  deleteElement( int indvID, String key )throws CommunicationException,NamingException
  {
    ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      //call to EJB server
      int elementID = Integer.parseInt(key);
      ContactFacade remote =(ContactFacade)cfh.create();
      remote.setDataSource(this.dataSource);
      remote.deleteMOC(elementID,this.contactId,this.contactType);
      // User-rights for DeleteMOC ?
    }
    catch(AuthorizationFailedException ae){
View Full Code Here


    * @return resultDeleteLog A Collection of the Error Message while deleting a particular record.
    */
  public ArrayList deleteElement(int individualID, String recordID[]) throws CommunicationException,NamingException,RemoteException
  {
    ArrayList resultDeleteLog = new ArrayList();
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      //call to EJB server
      ContactFacade remote =(ContactFacade)contactFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
View Full Code Here

    MethodOfContactVOX mocVOX = new MethodOfContactVOX(form);
    MethodOfContactVO moc = mocVOX.getVO();

    try {
      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);

      int contactId = 0;
      try {
        contactId = Integer.parseInt((String)((DynaActionForm)form).get("recordID"));
View Full Code Here

    try {
      ContactVO contactObject = new ContactVO();
      rowID = request.getParameter("rowId");
      isEntity = (request.getParameter("type") == null) ? false : true;

      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");

      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);
      DynaActionForm dynaForm = (DynaActionForm)form;
      String recordType = "";
      if (isEntity) {
        recordType = "Entity";
View Full Code Here

    String status = returnStatus;
    AddressVOX addressVOX = new AddressVOX(form);
    HttpSession session = request.getSession();
    UserObject userObject = (UserObject)session.getAttribute("userobject");
    int individualID = userObject.getIndividualID();
    ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    try {
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);
      int contactId = 0;
      try {
        contactId = Integer.parseInt((String)((DynaActionForm)form).get("recordID"));
      } catch (NumberFormatException nfe) {
View Full Code Here

    int individualID = userObject.getIndividualID();

    com.centraview.contact.helper.MethodOfContactVOX mocVOX = new MethodOfContactVOX(form);
    com.centraview.contact.helper.MethodOfContactVO moc = mocVOX.getVO();

    ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");

    try {
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);

      int contactId = 0;
      try {
        contactId = Integer.parseInt((String)((DynaActionForm)form).get("recordID"));
View Full Code Here

    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();

    String rowId[] = request.getParameterValues("rowId");

    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");

    try {
      ContactFacade remote = contactFacadeHome.create();
      remote.setDataSource(dataSource);

      for (int i = 0; i < rowId.length; i++) {
        if (rowId[i] != null && !rowId[i].equals("")) {
          int elementId = Integer.parseInt(rowId[i]);
View Full Code Here

  //abstract
  public void  deleteElement( int indvID, String key) throws CommunicationException,NamingException
  {
    int elementID = Integer.parseInt(key);
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      ContactFacade remote =(ContactFacade)contactFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteIndividual( elementID,indvID);
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Individual");
      lg.makeListDirty("Group");
View Full Code Here

    */
  public ArrayList deleteElement(int individualID, String recordID[]) throws CommunicationException,NamingException,RemoteException
  {
    ArrayList resultDeleteLog = new ArrayList();
    this.individualUsers = new ArrayList();
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      //call to EJB server
      ContactFacade remote =(ContactFacade)contactFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
View Full Code Here

    DynaActionForm dynaForm = (DynaActionForm)form;
    int contactID = Integer.parseInt((String)dynaForm.get("ContactID"));
    boolean isEntity = ((String)dynaForm.get("EntityType")).equalsIgnoreCase("TRUE");
    try {
      ContactVO contactObject = new ContactVO();
      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");

      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);

      if (isEntity) {
        EntityVO entityVO = remote.getEntity(contactID);
        contactObject = entityVO;
View Full Code Here

TOP

Related Classes of com.centraview.contact.contactfacade.ContactFacadeHome

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.