congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CmsFile.getDateLastModified
Code IndexAdd Tabnine to your IDE (free)

How to use
getDateLastModified
method
in
org.opencms.file.CmsFile

Best Java code snippets using org.opencms.file.CmsFile.getDateLastModified (Showing top 10 results out of 315)

origin: org.opencms/opencms-core

/**
 * Writes a single OpenCms VFS file to the ZIP export.<p>
 *
 * @param file the OpenCms VFS file to write
 * @param name the name of the file in the export
 *
 * @throws IOException in case of file access issues
 */
protected void writeFile2Zip(CmsFile file, String name) throws IOException {
  ZipEntry entry = new ZipEntry(name);
  // save the time of the last modification in the zip
  entry.setTime(file.getDateLastModified());
  m_exportZipStream.putNextEntry(entry);
  m_exportZipStream.write(file.getContents());
  m_exportZipStream.closeEntry();
}
origin: org.opencms/opencms-solr

/**
 * Writes a single OpenCms VFS file to the ZIP export.<p>
 * 
 * @param file the OpenCms VFS file to write 
 * @param name the name of the file in the export
 * 
 * @throws IOException in case of file access issues
 */
protected void writeFile2Zip(CmsFile file, String name) throws IOException {
  ZipEntry entry = new ZipEntry(name);
  // save the time of the last modification in the zip
  entry.setTime(file.getDateLastModified());
  m_exportZipStream.putNextEntry(entry);
  m_exportZipStream.write(file.getContents());
  m_exportZipStream.closeEntry();
}
origin: org.opencms/opencms-solr

} else {
  res.setDateHeader(CmsRequestUtil.HEADER_LAST_MODIFIED, file.getDateLastModified());
origin: org.opencms/opencms-core

} else {
  res.setDateHeader(CmsRequestUtil.HEADER_LAST_MODIFIED, file.getDateLastModified());
origin: org.opencms/opencms-core

CmsFile file = cms.readFile(resName);
file.setDateLastModified(file.getDateLastModified());
origin: org.opencms/opencms-core

CmsFile file = cms.readFile(resName);
file.setDateLastModified(file.getDateLastModified());
origin: org.opencms/opencms-core

getDateCreated(),
getUserCreated(),
getDateLastModified(),
getUserLastModified(),
getDateReleased(),
clone.setDateLastModified(getDateLastModified());
origin: org.opencms/opencms-solr

clone.setDateLastModified(getDateLastModified());
origin: org.opencms/opencms-solr

CmsFile file = getCms().readFile(resName);
file.setDateLastModified(file.getDateLastModified());
origin: org.opencms/opencms-core

/**
 * Returns the virtual resource as a file.<p>
 *
 * @return the virtual resource as a file
 */
public CmsFile getFile() {
  if (m_base instanceof CmsFile) {
    CmsFile file = (CmsFile)m_base;
    return new CmsFile(
      file.getStructureId(),
      file.getResourceId(),
      m_rootPath,
      m_typeId,
      file.getFlags(),
      file.getProjectLastModified(),
      file.getState(),
      file.getDateCreated(),
      file.getUserCreated(),
      file.getDateLastModified(),
      file.getUserLastModified(),
      file.getDateReleased(),
      file.getDateExpired(),
      file.getSiblingCount(),
      file.getLength(),
      file.getDateContent(),
      file.getVersion(),
      file.getContents());
  }
  return new CmsFile(getResource());
}
org.opencms.fileCmsFilegetDateLastModified

Popular methods of CmsFile

  • getContents
    Returns the content of this file.
  • setContents
    Sets the contents of this file. This will also set the date content, but only if the content is alre
  • getName
  • getRootPath
  • getTypeId
  • getStructureId
  • setDateLastModified
  • <init>
  • clone
    Returns a clone of this Objects instance.
  • getDateCreated
  • getFlags
  • getLength
  • getFlags,
  • getLength,
  • getProjectLastModified,
  • getResourceId,
  • getState,
  • isFile,
  • isTouched,
  • setDateExpired,
  • setDateReleased

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JFileChooser (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now