Package com.centraview.file

Examples of com.centraview.file.CvFile


    listParameters.setColumns(columns);
   
    CvFolderVO folder = null;
    try {
      CvFileHome home = (CvFileHome)CVUtility.getHomeObject("com.centraview.file.CvFileHome", "CvFile");
      CvFile remote = (CvFile)home.create();
      remote.setDataSource(dataSource);
      folder = remote.getFolderByName(individualId, 2, "CV_EMPLOYEEHANDBOOK_DEFAULT_FOLDER");
    } catch (Exception e) {
      logger.error("Exception thrown in EmployeeHandbookValueListAction");
      e.printStackTrace();
    }
    int folderID = folder.getFolderId();
View Full Code Here


      SupportFacadeHome supFacade = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = supFacade.create();
      remote.setDataSource(dataSource);
     
      CvFileHome fileHome = (CvFileHome)CVUtility.getHomeObject("com.centraview.file.CvFileHome", "CvFile");
      CvFile remoteFile = fileHome.create();
      remoteFile.setDataSource(dataSource);
     
      FileList fileList = null;
     
      if (tVO.getId() != 0) {
        fileList = remoteFile.getAllTicketFiles(individualID, tVO.getId());
      }
     
      ThreadList threadList = remote.getThreadList(individualID, tVO.getId());
      threadList = setLinksfunction(threadList);
      Vector timeSlipColumns = new Vector();
View Full Code Here

      SupportFacadeHome supFacade = (SupportFacadeHome)CVUtility.getHomeObject("com.centraview.support.supportfacade.SupportFacadeHome", "SupportFacade");
      SupportFacade remote = supFacade.create();
      remote.setDataSource(dataSource);

      CvFileHome fileHome = (CvFileHome)CVUtility.getHomeObject("com.centraview.file.CvFileHome", "CvFile");
      CvFile cvFile = fileHome.create();
      cvFile.setDataSource(dataSource);
      FileList fileList = null;
     
      if (tVO.getId() != 0) {
        fileList = cvFile.getAllTicketFiles(individualId, tVO.getId());
        fileList = setLinksFunction(fileList);
      }

      ThreadList threadList = remote.getThreadList(individualId, tVO.getId());
      threadList = setLinksfunction(threadList);
View Full Code Here

          try {
            CvFileFacade cvf = new CvFileFacade();

            CvFileHome homeFile = (CvFileHome)CVUtility.getHomeObject(
                "com.centraview.file.CvFileHome", "CvFile");
            CvFile remoteFile = homeFile.create();
            remoteFile.setDataSource(dataSource);

            CvFolderVO homeFld = remoteFile.getHomeFolder(individualID);

            int rn = (new Random()).nextInt();
            Calendar c = Calendar.getInstance();
            java.util.Date dt = c.getTime();
            DateFormat df = new SimpleDateFormat("MM_dd_yyyy");
View Full Code Here

  public static File getCentraViewFileSystemRoot(String dataSource)
  {
    File returnFile = null;
    try {
      CvFileHome fileHome = (CvFileHome) getHomeObject("com.centraview.file.CvFileHome", "CvFile");
      CvFile fileRemote = fileHome.create();
      fileRemote.setDataSource(dataSource);
      CvFolderVO rootFolder = fileRemote.getFolder(-13, 1);
      returnFile = new File(rootFolder.getLocationName());
    } catch (Exception e) {
      logger.error("[getCentraViewFileSystemRoot] Exception thrown.", e);
    }
    return returnFile;
View Full Code Here

        HashMap listMap = null;

        try {
          CvFileHome aa = (CvFileHome)CVUtility.getHomeObject("com.centraview.file.CvFileHome",
              "CvFile");
          CvFile remote = (CvFile)aa.create();
          remote.setDataSource(this.dataSource);
          returnDL = remote.getEntityFiles(entityId, userId, hm);
        } catch (Exception e) {
          System.out.println("[Exception] ListGenerator.getEntityFileList: " + e.toString());
          // e.printStackTrace();
        }
View Full Code Here

    hm.put("curFolderID", new Integer(curFolderID));

    try {
      CvFileHome aa = (CvFileHome)CVUtility.getHomeObject("com.centraview.file.CvFileHome",
          "CvFile");
      CvFile remote = (CvFile)aa.create();
      remote.setDataSource(this.dataSource);
      returnDL = remote.getEntityFiles(entityId, userId, hm);
    } catch (Exception e) {
      System.out.println("[Exception] ListGenerator.getEntityFileList: " + e.toString());
      // e.printStackTrace();
    }
View Full Code Here

  {
    ArrayList returnCN = null;
    try {
      CvFileHome aa = (CvFileHome)CVUtility.getHomeObject("com.centraview.file.CvFileHome",
          "CvFile");
      CvFile remote = (CvFile)aa.create();
      remote.setDataSource(this.dataSource);
      returnCN = remote.getCompanyNews();
    } catch (Exception e) {
      logger.error("[getCompanyNews] Exception thrown.", e);
    }
    return returnCN;
  }
View Full Code Here

TOP

Related Classes of com.centraview.file.CvFile

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.