|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.storage.sql.coremodel.SQLSecurityManager
public class SQLSecurityManager
Constructor Summary | |
---|---|
SQLSecurityManager()
|
Method Summary | |
---|---|
boolean |
checkPermission(Document doc,
java.lang.String username,
java.lang.String permission)
Checks whether this ACP grant the given permission on the given user. |
Access |
getAccess(Document doc,
java.lang.String username,
java.lang.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 |
invalidateCache(Session session)
Invalidates cache, if there is any. |
void |
setACP(Document doc,
ACP acp,
boolean overwrite)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLSecurityManager()
Method Detail |
---|
public ACP getACP(Document doc) throws SecurityException
getACP
in interface SecurityManager
SecurityException
public void setACP(Document doc, ACP acp, boolean overwrite) throws SecurityException
setACP
in interface SecurityManager
SecurityException
public ACP getMergedACP(Document doc) throws SecurityException
getMergedACP
in interface SecurityManager
SecurityException
public boolean checkPermission(Document doc, java.lang.String username, java.lang.String permission) throws SecurityException
SecurityManager
The 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 SecurityManager
doc
- the documentusername
- the user namepermission
- the permission to check
SecurityException
public Access getAccess(Document doc, java.lang.String username, java.lang.String permission) throws SecurityException
SecurityManager
getAccess
in interface SecurityManager
doc
- the documentusername
- the user namepermission
- the permission to check
SecurityException
public void invalidateCache(Session session)
SecurityManager
Do nothing if no cache is used.
invalidateCache
in interface SecurityManager
session
- the current session
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |