- Common ways to obtain CmsFile
private void myMethod () {CmsFile c =
CmsObject cms;String resourcename;cms.readFile(resourcename)
CmsObject cmsObject;String resourcename;CmsResourceFilter filter;cmsObject.readFile(resourcename, filter)
CmsJspActionElement cmsJspActionElement;String resourcename;cmsJspActionElement.getCmsObject().readFile(resourcename)
- Smart code suggestions by Codota
}
if (!file.getState().isDeleted() && !CmsWorkplace.isTemporaryFile(file)) { if (checkExportResource(fileName)) { if (m_parameters.isRecursive()) {
if (!file.getState().isDeleted() && !CmsWorkplace.isTemporaryFile(file)) { if (checkExportResource(fileName)) { if (m_parameters.isRecursive()) {
/** * 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()); }
getFlags(), getProjectLastModified(), getState(), getDateCreated(), getUserCreated(),
getFlags(), getProjectLastModified(), getState(), getDateCreated(), getUserCreated(),
/** * 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()); }
if (!offlineFile.getState().isNew()) { createSibling = false; } else {
if (!offlineFile.getState().isNew()) { createSibling = false; } else {
if (!offlineFile.getState().isNew()) { createSibling = false; } else {