Package org.infoglue.cms.applications.common

Examples of org.infoglue.cms.applications.common.VisualFormatter.formatDate()


      List languages = LanguageController.getController().getLanguageList(db);
     
      InfoGlueExportImpl infoGlueExportImpl = new InfoGlueExportImpl();
     
      VisualFormatter visualFormatter = new VisualFormatter();
      String fileName = "Export_contents_" + visualFormatter.formatDate(new Date(), "yyyy-MM-dd") + ".xml";
      String filePath = CmsPropertyHandler.getDigitalAssetPath();
      String fileSystemName =  filePath + File.separator + fileName;
           
      fileUrl = CmsPropertyHandler.getWebServerAddress() + "/" + CmsPropertyHandler.getDigitalAssetBaseUrl() + "/" + fileName;
      this.fileName = fileName;
View Full Code Here


  {
    String timestamp = instancePublicationQueueMeta.get(serverURL + "_manualClearTimestamp");
    if(timestamp != null && !timestamp.equals(""))
    {
      VisualFormatter vf = new VisualFormatter();
      return vf.formatDate(Long.parseLong(timestamp), "yyyy-MM-dd HH:mm:ss");
    }
    else
      return "Never cleared";
  }
View Full Code Here

      List<SiteNodeTypeDefinition> siteNodeTypeDefinitions = SiteNodeTypeDefinitionController.getController().getSiteNodeTypeDefinitionList(db);
     
      InfoGlueExportImpl infoGlueExportImpl = new InfoGlueExportImpl();
     
      VisualFormatter visualFormatter = new VisualFormatter();
      String fileName = "Export_contents_" + visualFormatter.formatDate(new Date(), "yyyy-MM-dd") + ".xml";
      String filePath = CmsPropertyHandler.getDigitalAssetPath();
      String fileSystemName =  filePath + File.separator + fileName;
                 
      String encoding = "UTF-8";
      file = new File(fileSystemName);
View Full Code Here

  {
    Timer t = new Timer();
   
    VisualFormatter visualFormatter = new VisualFormatter();

    String exportId = "Export_" + visualFormatter.formatDate(new Date(), "yyyy-MM-dd_HHmm");
    processBean.setStatus(ProcessBean.RUNNING);
   
    String folderName = CmsPropertyHandler.getDigitalAssetPath() + File.separator + exportId + "Archive";
    File folder = new File(folderName);
    folder.mkdirs();
View Full Code Here

              CacheEvictionBean bean = CacheEvictionBean.getCacheEvictionBean(responseMap);
              if(bean == null)
                throw new Exception("No information found");
             
              VisualFormatter visualFormatter = new VisualFormatter();
              publicationDetails.add(new String[]{"" + deliverUrl, responseMap.get("status"), "" + visualFormatter.formatDate(bean.getProcessedTimestamp(), "yyyy-MM-dd HH:mm:ss")});
            }
          }
        }
        catch(Exception e)
        {
View Full Code Here

      names = new VisualFormatter().replaceNonAscii(names, '_');

      if(repositories.length > 2 || names.length() > 40)
        names = "" + repositories.length + "_repositories";
     
      String fileName = "Export_" + names + "_" + visualFormatter.formatDate(new Date(), "yyyy-MM-dd_HHmm") + ".xml";
      if(exportFileName != null && !exportFileName.equals(""))
        fileName = exportFileName;
     
      String filePath = CmsPropertyHandler.getDigitalAssetPath();
      String fileSystemName =  filePath + File.separator + fileName;
View Full Code Here

      InfoGlueExportImpl infoGlueExportImpl = new InfoGlueExportImpl();
     
      VisualFormatter visualFormatter = new VisualFormatter();
      names = new VisualFormatter().replaceNonAscii(names, '_');

      String fileName = "RepositoryCopy_" + names + "_" + visualFormatter.formatDate(new Date(), "yyyy-MM-dd_HHmm") + ".xml";
     
      String filePath = CmsPropertyHandler.getDigitalAssetPath();
      String fileSystemName =  filePath + File.separator + fileName;
     
      String encoding = "UTF-8";
View Full Code Here

    File file = new File(CmsPropertyHandler.getSQLUpgradePath() + File.separator + "www.infoglue.org.zip");
    if(file == null || !file.exists())
      throw new SystemException("The file upload must have gone bad as no example site was found.");
   
    String exportId = "Import_" + visualFormatter.formatDate(new Date(), "yyyy-MM-dd_HHmm");
    ProcessBean processBean = ProcessBean.createProcessBean(ImportRepositoryAction.class.getName(), exportId);
    try
    {
      OptimizedImportController.importRepositories(file, "false", null, null, processBean);
     
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.