Examples of FileCleaner


Examples of org.apache.wicket.util.file.FileCleaner

    getPageSettings().addComponentResolver(new AutoLabelTextResolver());

    // Set resource finder to web app path
    getResourceSettings().setResourceFinder(getResourceFinder());

    getResourceSettings().setFileCleaner(new FileCleaner());

    // Add optional sourceFolder for resources.
    String resourceFolder = getInitParameter("sourceFolder");
    if (resourceFolder != null)
    {
View Full Code Here

Examples of org.apache.wicket.util.file.FileCleaner

            return;
        }
        try {

            ServletFileUpload upload = new ServletFileUpload(
                    new DiskFileItemFactory(new FileCleaner()));
            List<FileItem> items = upload.parseRequest(req);

            for (FileItem item : items) {

                if (Utils.isBlank(item.getName()))
View Full Code Here

Examples of org.apache.wicket.util.file.FileCleaner

    // Add resolver for automatically resolving HTML links
    getPageSettings().addComponentResolver(new AutoLinkResolver());
    getPageSettings().addComponentResolver(new AutoLabelResolver());
    getPageSettings().addComponentResolver(new AutoLabelTextResolver());

    getResourceSettings().setFileCleaner(new FileCleaner());

    if (getConfigurationType() == RuntimeConfigurationType.DEVELOPMENT)
    {
      // Add optional sourceFolder for resources.
      String resourceFolder = getInitParameter("sourceFolder");
View Full Code Here

Examples of org.apache.wicket.util.file.FileCleaner

    // Add resolver for automatically resolving HTML links
    getPageSettings().addComponentResolver(new AutoLinkResolver());
    getPageSettings().addComponentResolver(new AutoLabelResolver());
    getPageSettings().addComponentResolver(new AutoLabelTextResolver());

    getResourceSettings().setFileCleaner(new FileCleaner());

    if (getConfigurationType() == RuntimeConfigurationType.DEVELOPMENT)
    {
      // Add optional sourceFolder for resources.
      String resourceFolder = getInitParameter("sourceFolder");
View Full Code Here

Examples of org.apache.wicket.util.file.FileCleaner

    // Add resolver for automatically resolving HTML links
    getPageSettings().addComponentResolver(new AutoLinkResolver());
    getPageSettings().addComponentResolver(new AutoLabelResolver());
    getPageSettings().addComponentResolver(new AutoLabelTextResolver());

    getResourceSettings().setFileCleaner(new FileCleaner());

    if (getConfigurationType() == RuntimeConfigurationType.DEVELOPMENT)
    {
      // Add optional sourceFolder for resources.
      String resourceFolder = getInitParameter("sourceFolder");
View Full Code Here

Examples of org.apache.wicket.util.file.FileCleaner

    getPageSettings().addComponentResolver(new AutoLabelTextResolver());

    // Set resource finder to web app path
    getResourceSettings().setResourceFinder(getResourceFinder());

    getResourceSettings().setFileCleaner(new FileCleaner());

    // Add optional sourceFolder for resources.
    String resourceFolder = getInitParameter("sourceFolder");
    if (resourceFolder != null)
    {
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.io.FileCleaner

   {
      WorkspaceContainerFacade workspaceContainer =
         repoService.getRepository(repositoryName).getWorkspaceContainer(workspaceName);
      WorkspacePersistentDataManager dataManager =
         (WorkspacePersistentDataManager)workspaceContainer.getComponent(WorkspacePersistentDataManager.class);
      FileCleaner fileCleaner =
         ((FileCleanerHolder)workspaceContainer.getComponent(FileCleanerHolder.class)).getFileCleaner();
      JCRRestore restorer = new JCRRestore(dataManager, fileCleaner);
      restorer.incrementalRestore(new File(pathBackupFile));
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.io.FileCleaner

                        wconf.getContainer().getParameterInteger(WorkspaceDataContainer.MAXBUFFERSIZE_PROP,
                           WorkspaceDataContainer.DEF_MAXBUFFERSIZE);

                     FileCleanerHolder wfcleaner =
                        (FileCleanerHolder)wsFacade.getComponent(FileCleanerHolder.class);
                     FileCleaner fileCleaner = wfcleaner.getFileCleaner();

                     // create the RecoveryManager
                     RecoveryManager recoveryManager =
                        new RecoveryManager(dir, ownName, systemId, participantsClusterList, waitConfirmation,
                           jcrRepository.getName(), workspaces[wIndex], channelManager, fileCleaner, maxBufferSize,
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.io.FileCleaner

    */
   public WorkspaceDataTransmitter(CacheableWorkspaceDataManager dataManager) throws RepositoryConfigurationException
   {
      dataManager.addItemPersistenceListener(this);
      // need to use FileCleaner from FileCleanerHolder
      this.fileCleaner = new FileCleaner(ReplicationService.FILE_CLEANRE_TIMEOUT);
   }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.io.FileCleaner

    * @throws RepositoryConfigurationException
    *           will be generated the RepositoryConfigurationException
    */
   public AbstractWorkspaceDataReceiver() throws RepositoryConfigurationException
   {
      this.fileCleaner = new FileCleaner(ReplicationService.FILE_CLEANRE_TIMEOUT);
      mapPendingBinaryFile = new HashMap<String, PendingBinaryFile>();

      state = INIT_MODE;
   }
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.