com.silverpeas.subscribe.util
Class SubscriptionUtil

java.lang.Object
  extended by com.silverpeas.subscribe.util.SubscriptionUtil

public class SubscriptionUtil
extends Object

Utility class shared by other classes of the same package.


Constructor Summary
SubscriptionUtil()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionUtil

public SubscriptionUtil()
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.


Copyright © 2016 Silverpeas. All Rights Reserved.