public class DCTMPermissionQueryImpl extends DCTMPermissionImpl
This class extends DCTMPermissionImpl, using the DQL "CHECK_SECURITY" method instead of the DFC to check permissions on documents
NOTE: This impl should only be used if you have a reason to, meaning the DFC method is failing for some reason while this method succeeds
This method is slower, requires more sessions to be opened, and requires a runAsAdmin
logger
Constructor and Description |
---|
DCTMPermissionQueryImpl() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkPermissions(java.lang.String ticket,
java.lang.String objectId,
int permissionType)
Alternate method of checking permissions which grabs permissions off the document in a session for the passed in ticket
Uses a direct "CHECK_SECURITY" DQL call instead of the dfc call.
|
canDelete, canGroupRead, canRead, canReadContent, canReadProperties, canRelate, canVersion, canWrite, canWriteContent, canWriteProperties, clearPermissions, getUsersWithPermission, hasAllPermissions, inheritPermissions, setPermissions
protected boolean checkPermissions(java.lang.String ticket, java.lang.String objectId, int permissionType)
checkPermissions
in class DCTMPermissionImpl
ticket
- - ticket to check the document againstobjectId
- - document to check permissions againstpermissionType
- the IDfACL constant that represents the permission level we are looking for