Package org.ametys.core
Class AmetysContextHelper
java.lang.Object
org.ametys.core.AmetysContextHelper
- All Implemented Interfaces:
Component
- Direct Known Subclasses:
AmetysContextHelper
Helper for contexts.
-
Field Summary
Fields -
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 setsboolean
isRelatedWithAllContexts
(Set<String> setOfContexts, Set<String> contextsToCheck) Check if a set of contexts is acquainted with the given contextsboolean
isRelatedWithContext
(Set<String> setOfContexts, String contextToCheck) Check if a set of contexts is acquainted with the given context
-
Field Details
-
ROLE
The Avalon Role
-
-
Constructor Details
-
AmetysContextHelper
public AmetysContextHelper()
-
-
Method Details
-
areRelated
Check if the two sets are acquainted with each other: at least one context in both sets- Parameters:
contextsSet1
- The first set of contextcontextsSet2
- The second set of context- Returns:
true
if the two sets are acquainted, false otherwise
-
isRelatedWithContext
Check if a set of contexts is acquainted with the given context- Parameters:
setOfContexts
- The set of contextscontextToCheck
- The context to check- Returns:
true
if the set is acquainted with the given context,false
otherwise
-
isRelatedWithAllContexts
Check if a set of contexts is acquainted with the given contexts- Parameters:
setOfContexts
- The set of contextscontextsToCheck
- The contexts to check- Returns:
true
if the set is acquainted with all the given contexts,false
otherwise
-