com.atlassian.jira.user.util
Class UserSharingPreferencesUtilImpl

java.lang.Object
  extended by com.atlassian.jira.user.util.UserSharingPreferencesUtilImpl
All Implemented Interfaces:
UserSharingPreferencesUtil

public class UserSharingPreferencesUtilImpl
extends Object
implements UserSharingPreferencesUtil

Standard implementation of the UserSharingPreferencesUtil interface.

Since:
v3.13

Constructor Summary
UserSharingPreferencesUtilImpl(PermissionManager permissionManager, UserPreferencesManager userPreferencesManager)
           
 
Method Summary
 SharedEntity.SharePermissions getDefaultSharePermissions(com.atlassian.crowd.embedded.api.User user)
          Return the default share permissions for the passed user.
 SharedEntity.SharePermissions getDefaultSharePermissions(User user)
          Return the default share permissions for the passed user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserSharingPreferencesUtilImpl

public UserSharingPreferencesUtilImpl(PermissionManager permissionManager,
                                      UserPreferencesManager userPreferencesManager)
Method Detail

getDefaultSharePermissions

public SharedEntity.SharePermissions getDefaultSharePermissions(com.atlassian.crowd.embedded.api.User user)
Description copied from interface: UserSharingPreferencesUtil
Return the default share permissions for the passed user.

Specified by:
getDefaultSharePermissions in interface UserSharingPreferencesUtil
Parameters:
user - the user whose preferences should be queried.
Returns:
the default preferences for the user.

getDefaultSharePermissions

public SharedEntity.SharePermissions getDefaultSharePermissions(User user)
Description copied from interface: UserSharingPreferencesUtil
Return the default share permissions for the passed user.

Specified by:
getDefaultSharePermissions in interface UserSharingPreferencesUtil
Parameters:
user - the user whose preferences should be queried.
Returns:
the default preferences for the user.


Copyright © 2002-2011 Atlassian. All Rights Reserved.