Class SubscriptionUtil
- java.lang.Object
-
- org.silverpeas.core.subscription.util.SubscriptionUtil
-
public class SubscriptionUtil extends Object
Utility class shared by other classes of the same package.
-
-
Constructor Summary
Constructors Constructor Description SubscriptionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isSameVisibilityAsTheCurrentRequester(Group group, UserDetail currentRequester)
Indicates if the given group has same domain visibility as the current requester.static boolean
isSameVisibilityAsTheCurrentRequester(UserDetail user, UserDetail currentRequester)
Indicates if the given user has same domain visibility as the current requester.
-
-
-
Method Detail
-
isSameVisibilityAsTheCurrentRequester
public static boolean isSameVisibilityAsTheCurrentRequester(UserDetail user, UserDetail currentRequester)
Indicates if the given user has same domain visibility as the current requester.- Parameters:
user
- the user to verify.currentRequester
- the current user requester.- Returns:
- true if same domain visibility, false otherwise.
-
isSameVisibilityAsTheCurrentRequester
public static boolean isSameVisibilityAsTheCurrentRequester(Group group, UserDetail currentRequester)
Indicates if the given group has same domain visibility as the current requester.- Parameters:
group
- the group to verify.currentRequester
- the current user requester.- Returns:
- true if same domain visibility, false otherwise.
-
-