public class FileAuthorizationManager extends Object implements AuthorizationManager, FileChangedListener
| Constructor and Description |
|---|
FileAuthorizationManager(File file)
Basic constructor
|
FileAuthorizationManager(String file)
Basic constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
fileChanged(File file)
Callback method for changes on the file
|
boolean |
isAllowed(String userId,
Action action)
Check whether the given user is allowed to perform the given action
|
boolean |
isAllowed(String userId,
Action action,
String object)
Check if the given user is allowed to perform the given action over the
given object.
|
public FileAuthorizationManager(String file)
file - pathpublic FileAuthorizationManager(File file)
file - public void fileChanged(File file)
fileChanged in interface FileChangedListenerpublic boolean isAllowed(String userId, Action action)
isAllowed in interface AuthorizationManagerpublic boolean isAllowed(String userId, Action action, String object)
isAllowed in interface AuthorizationManagerCopyright © 2015. All Rights Reserved.