public class EntryAuthorization extends Authorization<Entry>
Constructor and Description |
---|
EntryAuthorization() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(String userId,
Entry entry) |
boolean |
canWrite(String userId,
Entry entry)
Determine if the referenced userId has write permissions for the entry.
|
String |
getOwner(Entry entry) |
expectAdmin, expectRead, expectWrite, get, getAccount, getObjectById, isAdmin, isOwner
public boolean canRead(String userId, Entry entry)
canRead
in class Authorization<Entry>
public boolean canWrite(String userId, Entry entry)
canWrite
in class Authorization<Entry>
userId
- unique user identifierentry
- entry being checkedpublic String getOwner(Entry entry)
getOwner
in class Authorization<Entry>
Copyright © 2017. All rights reserved.