/** * Gets the cache key for a given base path.<p> * * @param basePath the base path * * @return the cache key for the base path */ protected String getCacheKey(String basePath) { assert !basePath.endsWith(INHERITANCE_CONFIG_FILE_NAME); return CmsFileUtil.addTrailingSeparator(basePath); }
/** * Gets the cache key for a given base path.<p> * * @param basePath the base path * * @return the cache key for the base path */ protected String getCacheKey(String basePath) { assert !basePath.endsWith(INHERITANCE_CONFIG_FILE_NAME); return CmsFileUtil.addTrailingSeparator(basePath); }
/** * Returns true if the path starts with the shared folder path.<p> * * @param path the path to check * * @return true if the path starts with the shared folder path */ public boolean startsWithShared(String path) { return (m_sharedFolder != null) && CmsFileUtil.addTrailingSeparator(path).startsWith(m_sharedFolder); }
conditions.append(m_sqlManager.readQuery(projectId, "C_RESOURCES_SELECT_BY_PATH_PREFIX")); conditions.append(END_CONDITION); params.add(CmsFileUtil.addTrailingSeparator(escapeDbWildcard(parent)) + "%");
conditions.append(m_sqlManager.readQuery(projectId, "C_RESOURCES_SELECT_BY_PATH_PREFIX")); conditions.append(END_CONDITION); params.add(CmsFileUtil.addTrailingSeparator(escapeDbWildcard(parent)) + "%");
conditions.append(m_sqlManager.readQuery(projectId, C_RESOURCES_SELECT_BY_PATH_PREFIX)); conditions.append(END_CONDITION); params.add(CmsFileUtil.addTrailingSeparator(escapeDbWildcard(parent)) + "%");
/** * Returns a html select box filled with the current users accessible sites.<p> * * @param htmlAttributes attributes that will be inserted into the generated html * @return a html select box filled with the current users accessible sites */ public String getSiteSelect(String htmlAttributes) { List<String> options = new ArrayList<String>(); List<String> values = new ArrayList<String>(); int selectedIndex = 0; List<CmsSite> sites = OpenCms.getSiteManager().getAvailableSites(getCms(), true); Iterator<CmsSite> i = sites.iterator(); int pos = 0; while (i.hasNext()) { CmsSite site = i.next(); values.add(site.getSiteRoot()); options.add(substituteSiteTitle(site.getTitle())); String siteRoot = CmsFileUtil.addTrailingSeparator(site.getSiteRoot()); String settingsSiteRoot = getSettings().getSite(); if (settingsSiteRoot != null) { settingsSiteRoot = CmsFileUtil.addTrailingSeparator(settingsSiteRoot); } if (siteRoot.equals(settingsSiteRoot)) { // this is the user's current site selectedIndex = pos; } pos++; } return buildSelect(htmlAttributes, options, values, selectedIndex); }
folder = CmsFileUtil.addTrailingSeparator(folder);
resourcePath = CmsFileUtil.addTrailingSeparator(resourcePath);
resourcePath = CmsFileUtil.addTrailingSeparator(resourcePath);
resourcePath = CmsFileUtil.addTrailingSeparator(resourcePath);
if (isFolder) { resourcePath = CmsFileUtil.addTrailingSeparator(resourcePath);
resourcePath = CmsFileUtil.addTrailingSeparator(resourcePath);
resourcePath = CmsFileUtil.addTrailingSeparator(resourcePath);
if (isFolder) { resourcePath = CmsFileUtil.addTrailingSeparator(resourcePath);
resourcePath = CmsFileUtil.addTrailingSeparator(resourcePath);
conditions.append(m_sqlManager.readQuery(dbc.currentProject(), C_RESOURCES_SELECT_BY_PATH_PREFIX)); params.add( CmsFileUtil.addTrailingSeparator(CmsVfsDriver.escapeDbWildcard(filter.getParentPath())) + "%"); } else { conditions.append(m_sqlManager.readQuery(dbc.currentProject(), C_RESOURCES_SELECT_BY_PARENT_UUID));
/** * Enumeration class for the mode parameter in the * {@link CmsDriverManager#readChangedResourcesInsideProject(CmsDbContext, CmsUUID, CmsReadChangedProjectResourceMode)} * method.<p> */ private static class CmsReadChangedProjectResourceMode { /** * Default constructor.<p> */ protected CmsReadChangedProjectResourceMode() { // noop } }
/** * @see org.opencms.ui.actions.I_CmsWorkplaceAction#executeAction(org.opencms.ui.I_CmsDialogContext) */ public void executeAction(final I_CmsDialogContext context) { CmsObject cms = context.getCms(); String initPath = CmsQuickLaunchLocationCache.getLocationCache( A_CmsUI.get().getHttpSession()).getFileExplorerLocation(cms.getRequestContext().getSiteRoot()); if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(initPath)) { initPath = cms.getRequestContext().addSiteRoot(initPath); } else { initPath = CmsFileUtil.addTrailingSeparator(cms.getRequestContext().getSiteRoot()); } String link = CmsWorkplace.getWorkplaceExplorerLink(cms, initPath); A_CmsUI.get().openPageOrWarn(link, WORKPLACE_WINDOW_NAME); }
resourcePath = CmsFileUtil.addTrailingSeparator(resourcePath);