beautypg.com

Pr_content_delete, Related items – Kofax DM API User Manual

Page 446

background image

426 C

HAPTER

5

%PR_CONTENT_DELETE


'Check for errors.

checkError(pDocObject, "ERROR_DOCPROFILEDSP_RIGHTS")


'Get the document's effective rights for this user.

Set intAccessRights = _

pDocObject.GetReturnProperty("%EFFECTIVE_RIGHTS")


'Make sure user has rights to edit the profile.

If NOT (pDocObject.HasRight("%PR_CONTENT_DELETE", _

intAccessRights))

Then

'Process the error condition.

End If

Related Items

See the

PCDDocObject

object.

See the following methods:

GrantRight

HasRight

RevokeRight

See the following tokens:

%EFFECTIVE_RIGHTS

%PR_ACCESS_CONTROL

%PR_CONTENT_COPY

%PR_CONTENT_EDIT

%PR_CONTENT_RETRIEVE

%PR_CONTENT_VIEW

%PR_EDIT

%PR_VIEW

%RIGHT8

%RIGHT9