public class SampleAuthorization extends Authorization<Sample>
Constructor and Description |
---|
SampleAuthorization() |
Modifier and Type | Method and Description |
---|---|
boolean |
canWrite(String userId,
Sample sample)
Determines if the specified user has write privileges.
|
protected String |
getOwner(Sample sample) |
canRead, expectAdmin, expectRead, expectWrite, get, getAccount, getObjectById, isAdmin, isOwner
protected String getOwner(Sample sample)
getOwner
in class Authorization<Sample>
public boolean canWrite(String userId, Sample sample)
canWrite
in class Authorization<Sample>
userId
- unique user identifiersample
- sample being checkedCopyright © 2017. All rights reserved.