Tabnine Logo
CmsFile.getName
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.opencms/opencms-core

/**
 * @see org.opencms.file.CmsResource#isTemporaryFile()
 */
@Override
public boolean isTemporaryFile() {
  return ((getFlags() & CmsResource.FLAG_TEMPFILE) > 0) || isTemporaryFileName(getName());
}
origin: org.opencms/opencms-core

/**
 * Creates a new data source for the given VFS resource.<p>
 *
 * @param cms the current users OpenCms context
 * @param resource the resource to use
 *
 * @throws CmsException in case of errors accessing the resource in the VFS
 */
public CmsVfsDataSource(CmsObject cms, CmsResource resource)
throws CmsException {
  m_file = cms.readFile(resource);
  // identify the mime-type for the data source
  m_contentType = OpenCms.getResourceManager().getMimeType(
    m_file.getName(),
    cms.getRequestContext().getEncoding());
}
origin: org.opencms/opencms-solr

title = templateFile.getName();
origin: org.opencms/opencms-solr

/**
 * Creates a new data source for the given VFS resource.<p>
 * 
 * @param cms the current users OpenCms context
 * @param resource the resource to use
 * 
 * @throws CmsException in case of errors accessing the resource in the VFS
 */
public CmsVfsDataSource(CmsObject cms, CmsResource resource)
throws CmsException {
  m_file = cms.readFile(resource);
  // identify the mime-type for the data source
  m_contentType = OpenCms.getResourceManager().getMimeType(
    m_file.getName(),
    cms.getRequestContext().getEncoding());
}
origin: org.opencms/org.opencms.workplace

title = templateFile.getName();
origin: org.opencms.modules/org.opencms.frontend.templateone.form

m_macroResolver.setResourceName(file.getName());
origin: org.opencms/opencms-solr

} else {
  file = cms.readFile(OpenCms.initResource(cms, vfsName, req, wrapRes));
  if (cms.existsResource(vfsName + file.getName())) {
    vfsName = vfsName + file.getName();
    file.getName(),
    cms.getRequestContext().getEncoding());
  if (wrapRes != null) {
origin: org.opencms/opencms-core

  + "_"
  + System.currentTimeMillis()
  + getSuffix(tempFile.getName());
CmsObject adminCms = OpenCms.initCmsObject(m_adminCms);
CmsProject tempProject = adminCms.createTempfileProject();
origin: org.opencms/opencms-core

  file.getName(),
  exportCms.getRequestContext().getEncoding());
if (wrapRes != null) {
org.opencms.fileCmsFilegetName

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
  • getRootPath
  • getTypeId
  • getStructureId
  • setDateLastModified
  • <init>
  • clone
    Returns a clone of this Objects instance.
  • getDateCreated
  • getDateLastModified
  • getFlags
  • getLength
  • getFlags,
  • getLength,
  • getProjectLastModified,
  • getResourceId,
  • getState,
  • isFile,
  • isTouched,
  • setDateExpired,
  • setDateReleased

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Permission (java.security)
    Legacy security code; do not use.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JOptionPane (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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