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

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

Best Java code snippets using org.opencms.file.CmsFile.getState (Showing top 9 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 (!file.getState().isDeleted() && !CmsWorkplace.isTemporaryFile(file)) {
  if (checkExportResource(fileName)) {
    if (m_parameters.isRecursive()) {
origin: org.opencms/opencms-solr

if (!file.getState().isDeleted() && !CmsWorkplace.isTemporaryFile(file)) {
  if (checkExportResource(fileName)) {
    if (m_parameters.isRecursive()) {
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

getFlags(),
getProjectLastModified(),
getState(),
getDateCreated(),
getUserCreated(),
origin: org.opencms/opencms-core

getFlags(),
getProjectLastModified(),
getState(),
getDateCreated(),
getUserCreated(),
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

if (!offlineFile.getState().isNew()) {
  createSibling = false;
} else {
origin: org.opencms/opencms-core

if (!offlineFile.getState().isNew()) {
  createSibling = false;
} else {
origin: org.opencms/opencms-core

if (!offlineFile.getState().isNew()) {
  createSibling = false;
} else {
org.opencms.fileCmsFilegetState

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,
  • getResourceId,
  • isFile,
  • isTouched,
  • setDateExpired,
  • setDateReleased

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
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