newAccessPermission
This method allows adding permissions for access to a certain document. To use it, it is necessary to follow the standard documented below:
Java class | |
---|---|
Request | web/wwwroot/ws/java/document/NewAccessPermissionRequestType.java |
Return | web/wwwroot/ws/java/document/NewAccessPermissionResponseType.java |
Request:
ID | Required | Description |
---|---|---|
IDDOCUMENT | X | Document ID #. |
IDUSER | X | User ID or department/position ID #. |
USERTYPE | X | User type: â–ª 1 - User; â–ª 2 - Department; â–ª 3 - Position; â–ª 4 - Department/Position; â–ª 5 - Team. â–ª6 - All. |
PERMISSION | X | Permission types: â–ª 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. E.g.: 1,2,3 |
FGADDLOWERLEVEL | Enter value 1 for the permission to consider department sublevels. | |
IDCATEGORY | Document category ID #. |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:document">
<soapenv:Header/>
<soapenv:Body>
<urn:newAccessPermission>
<!--You may enter the following 7 items in any order-->
<urn:iddocument>?</urn:iddocument>
<urn:iduser>?</urn:iduser>
<urn:usertype>?</urn:usertype>
<urn:permission>?</urn:permission>
<urn:fgaddlowerlevel>?</urn:fgaddlowerlevel>
<urn:idcategory>?</urn:idcategory>
</urn:newAccessPermission>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID | Description |
---|---|
return | SUCCESS:Â 1: Operation successfully performed. FAILURE: returns a message with the error that occurred. |