IWithAssociationBehavior

Interface

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

Interface Method

** DEPRECATED: please use requestAssociation directly. This will be removed in the next breaking version **

Parameters

Parameter Type Default Notes
info Required IAssociationInfo

Returns

void

Add an association to the entity. Entity needs to be saved after calling this method

listAssociations

Interface Method

** 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

Interface Method

** DEPRECATED: please use breakAssociation directly. This will be removed in the next breaking version **

Parameters

Parameter Type Default Notes
info Required IAssociationInfo

Returns

void

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