checkAccessPermission
This method allows verifying whether the user has permission to the document. To use it, it is necessary to follow the standard documented below:
Java class | |
---|---|
Request | web/wwwroot/ws/java/document/CheckAccessPermissionRequestType.java |
Return | web/wwwroot/ws/java/document/CheckAccessPermissionResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
IDDOCUMENT | X | Document ID #. |
IDUSER | X | User ID. |
PERMISSIONSTYPE | X | Permission type: 1 - Edit; 2 - Delete; 3 - Revise; 4 - Acknowledgment; 5 - Distribute copy; 6 - View; 7 - Cancel; 8 - Archive; 9 - Print; 10 - Training; 11 - Create training; 12 - Save locally; 13 - Sign; 14 - Notification; 15 - Add comments; 16 - Evaluate applicability. |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:document">
<soapenv:Header/>
<soapenv:Body>
<urn:checkAccessPermission>
<!--You may enter the following 3 items in any order-->
<urn:iddocument>?</urn:iddocument>
<urn:iduser>?</urn:iduser>
<urn:permissiontype>?</urn:permissiontype>
</urn:checkAccessPermission>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | SUCCESS: 1: Access allowed FAILURE: 0: Message with the error found. |