com.atlassian.gadgets.directory.internal
Class DirectoryConfigurationPermissionChecker

java.lang.Object
  extended by com.atlassian.gadgets.directory.internal.DirectoryConfigurationPermissionChecker

public class DirectoryConfigurationPermissionChecker
extends Object

Checks that the user making a request to add a gadget to the directory has permission to do so.


Constructor Summary
DirectoryConfigurationPermissionChecker(DirectoryPermissionService permissionService, com.atlassian.sal.api.user.UserManager userManager)
          Constructor.
 
Method Summary
 void checkForPermissionToConfigureDirectory(javax.servlet.http.HttpServletRequest request)
          Check that the user making the request has permission to add entries to or remove entries from the directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryConfigurationPermissionChecker

public DirectoryConfigurationPermissionChecker(DirectoryPermissionService permissionService,
                                               com.atlassian.sal.api.user.UserManager userManager)
Constructor.

Parameters:
permissionService - the PermissionService implementation to use
userManager - the UserManager implementation to use
Method Detail

checkForPermissionToConfigureDirectory

public void checkForPermissionToConfigureDirectory(javax.servlet.http.HttpServletRequest request)
                                            throws PermissionException
Check that the user making the request has permission to add entries to or remove entries from the directory.

Parameters:
request - request to pull user information from
Throws:
PermissionException - thrown if the user making the request does not have permission to add to the directory


Copyright © 2011 Atlassian. All Rights Reserved.