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 TypeMethodDescriptionboolean
areRelated
(Set<String> contextsSet1, Set<String> contextsSet2) Check if the two sets are acquainted with each other: at least one context in both setsstatic String
getSiteComplementaryContext
(String context) Get the complementary context of a contextboolean
isRelatedWithContext
(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:AmetysContextHelper
Check if the two sets are acquainted with each other: at least one context in both sets- Overrides:
areRelated
in classAmetysContextHelper
- Parameters:
contextsSet1
- The first set of contextcontextsSet2
- The second set of context- Returns:
true
if the two sets are acquainted, false otherwise
-
isRelatedWithContext
Description copied from class:AmetysContextHelper
Check if a set of contexts is acquainted with the given context- Overrides:
isRelatedWithContext
in classAmetysContextHelper
- Parameters:
setOfContexts
- The set of contextscontextToCheck
- The context to check- Returns:
true
if the set is acquainted with the given context,false
otherwise
-
getSiteComplementaryContext
Get the complementary context of a context- Parameters:
context
- The context- Returns:
- The site complementary context
-