com.atlassian.gadgets.directory.internal
Class DirectoryConfigurationPermissionChecker
java.lang.Object
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.
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 |
DirectoryConfigurationPermissionChecker
public DirectoryConfigurationPermissionChecker(PermissionService permissionService,
com.atlassian.sal.api.user.UserManager userManager)
- Constructor.
- Parameters:
permissionService
- the PermissionService
implementation to useuserManager
- the UserManager
implementation to use
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 © 2009 Atlassian. All Rights Reserved.