IWithAssociationBehavior
Composable behavior that adds permissions to an entity
Methods
| Method | Returns | Notes |
|---|---|---|
|
|
void |
** DEPRECATED: please use requestAssociation directly. This will be removed in the next breaking version ** Add an association to the entity. Entity needs to be saved after calling this method |
|
|
IAssociationInfo[] |
** DEPRECATED: This will be removed in the next breaking version ** Get a list of the associations for an AssociationType |
|
|
void |
** DEPRECATED: please use breakAssociation directly. This will be removed in the next breaking version ** Remove an association to the entity. Entity needs to be saved after calling this method |
addAssociation
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| info Required | IAssociationInfo |
Returns
Add an association to the entity. Entity needs to be saved after calling this method
listAssociations
** DEPRECATED: This will be removed in the next breaking version **
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| type Required | AssociationType |
Returns
Get a list of the associations for an AssociationType
removeAssociation
** DEPRECATED: please use breakAssociation directly. This will be removed in the next breaking version **
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| info Required | IAssociationInfo |
Returns
Remove an association to the entity. Entity needs to be saved after calling this method
Interface defined in common/src/core/behaviors/IWIthAssociationBehavior.ts:6
** DEPRECATED: please use requestAssociation directly. This will be removed in the next breaking version **