Package com.centraview.file

Examples of com.centraview.file.CvFileLocal


   

    try {
      InitialContext ic = new InitialContext();
      CvFileLocalHome home = (CvFileLocalHome)ic.lookup("local/CvFile");
      CvFileLocal remote =  home.create();
      remote.setDataSource(this.dataSource);

      CvFolderVO homeFolderVO = remote.getHomeFolder(individualID);

      try {
        attachmentFolderVO = remote.getFolderByName(individualID, homeFolderVO.getFolderId(), CvFolderVO.EMAIL_ATTACHMENT_FOLDER);
      }catch(CvFileException cfe){
        //If the Attachment folder is not created, create it.
        int newFolderID = this.createAttachmentFolder(individualID);
        attachmentFolderVO = remote.getFolder(individualID, newFolderID);
      }
    }catch(Exception e){
      System.out.println("[Exception][MailEJB] getAttachmentFolder(int): " + e);
      //e.printStackTrace();
    }
View Full Code Here


        }

        try {
          CvFileFacade cvf = new CvFileFacade();
          CvFileLocalHome homeFile = (CvFileLocalHome) ic.lookup("local/CvFile");
          CvFileLocal remoteFile = (CvFileLocal) homeFile.create();
          remoteFile.setDataSource(this.dataSource);

          CvFolderVO homeFld = remoteFile.getHomeFolder(indvID);

          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

                }
                break;
              case ActivityVO.ACTIVITY_LINK_FILE : // File
                try {
                  CvFileLocalHome fh = (CvFileLocalHome)ic.lookup("local/CvFile");
                  CvFileLocal fr = fh.create();
                  fr.setDataSource(this.dataSource);
                  CvFileVO flvo = fr.getFileBasic(gbUserId, linkId);
                  app.setAttachmentVec(flvo);
                } catch (Exception e) {
                  logger.error("[Exception] ActivityHelperEJB.getActivityLink: ", e);
                }
                break;
View Full Code Here

TOP

Related Classes of com.centraview.file.CvFileLocal

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.