new Permission()
- Source:
Properties:
Name | Type | Description |
---|---|---|
user |
UserGeneric | This is userid or username |
verb |
String | Verb is the action permitted: admin: corpus admin. admin can handle permission of other users read: can read addNew: can add/create new datum etc. edit: can edit/change the content of datum etc., including delete datum which is basically just changing datum states comment: can comment on datum etc. export: can export datum etc. |
directObject |
String | Object is sub-component of the corpus to which the action is directed: corpus: corpus and corpus details (description etc.) datum: datums in the corpus including their states session: sessions in the corpus datalist: datalists in the corpus |
The permission class specifies which user (User, Consultant or Bot)
can do what action to what component in a given corpus.
The specification needs three arguments: User, Verb, Object