Examples of CvAttic


Examples of com.centraview.cvattic.CvAttic

    CvAtticHome cvAtticHome =(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      //call to EJB server
      CvAttic remote=(CvAttic)cvAtticHome.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]);
          remote.delete(individualID,elementID,Constants.CV_ATTIC);
        }//end of if(recordID[i] != null && !recordID[i].equals(""))
      }//end of for (int i=0; i<rowId.length; i++)
      // User-rights for DeleteMOC ?
    }//end of try
    catch( CreateException e )
View Full Code Here

Examples of com.centraview.cvattic.CvAttic

  {
    int elementID = Integer.parseInt(key);
    CvAtticHome cvAtticHome =(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      CvAttic remote=(CvAttic)cvAtticHome.create();
      remote.setDataSource(this.dataSource);
      remote.delete(indvID,elementID,Constants.CV_ATTIC);
    }
    catch(Exception e)
    {
      logger.error("[Exception] AtticList.deleteElement( int indvID, String key )", e);
    }
View Full Code Here

Examples of com.centraview.cvattic.CvAttic

  {
    int elementID = Integer.parseInt(key);

    try {
      CvAtticHome home=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");//call to FaqEJB
      CvAttic admin=(CvAttic)home.create();
      admin.setDataSource(this.dataSource);

      admin.restore(1,elementID,Constants.CV_ATTIC);
      // TODO the restore method needs to take the invidualID and pass it on, fubar user-rights
    }
    catch(Exception e)
    {
      System.out.println("[Exception][AtticList.restoreElement] Exception Thrown: "+e);
View Full Code Here

Examples of com.centraview.cvattic.CvAttic

    UserObject user = (UserObject)session.getAttribute("userobject"); //get the user object
    int individualId = user.getIndividualID();

    String rowId[] = request.getParameterValues("rowId");
   
    CvAttic remote = null;
    try {
      remote = (CvAttic)CVUtility.setupEJB("CvAttic", "com.centraview.cvattic.CvAtticHome", dataSource);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown: ", e);
      throw new ServletException(e);
    }


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

          try {
            logger.debug("Moving attic record with recordId = [" + elementId + "] back to Garbage...");
            remote.delete(individualId, elementId, Constants.CV_ATTIC);
            logger.debug("...attic record moved.");           
          } catch (Exception e) {
            logger.error("Exception thrown: ", e);
          }
       }
View Full Code Here

Examples of com.centraview.cvattic.CvAttic

    String rowId[] = request.getParameterValues("rowId");
   
  CvAtticHome cvAtticHome=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      CvAttic remote=(CvAttic)cvAtticHome.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]);
          remote.delete(individualId, elementId,Constants.CV_GARBAGE);
        }
      }
    } catch(CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new CommunicationException(e.getMessage());
View Full Code Here

Examples of com.centraview.cvattic.CvAttic

  {
    int elementID = Integer.parseInt(key);
    CvAtticHome cvAtticHome=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      CvAttic remote=(CvAttic)cvAtticHome.create();
      remote.setDataSource(this.dataSource);
      remote.delete(indvID,elementID,Constants.CV_GARBAGE);
    }
    catch(Exception e) {
      logger.error("[Exception] GarbageList.deleteElement( int indvID, String key )", e);
    }
  }
View Full Code Here

Examples of com.centraview.cvattic.CvAttic

    ArrayList resultDeleteLog = new ArrayList();
    CvAtticHome cvAtticHome=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      //call to EJB server
      CvAttic remote=(CvAttic)cvAtticHome.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]);
          remote.delete(individualID,elementID,Constants.CV_GARBAGE);
        }//end of if(recordID[i] != null && !recordID[i].equals(""))
      }//end of for (int i=0; i<recordID.length; i++)
    }//end of try block
    catch( CreateException e )
    {
View Full Code Here

Examples of com.centraview.cvattic.CvAttic

    int elementID = Integer.parseInt(key);

    try
    {
      CvAtticHome home=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");//call to FaqEJB
      CvAttic admin=(CvAttic)home.create();
      admin.setDataSource(this.dataSource);
      admin.restore(1,elementID,Constants.CV_GARBAGE);
      //TODO fix user rights on restore!
    }
    catch(Exception e)
    {
      System.out.println("[Exception][GarbageList.restoreElement] Exception Thrown: "+e);
View Full Code Here

Examples of com.centraview.cvattic.CvAttic

    int elementID = Integer.parseInt(key);

    try
    {
      CvAtticHome home=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");//call to FaqEJB
      CvAttic admin=(CvAttic)home.create();
      admin.setDataSource(this.dataSource);

      admin.moveToAttic(1,elementID);
      //TODO fix user rights on movetoattic.
    }
    catch(Exception e) {
      System.out.println("[Exception][GarbageList.moveToAttic] Exception Thrown: "+e);
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.