com.atlassian.jira.sharing.type
Class GlobalShareTypePermissionChecker

java.lang.Object
  extended by com.atlassian.jira.sharing.type.GlobalShareTypePermissionChecker
All Implemented Interfaces:
ShareTypePermissionChecker

public class GlobalShareTypePermissionChecker
extends Object
implements ShareTypePermissionChecker

Permissions Checker for globally shared SharedEntity.

Since:
v3.13

Constructor Summary
GlobalShareTypePermissionChecker()
           
 
Method Summary
 boolean hasPermission(com.atlassian.crowd.embedded.api.User user, SharePermission permission)
          All JIRA users are able to see/use globally shared SharedEntity so this will always return true, regardless of user passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalShareTypePermissionChecker

public GlobalShareTypePermissionChecker()
Method Detail

hasPermission

public boolean hasPermission(com.atlassian.crowd.embedded.api.User user,
                             SharePermission permission)
All JIRA users are able to see/use globally shared SharedEntity so this will always return true, regardless of user passed in.

Specified by:
hasPermission in interface ShareTypePermissionChecker
Parameters:
user - User is ignored.
permission - Must be a permission for a GlobalShareType
Returns:
true if permission has type of GlobalShareType.TYPE, else false


Copyright © 2002-2012 Atlassian. All Rights Reserved.