/** * Creates a temporary file which is needed while working in an editor with preview option.<p> * * @return the file name of the temporary file * @throws CmsException if something goes wrong */ protected String createTempFile() throws CmsException { return OpenCms.getWorkplaceManager().createTempFile(getCms(), getParamResource(), getSettings().getProject()); }
/** * Creates a temporary file which is needed while working in an editor with preview option.<p> * * @return the file name of the temporary file * @throws CmsException if something goes wrong */ protected String createTempFile() throws CmsException { return OpenCms.getWorkplaceManager().createTempFile(getCms(), getParamResource(), getSettings().getProject()); }
content.append(getSettings().getProject()); } else { content.append(getSettings().getExplorerProjectId());
if (!settings.getProject().equals(reqCont.getCurrentProject().getUuid())) { try { reqCont.setCurrentProject(cms.readProject(settings.getProject())); } catch (CmsDbEntryNotFoundException e) { try {
if (!settings.getProject().equals(reqCont.currentProject().getUuid())) { try { reqCont.setCurrentProject(cms.readProject(settings.getProject())); } catch (CmsDbEntryNotFoundException e) { try {
content.append(getSettings().getProject()); } else { content.append(getSettings().getExplorerProjectId());
/** * Helper method to change the current project to the temporary file project.<p> * * The id of the old project is stored in a member variable to switch back.<p> * * @return the id of the tempfileproject * @throws CmsException if getting the tempfileproject id fails */ protected CmsUUID switchToTempProject() throws CmsException { // store the current project id in member variable m_currentProjectId = getSettings().getProject(); CmsUUID tempProjectId = OpenCms.getWorkplaceManager().getTempFileProjectId(); getCms().getRequestContext().setCurrentProject(getCms().readProject(tempProjectId)); return tempProjectId; }
/** * Helper method to change the current project to the temporary file project.<p> * * The id of the old project is stored in a member variable to switch back.<p> * * @return the id of the tempfileproject * @throws CmsException if getting the tempfileproject id fails */ protected CmsUUID switchToTempProject() throws CmsException { // store the current project id in member variable m_currentProjectId = getSettings().getProject(); CmsUUID tempProjectId = OpenCms.getWorkplaceManager().getTempFileProjectId(); getCms().getRequestContext().setCurrentProject(getCms().readProject(tempProjectId)); return tempProjectId; }
options.add(projectName); if (project.getUuid().equals(getSettings().getProject())) {
options.add(projectName); if (project.getUuid().equals(getSettings().getProject())) {
try { if (!listView) { referenceProject = getCms().readProject(getSettings().getProject()); } else { referenceProject = getCms().readProject(getSettings().getExplorerProjectId());
try { if (!listView) { referenceProject = getCms().readProject(getSettings().getProject()); } else { referenceProject = getCms().readProject(getSettings().getExplorerProjectId());
cms.getRequestContext().setCurrentProject(cms.readProject(getSettings().getProject()));