Package org.ametys.web
Class AmetysContextHelper
java.lang.Object
org.ametys.core.AmetysContextHelper
org.ametys.web.AmetysContextHelper
- All Implemented Interfaces:
Component
Helper for contexts.
-
Field Summary
Fields inherited from class org.ametys.core.AmetysContextHelper
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanareRelated(Set<String> contextsSet1, Set<String> contextsSet2) Check if the two sets are acquainted with each other: at least one context in both setsstatic StringgetSiteComplementaryContext(String context) Get the complementary context of a contextbooleanisRelatedWithContext(Set<String> setOfContexts, String contextToCheck) Check if a set of contexts is acquainted with the given contextMethods inherited from class org.ametys.core.AmetysContextHelper
isRelatedWithAllContexts
-
Constructor Details
-
AmetysContextHelper
public AmetysContextHelper()
-
-
Method Details
-
areRelated
Description copied from class:AmetysContextHelperCheck if the two sets are acquainted with each other: at least one context in both sets- Overrides:
areRelatedin classAmetysContextHelper- Parameters:
contextsSet1- The first set of contextcontextsSet2- The second set of context- Returns:
trueif the two sets are acquainted, false otherwise
-
isRelatedWithContext
Description copied from class:AmetysContextHelperCheck if a set of contexts is acquainted with the given context- Overrides:
isRelatedWithContextin classAmetysContextHelper- Parameters:
setOfContexts- The set of contextscontextToCheck- The context to check- Returns:
trueif the set is acquainted with the given context,falseotherwise
-
getSiteComplementaryContext
Get the complementary context of a context- Parameters:
context- The context- Returns:
- The site complementary context
-