/** * Gets the detail content structure id (or null if no detail content has been loaded).<p> * * @return the detail content id */ public CmsUUID getDetailContentId() { if (m_detailResource == null) { return null; } return m_detailResource.getStructureId(); }
/** * Returns the structure id of the current detail content, or <code>null</code> if no detail content is requested.<p> * * @return the structure id of the current detail content, or <code>null</code> if no detail content is requested.<p> */ public CmsUUID getDetailContentId() { return m_detailContentResource == null ? null : m_detailContentResource.getStructureId(); }
/** * @see org.opencms.ui.apps.I_CmsCachableApp#onRestoreFromCache() */ public void onRestoreFromCache() { if (m_lastDialogContextResources != null) { List<CmsUUID> updateIds = Lists.newArrayList(); for (CmsResource resource : m_lastDialogContextResources) { updateIds.add(resource.getStructureId()); } update(updateIds); } }
/** * Initializes the information about the resource from which this configuration was read.<p> * * @param configResource the configuration file */ public void setResource(CmsResource configResource) { m_structureId = configResource.getStructureId(); m_rootPath = configResource.getRootPath(); } }
/** * @see org.opencms.ade.configuration.I_CmsConfigurationObject#getKey() */ public String getKey() { return m_resource.getStructureId().toString(); }
/** * Returns the session info key for the bean.<p> * * @param editedResource the edited resource * * @return the session info key for the bean */ protected static String getEditorSessionInfoKey(CmsResource editedResource) { return PREFIX_EDITOR_SESSION_INFO + editedResource.getStructureId().getStringValue(); }
/** * Adds a new resource.<p> * * @param resource the resource to add */ public void add(CmsResource resource) { if (!m_processedIds.contains(resource.getStructureId())) { m_resources.add(resource); m_processedIds.add(resource.getStructureId()); m_changed |= !(resource.getState().isUnchanged()); } }
public CmsGallerySearchResult getSearchResult(Locale locale) { if (!m_searchResultMap.containsKey(locale)) { CmsGallerySearchResult sResult; try { sResult = CmsGallerySearch.searchById(m_cms, m_resource.getStructureId(), locale); m_searchResultMap.put(locale, sResult); } catch (CmsException e) { LOG.error(e.getLocalizedMessage(), e); } } return m_searchResultMap.get(locale); }
/** * Opens the dialog for editing pointer resources.<p> * * @param resource the pointer resource */ public void editPointer(CmsResource resource) { getRpcProxy(I_CmsGwtDialogClientRpc.class).editPointer("" + resource.getStructureId()); }
public boolean apply(Component input) { if (input instanceof CmsSitemapTreeNode) { CmsSitemapTreeNode node = (CmsSitemapTreeNode)input; CmsSitemapTreeNodeData data = (CmsSitemapTreeNodeData)node.getData(); if (data.getResource().getStructureId().equals(id)) { nodes.add(node); return false; } } return true; } });
/** * Closes the dialog.<p> */ void close() { try { clearLock(); m_context.finish(Collections.singletonList(m_resource.getStructureId())); } catch (CmsException e) { m_context.error(e); } }
/** * @see org.opencms.ui.sitemap.I_CmsLocaleCompareContext#refreshAll() */ public void refreshAll() { try { initialize(m_currentRoot.getStructureId(), m_comparisonLocale); } catch (CmsException e) { LOG.error(e.getLocalizedMessage(), e); CmsErrorDialog.showErrorDialog(e); } }
/** * Opens the categories dialog for the given resource.<p> * * @param resource the resource */ public void openCategories(CmsResource resource) { getRpcProxy(I_CmsGwtDialogClientRpc.class).openCategoriesDialog(resource.getStructureId().toString()); }
/** * @see org.opencms.ade.configuration.I_CmsGlobalConfigurationCache#remove(org.opencms.file.CmsResource) */ public void remove(CmsResource resource) { checkIfUpdateIsNeeded(resource.getStructureId(), resource.getRootPath(), resource.getTypeId()); }
/** * @see org.opencms.ade.configuration.I_CmsGlobalConfigurationCache#update(org.opencms.file.CmsResource) */ public void update(CmsResource resource) { checkIfUpdateIsNeeded(resource.getStructureId(), resource.getRootPath(), resource.getTypeId()); }
/** * @see org.opencms.ade.configuration.I_CmsGlobalConfigurationCache#update(org.opencms.file.CmsResource) */ public void update(CmsResource resource) { checkIfUpdateIsNeeded(resource.getStructureId(), resource.getRootPath(), resource.getTypeId()); }
/** * Removes a resource from the cache.<p> * * @param res the resource to remove */ public void remove(CmsResource res) { remove(res.getStructureId(), res.getRootPath(), res.getTypeId()); }
/** * @see org.opencms.ade.configuration.I_CmsGlobalConfigurationCache#update(org.opencms.file.CmsResource) */ public void update(CmsResource resource) { update(resource.getStructureId(), resource.getRootPath(), resource.getTypeId(), resource.getState()); }
/** * Opens the lock report for the given resource.<p> * * @param resource the resource for which to display the lock report */ public void openLockReport(CmsResource resource) { String dialogTitle = CmsVaadinUtils.getMessageText(org.opencms.ui.Messages.GUI_DIALOGTITLE_LOCKREPORT_0); getRpcProxy(I_CmsGwtDialogClientRpc.class).openLockReport(dialogTitle, resource.getStructureId().toString()); }
/** * @see org.opencms.search.CmsSearchIndex#createEmptyDocument(org.opencms.file.CmsResource) */ @Override public I_CmsSearchDocument createEmptyDocument(CmsResource resource) { CmsSolrDocument doc = new CmsSolrDocument(new SolrInputDocument()); doc.setId(resource.getStructureId()); return doc; }