Package com.centraview.cvattic

Examples of com.centraview.cvattic.CvAtticHome.create()


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


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

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

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

  {
    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

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

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

    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.
    }
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.