public class SQLSecurityManager extends Object implements SecurityManager
| Constructor and Description |
|---|
SQLSecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkPermission(Document doc,
String username,
String permission)
Checks whether this ACP grant the given permission on the given user.
|
Access |
getAccess(Document doc,
String username,
String permission)
Checks whether this ACP grant the given permission on the given user, denies it or
doesn't specify a rule.
|
ACP |
getACP(Document doc) |
ACP |
getMergedACP(Document doc) |
void |
setACP(Document doc,
ACP acp,
boolean overwrite) |
public ACP getACP(Document doc) throws SecurityException
getACP in interface SecurityManagerSecurityExceptionpublic void setACP(Document doc, ACP acp, boolean overwrite) throws SecurityException
setACP in interface SecurityManagerSecurityExceptionpublic ACP getMergedACP(Document doc) throws SecurityException
getMergedACP in interface SecurityManagerSecurityExceptionpublic boolean checkPermission(Document doc, String username, String permission) throws SecurityException
SecurityManagerThe merged ACP is checked (this means all parents ACP + the local one) but this doesn't check user groups or permission groups.
If the ACP is not explicitly denying or granting the permission false is returned (the default behavior is to deny).
checkPermission in interface SecurityManagerdoc - the documentusername - the user namepermission - the permission to checkSecurityExceptionpublic Access getAccess(Document doc, String username, String permission) throws SecurityException
SecurityManagergetAccess in interface SecurityManagerdoc - the documentusername - the user namepermission - the permission to checkSecurityExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.