/
Access Control Service (java)
NOTE: Trivore ID Documentation has moved to https://trivoreid.com
The content on this site IS OUT OF DATE!
This space has been archived!
Please go ahead to the new site!
Access Control Service (java)
For more information see Entity Access Control.
Initialize service
TrivoreID sdk = TrivoreID.mgmtApiClient();
AccessControlServiceImpl accessControlService = new AccessControlServiceImpl(sdk.accessControlService());
Getting access control objects
// get page with the first 5 access controls with the 'userId' in userIdWrite list
Criteria criteria2 = new Criteria(Filter.contains("userIdWrite", "userId"));
String sortBy = "attribute";
boolean ascending = true;
Page<AccessControl> page = accessControlService.getAll(criteria, sortBy, ascending);
Managing access control objects
// create new access control
// the function returns access control object with the generated id
AccessControl accessControl = accessControlService.create(new AccessControl());
String accessControlId = accessControl.getId();
// update access control
accessControl.setTitle("Example title");
accessControlService.update(accessControl);
// get access control
accessControl = accessControlService.get(accessControlId);
// delete access control
accessControlService.delete(accessControlId)
Access Control Models
, multiple selections available,
Related content
Access Control Service (python)
Access Control Service (python)
More like this
Access Right Service (java)
Access Right Service (java)
More like this
Authorisation Service (java)
Authorisation Service (java)
More like this
Contract Service (java)
Contract Service (java)
More like this
User Service (java)
User Service (java)
More like this
Access Right Service (python)
Access Right Service (python)
More like this