public class FolderAuthorization extends Authorization<Folder>
Constructor and Description |
---|
FolderAuthorization() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(String userId,
Folder folder) |
boolean |
canWrite(String userId,
Folder folder)
Should either be an administrator or the owner of the object to be able to write
|
String |
getOwner(Folder folder) |
expectAdmin, expectRead, expectWrite, get, getAccount, getObjectById, isAdmin, isOwner
public String getOwner(Folder folder)
getOwner
in class Authorization<Folder>
public boolean canRead(String userId, Folder folder)
canRead
in class Authorization<Folder>
public boolean canWrite(String userId, Folder folder)
Authorization
canWrite
in class Authorization<Folder>
userId
- unique user identifierfolder
- object write ownership is being checked againstCopyright © 2017. All rights reserved.