|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface providing an authorization layer to control access to a file system data resource.
| Method Summary | |
boolean |
canReadFile(java.lang.String userCredential,
java.io.File file)
Determines whether the user is allowed to read the specified file or directory. |
boolean |
canWriteFile(java.lang.String userCredential,
java.io.File file)
Determines whether the user is allowed to write the specified file or directory. |
java.io.File |
getHomeDirectory(java.lang.String userCredential)
Gets the file data resource directory for a specified user. |
void |
validateReadFile(java.lang.String userCredential,
java.io.File file)
Determines whether the user is allowed to read the specified file or directory. |
void |
validateWriteFile(java.lang.String userCredential,
java.io.File file)
Determines whether the user is allowed to write the specified file or directory. |
| Method Detail |
public java.io.File getHomeDirectory(java.lang.String userCredential)
throws DataResourceAuthorizationException,
FilesResourceUseException,
AuthorizationExecutionException
userCredential - Credentials specifying a user.
DataResourceAuthorizationException - if the user is not
permitted any access to any part of the file data resource.
FilesResourceUseException - if there is a problem in
using the resource.
AuthorizationExecutionException - if there is a problem
when authorizing the request.
public boolean canReadFile(java.lang.String userCredential,
java.io.File file)
throws FilesResourceUseException
userCredential - Credentials of the specified user.file - File or directory. The file need not currently exist.
true if the user may attempt to read this
file or directory, false otherwise.
FilesResourceUseException - if there is a problem in
using the resource.
public void validateReadFile(java.lang.String userCredential,
java.io.File file)
throws DataResourceAuthorizationException,
FilesResourceUseException,
AuthorizationExecutionException
userCredential - Credentials of the specified user.file - File or directory. The file need not currently exist.
DataResourceAuthorizationException - if the user is not
permitted any access to any part of the file data resource.
FilesResourceUseException - if there is a problem in
using the resource.
AuthorizationExecutionException - if there is a problem
when authorizing the request.
public boolean canWriteFile(java.lang.String userCredential,
java.io.File file)
throws FilesResourceUseException
userCredential - Credentials of the specified user.file - File or directory. The file need not currently exist.
true if the user may attempt to write this
file or directory, false otherwise.
FilesResourceUseException - if there is a problem in
using the resource.
public void validateWriteFile(java.lang.String userCredential,
java.io.File file)
throws DataResourceAuthorizationException,
FilesResourceUseException,
AuthorizationExecutionException
userCredential - Credentials of the specified user.file - File or directory. The file need not currently exist.
DataResourceAuthorizationException - if the user is not
permitted any access to any part of the file data resource.
FilesResourceUseException - if there is a problem in
using the resource.
AuthorizationExecutionException - if there is a problem
when authorizing the request.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||