Codota Logo
CmsFile.getResourceId
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain CmsFile
private void myMethod () {
CmsFile c =
  • Codota IconCmsObject cms;String resourcename;cms.readFile(resourcename)
  • Codota IconCmsObject cmsObject;String resourcename;CmsResourceFilter filter;cmsObject.readFile(resourcename, filter)
  • Codota IconCmsJspActionElement cmsJspActionElement;String resourcename;cmsJspActionElement.getCmsObject().readFile(resourcename)
  • Smart code suggestions by Codota
}
origin: org.opencms/opencms-core

if (!m_exportedResources.contains(file.getResourceId())) {
  m_exportedResources.add(file.getResourceId());
origin: org.opencms/opencms-solr

if (!m_exportedResources.contains(file.getResourceId())) {
  m_exportedResources.add(file.getResourceId());
origin: org.opencms/opencms-solr

m_vfsDriver.writeContent(dbc, resource.getResourceId(), contents);
origin: org.opencms/opencms-solr

/**
 * 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());
}
origin: org.opencms/opencms-solr

getResourceId(),
getRootPath(),
getTypeId(),
origin: org.opencms/opencms-core

getVfsDriver(dbc).writeContent(dbc, resource.getResourceId(), contents);
origin: org.opencms/opencms-solr

    onlineProject,
    offlineResource.getResourceId(),
    newFile.getResourceId());
} catch (CmsDataAccessException e) {
  if (LOG.isErrorEnabled()) {
origin: org.opencms/opencms-solr

  dbc,
  onlineProject.getUuid(),
  offlineFile.getResourceId())) {
offlineFile.getResourceId(),
offlineFile.getContents(),
publishTag,
origin: org.opencms/opencms-core

    onlineProject,
    offlineResource.getResourceId(),
    newFile.getResourceId());
} catch (CmsDataAccessException e) {
  if (LOG.isErrorEnabled()) {
origin: org.opencms/opencms-core

    onlineProject,
    offlineResource.getResourceId(),
    newFile.getResourceId());
} catch (CmsDataAccessException e) {
  if (LOG.isErrorEnabled()) {
origin: org.opencms/opencms-core

  dbc,
  onlineProject.getUuid(),
  offlineFile.getResourceId())) {
offlineFile.getResourceId(),
offlineFile.getContents(),
publishTag,
origin: org.opencms/opencms-core

  dbc,
  onlineProject.getUuid(),
  offlineFile.getResourceId())) {
offlineFile.getResourceId(),
offlineFile.getContents(),
publishTag,
origin: org.opencms/opencms-core

CmsFile offlineFile = new CmsFile(offlineResource);
offlineFile.setContents(
  vfsDriver.readContent(dbc, dbc.currentProject().getUuid(), offlineFile.getResourceId()));
internalWriteHistory(
  dbc,
origin: org.opencms/opencms-core

    dbc.currentProject(),
    onlineProject,
    newFile.getResourceId(),
    offlineResource.getResourceId());
} catch (CmsDataAccessException e) {
origin: org.opencms/opencms-core

getResourceId(),
getRootPath(),
getTypeId(),
origin: org.opencms/opencms-core

    dbc.currentProject(),
    onlineProject,
    newFile.getResourceId(),
    offlineResource.getResourceId());
} catch (CmsDataAccessException e) {
origin: org.opencms/opencms-solr

    dbc.currentProject(),
    onlineProject,
    newFile.getResourceId(),
    offlineResource.getResourceId());
} catch (CmsDataAccessException e) {
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());
}
origin: org.opencms/opencms-solr

  dbc,
  dbc.currentProject().getUuid(),
  offlineFile.getResourceId()));
internalWriteHistory(dbc, offlineFile, resourceState, null, publishHistoryId, publishTag);
origin: org.opencms/opencms-core

    dbc,
    dbc.currentProject().getUuid(),
    offlineFile.getResourceId()));
internalWriteHistory(dbc, offlineFile, resourceState, null, publishHistoryId, publishTag);
org.opencms.fileCmsFilegetResourceId

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
  • getDateLastModified
  • getFlags
  • getDateLastModified,
  • getFlags,
  • getLength,
  • getProjectLastModified,
  • getState,
  • isFile,
  • isTouched,
  • setDateExpired,
  • setDateReleased

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JFileChooser (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now