Examples of formatDate()


Examples of org.drools.guvnor.server.util.TableDisplayHandler.formatDate()

    @Test
    @Deprecated
    public void testDateFormatting() throws Exception {
        Calendar cal = Calendar.getInstance();
        TableDisplayHandler handler = new TableDisplayHandler( ExplorerNodeConfig.RULE_LIST_TABLE_ID );
        String fmt = handler.formatDate( cal );
        assertNotNull( fmt );

        assertTrue( fmt.length() > 8 );
    }
View Full Code Here

Examples of org.drools.guvnor.server.util.TableDisplayHandler.formatDate()

    @Test
    @Deprecated
    public void testDateFormatting() throws Exception {
        Calendar cal = Calendar.getInstance();
        TableDisplayHandler handler = new TableDisplayHandler( ExplorerNodeConfig.RULE_LIST_TABLE_ID );
        String fmt = handler.formatDate( cal );
        assertNotNull( fmt );

        assertTrue( fmt.length() > 8 );
    }
View Full Code Here

Examples of org.drools.guvnor.server.util.TableDisplayHandler.formatDate()

    @Test
    @Deprecated
    public void testDateFormatting() throws Exception {
        Calendar cal = Calendar.getInstance();
        TableDisplayHandler handler = new TableDisplayHandler( ExplorerNodeConfig.RULE_LIST_TABLE_ID );
        String fmt = handler.formatDate( cal );
        assertNotNull( fmt );

        assertTrue( fmt.length() > 8 );
    }
View Full Code Here

Examples of org.drools.guvnor.server.util.TableDisplayHandler.formatDate()

    @Test
    @Deprecated
    public void testDateFormatting() throws Exception {
        Calendar cal = Calendar.getInstance();
        TableDisplayHandler handler = new TableDisplayHandler( ExplorerNodeConfig.RULE_LIST_TABLE_ID );
        String fmt = handler.formatDate( cal );
        assertNotNull( fmt );

        assertTrue( fmt.length() > 8 );
    }
View Full Code Here

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

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

  {
    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

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

      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

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

  {
    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

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

              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

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

      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
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.