/** * Returns <code>true</code> if the given site matcher matches the configured OpenCms workplace.<p> * * @param matcher the site matcher to match the site with * * @return <code>true</code> if the given site matcher matches the configured OpenCms workplace */ public boolean isWorkplaceRequest(CmsSiteMatcher matcher) { return (m_workplaceSiteMatcher != null) && m_workplaceSiteMatcher.equals(matcher); }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CmsSite) { return (m_siteMatcher != null) && m_siteMatcher.equals(((CmsSite)obj).m_siteMatcher); } return false; }
/** * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (obj instanceof CmsSite) { ((CmsSite)obj).m_siteMatcher.equals(m_siteMatcher); } return false; }
/** * Returns <code>true</code> if the given site matcher matches any configured site, * which includes the workplace site.<p> * * @param matcher the site matcher to match the site with * * @return <code>true</code> if the matcher matches a site */ public boolean isMatching(CmsSiteMatcher matcher) { boolean result = m_siteMatcherSites.get(matcher) != null; if (!result) { // try to match the workplace site result = (m_workplaceSiteMatcher != null) && m_workplaceSiteMatcher.equals(matcher); } return result; }
/** * Returns true if this request goes to a secure site.<p> * * @param req the request to check * * @return true if the request goes to a secure site */ public boolean usesSecureSite(HttpServletRequest req) { CmsSite site = matchRequest(req); if (site == null) { return false; } CmsSiteMatcher secureMatcher = site.getSecureServerMatcher(); boolean result = false; if (secureMatcher != null) { result = secureMatcher.equals(getRequestMatcher(req)); } return result; }
if ((getSiteManager().getWorkplaceSiteMatcher().equals(site.getSiteMatcher()))) {
CmsSiteMatcher targetMatcher = new CmsSiteMatcher(targetUri); if (OpenCms.getSiteManager().isMatching(targetMatcher) || targetMatcher.equals(cms.getRequestContext().getRequestMatcher())) { || targetMatcher.equals(cms.getRequestContext().getRequestMatcher()); if (isWorkplaceServer) { String selectedPath;