import_objectSecurity
This method allows adding and editing:
- Data of a security type
To insert each of these items, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web\wwwroot\ws\java\asset\Import_objectSecurityRequestType.java |
Return | web\wwwroot\ws\java\asset\Import_objectSecurityResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
IDOBJECTTYPE | X | Object type ID # |
ACCESSTYPE | X | Access control type: 1 - Group of users, 2 - Department, 3 - Department/Position, 4 - Position, 5 - User, 6 - All. |
PERMISSION | X | Permission type: 1 - Allow; 2 - Deny. |
IDACCESSTYPE | X | Access type ID #. Example: If the type is by user, it will be the user ID. If the type is by department, it will be the department ID #. |
IDFUNCTION | X² | Position ID #. This field will only be used if the type is by department and position. That way, the department will go in the IDACCESSTYPE field, and the position in this one. |
INSERT | X¹ | Control to add: 1 - Yes; 2 - No. |
EDIT | X¹ | Control to edit: 1 - Yes; 2 - No. |
DELETE | X¹ | Control to delete: 1 - Yes; 2 - No. |
SECURITY | X¹ | Security control: 1 - Yes; 2 - No. |
LIST | X¹ | Listing control: 1 - Yes; 2 - No. |
VIEW | X¹ | View control: 1 - Yes; 2 - No. |
info
- X¹ - Required at least one control field
- X² - Required when IDACCESSTYPE is equal to 2.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:asset">
<soapenv:Header/>
<soapenv:Body>
<urn:import_objectSecurity>
<!--You may enter the following 11 items in any order-->
<urn:idobjecttype>?</urn:idobjecttype>
<urn:accesstype>?</urn:accesstype>
<urn:permission>?</urn:permission>
<urn:idaccesstype>?</urn:idaccesstype>
<urn:idfunction>?</urn:idfunction>
<urn:insert>?</urn:insert>
<urn:edit>?</urn:edit>
<urn:delete>?</urn:delete>
<urn:security>?</urn:security>
<urn:list>?</urn:list>
<urn:view>?</urn:view>
</urn:import_objectSecurity>
</soapenv:Body>
</soapenv:Envelope>
Return: