Object Security API Resource

Rest services for detailed object security assignments

DELETE /admin/security/objects

Remove security scheme from given objects

Request Body
media type data type description
application/json object Array with destination objects
Response Body
media type data type description
application/json object JSON response with information if security scheme removal was successful or not

PUT /admin/security/objects/{securitySchemeId}

Assign security scheme for given objects

Request Parameters
name type description default constraints
securitySchemeId path security scheme id   long
Request Body
media type data type description
application/json object Array with destination objects
Response Body
media type data type description
application/json object JSON response with information if security scheme assign was successful or not

DELETE /admin/security/object/{classId}/{objectId}

Set security scheme for given object inclusion

Request Parameters
name type description default constraints
classId path   long
objectId path   long
Response Body
media type data type description
*/* object

DELETE /admin/security/objects/tree/{perspectiveId}

Remove security scheme from given objects trees in given perspective inclusion

Request Parameters
name type description default constraints
perspectiveId path perspective id   long
Request Body
media type data type description
application/json object Array with destination objects
Response Body
media type data type description
application/json object JSON response with information if security scheme removal was successful or not

GET /admin/security/perspective/json/{perspectiveId}

Get unrestricted (t.m. omitting view right) hierarchy in the given perspective - using configured root object. Additional security scheme id information will be attached for each returned object.

Request Parameters
name type description default constraints
perspectiveId path The unique identifier of perspective.   long
Response Body
media type data type description
application/json object JSON Response with the list of children of the root object in the given perspective.

Example of response:

{"children":[{"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"7101 XXX 2","objectId":"90","classId":"11", "securityMask":"3", securitySchemeId: "1"},{"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"7102 - Bottenstocken 13","objectId":"91","classId":"11", "securityMask":"3", securitySchemeId: "1"},{"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"7103 - Bygeln 1","objectId":"92","classId":"11", "securityMask":"3", securitySchemeId: "1"},{"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"7104 - Bygeln 5bb","objectId":"93","classId":"11", "securityMask":"3", securitySchemeId: "1"}],"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"Root","objectId":"0","classId":"10", "securityMask":"3", securitySchemeId: "1"}

PUT /admin/security/object/{classId}/{objectId}/{securitySchemeId}

Set security scheme for given object inclusion

Request Parameters
name type description default constraints
classId path   long
objectId path   long
securitySchemeId path   long
Response Body
media type data type description
*/* object

PUT /admin/security/objects/tree/{perspectiveId}/{securitySchemeId}

Assign security scheme for given objects trees in given perspective inclusion

Request Parameters
name type description default constraints
perspectiveId path perspective id   long
securitySchemeId path security scheme id   long
Request Body
media type data type description
application/json object Array with destination objects
Response Body
media type data type description
application/json object JSON response with information if security scheme assign was successful or not

DELETE /admin/security/object/tree/{perspectiveId}/{classId}/{objectId}

Set security scheme for given object tree in given perspective inclusion

Request Parameters
name type description default constraints
classId path   long
objectId path   long
perspectiveId path   long
Response Body
media type data type description
*/* object

GET /admin/security/perspective/json/{perspectiveId}/{classId}/{objectId}

Get unrestricted (t.m. omitting view right) hierarchy of the specified object with the given class in the given perspective. Additional security scheme id information will be attached for each returned object.

Request Parameters
name type description default constraints
classId path The unique identifier of object class.   long
objectId path The unique identifier of object.   long
perspectiveId path The unique identifier of perspective.   long
childClassId query   long
Response Body
media type data type description
application/json object JSON Response with the list of children of the specified object in the given perspective.

Example of response:

{"children":[{"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"1","objectId":"325","classId":"12", "securityMask":"3", securitySchemeId: "1"},{"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"2","objectId":"327","classId":"12", "securityMask":"3", securitySchemeId: "1"},{"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"3","objectId":"192","classId":"12", "securityMask":"3", securitySchemeId: "1"},{"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"4","objectId":"158712","classId":"12", "securityMask":"3", securitySchemeId: "1"}],"hasChildren":true,"metadata":{},"contentType":0,"contentId":0,"objectName":"7102 XXX 2","objectId":"90","classId":"11", "securityMask":"3", securitySchemeId: "1"}

PUT /admin/security/object/tree/{perspectiveId}/{classId}/{objectId}/{securitySchemeId}

Set security scheme for given object tree in given perspective inclusion

Request Parameters
name type description default constraints
classId path   long
objectId path   long
perspectiveId path   long
securitySchemeId path   long
Response Body
media type data type description
*/* object