new PermissionAnalyser(userPerm, db, patchContent, manager)
Parameters:
| Name | Type | Description |
|---|---|---|
userPerm |
olympe.dc.ValueDef.<olympe.df.ONumber> | |
db |
olympe.dc.DBView | |
patchContent |
PatchContent | |
manager |
olympe.dc.Manager |
- Implements:
Methods
-
createInstance(tag [, properties] [, id])
-
Creates an instance and returns it's tag
Parameters:
Name Type Argument Description tagstring New instance tag
propertiesMap.<string, ?*> <optional>
Instance's properties (map of properties names to values)
idnumber <optional>
operationId
- Implements:
-
createRelation(relationTag, originTag, destinationTag [, id])
-
Creates a relation between two instances.
Parameters:
Name Type Argument Description relationTagstring Tag of the relation
originTagstring Origin instance tag
destinationTagstring Destination instance tag
idnumber <optional>
operationId
- Implements:
-
deleteInstance(tag [, followRule] [, id])
-
Deletes the specified instance. If specified, apply the follow rules to make a clean delete.
Parameters:
Name Type Argument Description tagstring followRuleolympe.dc.FollowRules <optional>
idnumber <optional>
operationId
- Implements:
-
deleteRelation(relationTag, originTag, destinationTag [, id])
-
Removes a relation between two instances
Parameters:
Name Type Argument Description relationTagstring Tag of the relation
originTagstring Origin instance tag
destinationTagstring Destination instance tag
idnumber <optional>
operationId
- Implements:
-
updateInstance(tag [, properties] [, forceUpdate] [, id])
-
Updates an instance.
- If the instance does not exist, it will be automatically created
- Depending on the implementation, updates will be rejected if the provided "new" version is lower than the stored one
Parameters:
Name Type Argument Default Description tagstring Instance tag
propertiesMap.<string, ?*> <optional>
Instance properties
forceUpdateboolean <optional>
false If true, do not do any version check and accepts any update (used by rollbacks)
idnumber <optional>
operationId
- Implements:
Olympe SDK