org.gcube.accounting.security.authz
Class FileAuthorizationManager

java.lang.Object
  extended by org.gcube.accounting.security.authz.FileAuthorizationManager
All Implemented Interfaces:
FileChangedListener, AuthorizationManager

public class FileAuthorizationManager
extends Object
implements AuthorizationManager, FileChangedListener


Constructor Summary
FileAuthorizationManager(File file)
          Basic constructor
FileAuthorizationManager(String file)
          Basic constructor
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileAuthorizationManager

public FileAuthorizationManager(String file)
Basic constructor

Parameters:
file - path

FileAuthorizationManager

public FileAuthorizationManager(File file)
Basic constructor

Parameters:
file -
Method Detail

fileChanged

public void fileChanged(File file)
Callback method for changes on the file

Specified by:
fileChanged in interface FileChangedListener

isAllowed

public boolean isAllowed(String userId,
                         Action action)
Check whether the given user is allowed to perform the given action

Specified by:
isAllowed in interface AuthorizationManager

isAllowed

public boolean isAllowed(String userId,
                         Action action,
                         String object)
Check if the given user is allowed to perform the given action over the given object.

Specified by:
isAllowed in interface AuthorizationManager


Copyright © 2013. All Rights Reserved.