IWithAssociationBehavior

Interface

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

addAssociation

Interface Method

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

Parameters

Parameter Type Default Notes
info Required IAssociationInfo

Returns

void

listAssociations

Interface Method

Get a list of the associations for an AssociationType

Parameters

Parameter Type Default Notes
type Required AssociationType

Returns

removeAssociation

Interface Method

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