public interface MongoSecurityManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkAccess(Class<?> cls,
Permission p) |
boolean |
checkAccess(Object obj,
Permission p)
Called by layer when access to a given type occurs.
|
boolean |
checkAccess(String domain,
Permission p)
more flexible access for security.
|
Object |
getCurrentUserId()
depending on implementation, this might be an ObjectId or a login string or whatever
ATTENTION: needs to be compatible with @StoreCreationTime and @StoreLAstAccess etc.
|
boolean checkAccess(Object obj, Permission p) throws MongoSecurityException
obj - p - MongoSecurityExceptionboolean checkAccess(String domain, Permission p) throws MongoSecurityException
domain - p - MongoSecurityExceptionboolean checkAccess(Class<?> cls, Permission p) throws MongoSecurityException
MongoSecurityExceptionObject getCurrentUserId()
Copyright © 2012. All Rights Reserved.