...
Code Block | ||
---|---|---|
| ||
class Permission {
String guid; // synthetic key makes create/add/update APIs easier
String appId;
String userId;
String role; // "admin", "developer"
String objectType; // "study" or "organization"
String objectId; // "appId:studyId" or "appId:groupId"
boolean transitive; // e.g. true if permission comes from org membership
} |
The service (which we’ll probably access through Spring Security, see below):
...