Package org.exoplatform.portal.config
Class DynamicPortalLayoutMatcher
java.lang.Object
org.exoplatform.portal.config.DynamicPortalLayoutMatcher
A class that will be used to check if a site portal should have dynamic site layout retrieved into it or not.
This check is made swicth multiple conditions and regex.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether currently displaying site (designated by siteKey) should be retrieved with dynamic site layout or not.voidsetCurrentSiteNameRegex(String currentSiteNameRegex) voidsetSiteNameRegex(String siteNameRegex) voidsetSiteTypeRegex(String siteTypeRegex)
-
Constructor Details
-
DynamicPortalLayoutMatcher
public DynamicPortalLayoutMatcher()
-
-
Method Details
-
setCurrentSiteNameRegex
-
setSiteNameRegex
-
setSiteTypeRegex
-
getSiteNamePattern
-
getSiteTypePattern
-
getCurrentSiteNamePattern
-
matches
Checks whether currently displaying site (designated by siteKey) should be retrieved with dynamic site layout or not.- Parameters:
siteKey- currently displaying sitecurrentPortalSiteName- last displayed site name of type PORTAL- Returns:
- true if condifitons of current Matcher matches, else false.
-