Examples of FileList


Examples of com.centraview.file.FileList

   * @return
   */
  public FileList getEmployeeHandbookList(int userid, int folderID, DisplayList DLparam)
  {

    FileList returnDL = null;
    FileList paramDL = (FileList)DLparam;

    int listSize = paramDL.getTotalNoOfRecords();
    int startAT = paramDL.getStartAT();
    int EndAt = paramDL.getEndAT();

    String powerString = paramDL.getPowerString();
    String searchString = paramDL.getSearchString();
    String sortColumn = paramDL.getSortMember();
    String fileTypeRequest = paramDL.getFileTypeRequest();

    boolean SystemIncludeFlag = paramDL.getSystemIncludeFlag();

    int curFolderID = paramDL.getCurrentFolderID();

    HashMap hm = new HashMap();
    hm.put("startATparam", new Integer(Math.max(startAT - 100, 1)));
    hm.put("EndAtparam", new Integer(Math.min(EndAt + 100, listSize)));
    hm.put("searchString", searchString);
    hm.put("sortmem", paramDL.getSortMember());
    hm.put("sortType", new Character(paramDL.getSortType()));
    hm.put("fileTypeRequest", fileTypeRequest); // all my
    hm.put("SystemIncludeFlag", new Boolean(SystemIncludeFlag));
    hm.put("curFolderID", new Integer(curFolderID));
    try {

      CvFileFacade cvFFacacde = new CvFileFacade();

      returnDL = cvFFacacde.getAllFiles(userid, hm, this.dataSource);

    } catch (Exception e) {
      System.out.println("[Exception][MarketingListEJB] Exception thrown in x: " + e);
    }

    returnDL.setFileTypeRequest(fileTypeRequest);
    returnDL.setListType("EmployeeHandbook");
    returnDL.setPrimaryTable("employeehandbook");
    returnDL.setListID(paramDL.getListID());
    returnDL.setStartAT(paramDL.getStartAT());
    returnDL.setEndAT(paramDL.getEndAT());
    returnDL.setSortType(paramDL.getSortType());
    returnDL.setSearchString(searchString);

    returnDL.setPowerString(powerString);

    returnDL.setSystemIncludeFlag(SystemIncludeFlag);
View Full Code Here

Examples of com.centraview.file.FileList

  public FileList getCustomerFileList(int userID, int startATparam, int EndAtparam,
      String searchString, String sortColumn, String fileTypeRequest, int folderID,
      boolean SystemIncludeFlag)
  {
    if ((searchString != null) && ((searchString.trim()).length() > 0)) {
      FileList dl = new FileList();
      dl.setStartAT(startATparam);
      dl.setEndAT(EndAtparam);
      dl.setSortMember(sortColumn);
      dl.setSortType('A');
      dl.setSearchString(searchString);
      dl.setListType("File");
      dl.setSystemIncludeFlag(SystemIncludeFlag);
      dl.setCurrentFolderID(folderID);
      dl.setFileTypeRequest(fileTypeRequest);

      long currentListID = this.getNextListID();
      dl.setListID(currentListID);

      displayLists.put(new Long(currentListID), dl);

      return this.getFileList(userID, folderID, dl);

    } else {
      FileList returnDL = null;
      try {
        HashMap hm = new HashMap();
        hm.put("startATparam", new Integer(startATparam));
        hm.put("EndAtparam", new Integer(EndAtparam));
        hm.put("searchString", searchString);
        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('A'));
        hm.put("fileTypeRequest", fileTypeRequest);
        hm.put("curFolderID", new Integer(folderID));

        hm.put("SystemIncludeFlag", new Boolean(SystemIncludeFlag));

        HashMap listMap = null;

        CvFileFacade cvFFacacde = new CvFileFacade();

        try {
          returnDL = cvFFacacde.getAllCustomerFiles(userID, hm, this.dataSource);
        } catch (Exception e) {
          System.out.println("[Exception][MarketingListEJB] Exception thrown in x: " + e);
        }

        returnDL.setFileTypeRequest(fileTypeRequest);
        returnDL.setSystemIncludeFlag(SystemIncludeFlag);
        returnDL.setListType("File");
        returnDL.setTotalNoOfRecords(returnDL.size());
        returnDL.setCurrentFolderID(folderID);

        long currentListID = this.getNextListID();
        returnDL.setListID(currentListID);
        returnDL.setStartAT(startATparam);
        returnDL.setEndAT(EndAtparam);

        FileList emptyDL = createEmptyObject(returnDL);
        emptyDL.setTotalNoOfRecords(returnDL.getTotalNoOfRecords());
        emptyDL.setListID(currentListID);
        emptyDL.setListType("File");
        emptyDL.setStartAT(returnDL.getStartAT());
        emptyDL.setEndAT(returnDL.getEndAT());
        emptyDL.setFileTypeRequest(fileTypeRequest);
        emptyDL.setSystemIncludeFlag(SystemIncludeFlag);
        emptyDL.setCurrentFolderID(folderID);

        displayLists.put(new Long(currentListID), emptyDL);
      } catch (Exception e) {
        System.out.println("[Exception][MarketingListEJB] Exception thrown in x: " + e);
        e.printStackTrace();
View Full Code Here

Examples of com.centraview.file.FileList

      String searchString, String sortColumn, String fileTypeRequest, int folderID,
      boolean SystemIncludeFlag)
  {
    if ((searchString != null) && ((searchString.trim()).length() > 0)) {

      FileList dl = new FileList();
      dl.setStartAT(startATparam);
      dl.setEndAT(EndAtparam);
      dl.setSortMember(sortColumn);
      dl.setSortType('A');
      dl.setSearchString(searchString);
      dl.setListType("File");
      dl.setSystemIncludeFlag(SystemIncludeFlag);
      dl.setCurrentFolderID(folderID);
      dl.setFileTypeRequest(fileTypeRequest);

      long currentListID = this.getNextListID();
      dl.setListID(currentListID);

      displayLists.put(new Long(currentListID), dl);

      return this.getEntityFileList(entityId, userId, folderID, dl);
      // return dl;

    } else {
      FileList returnDL = null;
      try {
        HashMap hm = new HashMap();
        hm.put("startATparam", new Integer(startATparam));
        hm.put("EndAtparam", new Integer(EndAtparam));
        hm.put("searchString", searchString);
        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('A'));
        hm.put("fileTypeRequest", fileTypeRequest);
        hm.put("curFolderID", new Integer(folderID));

        hm.put("SystemIncludeFlag", new Boolean(SystemIncludeFlag));

        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();
        }

        returnDL.setFileTypeRequest(fileTypeRequest);
        returnDL.setSystemIncludeFlag(SystemIncludeFlag);
        returnDL.setListType("File");
        returnDL.setTotalNoOfRecords(returnDL.size());
        returnDL.setCurrentFolderID(folderID);

        long currentListID = this.getNextListID();
        returnDL.setListID(currentListID);
        returnDL.setStartAT(startATparam);
        returnDL.setEndAT(EndAtparam);

        FileList emptyDL = createEmptyObject(returnDL);
        emptyDL.setTotalNoOfRecords(returnDL.getTotalNoOfRecords());
        emptyDL.setListID(currentListID);
        emptyDL.setListType("File");
        emptyDL.setStartAT(returnDL.getStartAT());
        emptyDL.setEndAT(returnDL.getEndAT());
        emptyDL.setFileTypeRequest(fileTypeRequest);
        emptyDL.setSystemIncludeFlag(SystemIncludeFlag);
        emptyDL.setCurrentFolderID(folderID);

        displayLists.put(new Long(currentListID), emptyDL);
      } catch (Exception e) {
        System.out.println("[Exception][MarketingListEJB] Exception thrown in x: " + e);
        e.printStackTrace();
View Full Code Here

Examples of com.centraview.file.FileList

  public FileList getFileList(int userID, int startATparam, int EndAtparam, String searchString,
      String sortColumn, String fileTypeRequest, int folderID, boolean SystemIncludeFlag)
  {
    if ((searchString != null) && ((searchString.trim()).length() > 0)) {
      FileList dl = new FileList();
      dl.setStartAT(startATparam);
      dl.setEndAT(EndAtparam);
      dl.setSortMember(sortColumn);
      dl.setSortType('A');
      dl.setSearchString(searchString);
      dl.setListType("File");
      dl.setSystemIncludeFlag(SystemIncludeFlag);
      dl.setCurrentFolderID(folderID);
      dl.setFileTypeRequest(fileTypeRequest);

      long currentListID = this.getNextListID();
      dl.setListID(currentListID);

      displayLists.put(new Long(currentListID), dl);

      return this.getFileList(userID, folderID, dl);

    } else {
      FileList returnDL = null;
      try {
        HashMap hm = new HashMap();
        hm.put("startATparam", new Integer(startATparam));
        hm.put("EndAtparam", new Integer(EndAtparam));
        hm.put("searchString", searchString);
        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('A'));
        hm.put("fileTypeRequest", fileTypeRequest);
        hm.put("curFolderID", new Integer(folderID));

        hm.put("SystemIncludeFlag", new Boolean(SystemIncludeFlag));

        HashMap listMap = null;

        CvFileFacade cvFFacacde = new CvFileFacade();

        try {
          returnDL = cvFFacacde.getAllFiles(userID, hm, this.dataSource);
        } catch (Exception e) {
          System.out.println("[Exception][ListGenerator.getFileList] Exception Thrown: " + e);
        }

        returnDL.setFileTypeRequest(fileTypeRequest);
        returnDL.setSystemIncludeFlag(SystemIncludeFlag);
        returnDL.setListType("File");
        returnDL.setTotalNoOfRecords(returnDL.size());
        returnDL.setCurrentFolderID(folderID);

        long currentListID = this.getNextListID();
        returnDL.setListID(currentListID);
        returnDL.setStartAT(startATparam);
        returnDL.setEndAT(EndAtparam);

        FileList emptyDL = createEmptyObject(returnDL);
        emptyDL.setTotalNoOfRecords(returnDL.getTotalNoOfRecords());
        emptyDL.setListID(currentListID);
        emptyDL.setListType("File");
        emptyDL.setStartAT(returnDL.getStartAT());
        emptyDL.setEndAT(returnDL.getEndAT());
        emptyDL.setFileTypeRequest(fileTypeRequest);
        emptyDL.setSystemIncludeFlag(SystemIncludeFlag);
        emptyDL.setCurrentFolderID(folderID);

        displayLists.put(new Long(currentListID), emptyDL);
      } catch (Exception e) {
        System.out.println("[Exception][ListGenerator.getFileList] Exception Thrown: " + e);
        e.printStackTrace();
View Full Code Here

Examples of com.google.api.services.drive.model.FileList

        File testFile = uploadTestFile();
        String fileId = testFile.getId();

        assertMockEndpointsSatisfied();
       
        FileList fileList = mock.getReceivedExchanges().get(0).getIn().getBody(com.google.api.services.drive.model.FileList.class);
        assertTrue(fileInList(fileId, fileList));
       
    }
View Full Code Here

Examples of com.mucommander.ui.list.FileList

     */
    protected AsyncPanel createFileDetailsPanel() {
        return new AsyncPanel() {
            @Override
            public JComponent getTargetComponent() {
                FileList fileList = new FileList(files, true);
                fileList.setVisibleRowCount(NB_FILE_DETAILS_ROWS);

                return new JScrollPane(fileList, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
            }
        };
    }
View Full Code Here

Examples of de.chris_soft.utilities.swing.FileList

   */
  public MultiPdfZapper() {
    xPanel.setLayout(new BorderLayout(2, 2));
    pdfThumbnailZapper = new PdfThumbnailZapper();
    xPanel.add(BorderLayout.CENTER, pdfThumbnailZapper.getComponent());
    pdfList = new FileList();
    xPanel.add(BorderLayout.WEST, pdfList.getComponent());
    pdfList.addListSelectionListener(this);
  }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.FileList

                    CancelOption.DO_NOT_NOTIFY_PEER);
            try {
                String projectID = this.getSarosSession()
                    .getProjectID(iProject);
                String projectName = iProject.getName();
                FileList projectFileList = FileListFactory.createFileList(
                    iProject,
                    this.getSarosSession().getSharedResources(iProject), this
                        .getSarosSession().useVersionControl(), subMonitor
                        .newChild(0));
                projectFileList.setProjectID(projectID);
                boolean partial = !this.getSarosSession().isCompletelyShared(
                    iProject);

                ProjectExchangeInfo pInfo = new ProjectExchangeInfo(projectID,
                    "", projectName, partial, projectFileList); //$NON-NLS-1$
View Full Code Here

Examples of de.fu_berlin.inf.dpp.FileList

            }
            checkCancellation();

            log.debug("compute required Files for project " + projectName
                + " with ID: " + projectID);
            FileList requiredFiles = computeRequiredFiles(localProject,
                projectInfo.getFileList(), projectID, skipSyncs.get(projectID)
                    .booleanValue(), vcs, lMonitor.newChild(30));
            requiredFiles.setProjectID(projectID);
            checkCancellation();
            missingFiles.add(requiredFiles);
            lMonitor.done();
        }
        return missingFiles;
View Full Code Here

Examples of de.fu_berlin.inf.dpp.FileList

    private IProject assignLocalProject(final IProject baseProject,
        final String newProjectName, String projectID, final VCSAdapter vcs,
        final SubMonitor monitor, ProjectExchangeInfo projectInfo)
        throws LocalCancellationException {
        IProject newLocalProject = baseProject;
        FileList remoteFileList = projectInfo.getFileList();
        // if the baseProject already exists
        if (newLocalProject != null) {
            if (newLocalProject.getName().equals(newProjectName)) {
                // TODO the project could be managed by a different Team
                // provider
                if (vcs != null && !vcs.isManaged(newLocalProject)
                    && !projectInfo.isPartial()) {
                    String repositoryRoot = remoteFileList.getRepositoryRoot();
                    final String url = remoteFileList.getProjectInfo().url;
                    String directory = url.substring(repositoryRoot.length());
                    vcs.connect(newLocalProject, repositoryRoot, directory,
                        monitor);
                }
            }
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.