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