entities~RelationshipTypesManager(applicationContext)

Management service for relationship types.

new RelationshipTypesManager(applicationContext)

Constructs the RelationshipTypeManager.
Parameters:
Name Type Description
applicationContext object The application context.

Methods

create(name) → {RelationshipType}

Creates a new relationship type.
Parameters:
Name Type Description
name string The name of the relationship type.
Returns:
RelationshipType - The relationship type.

getAll() → {Array.<RelationshipType>}

Returns all relationship types.
Returns:
Array.<RelationshipType> - The list of relationship types.

getByName(name) → {RelationshipType}

Returns the relationship type with the given name.
Parameters:
Name Type Description
name string The name of the relationship type.
Returns:
RelationshipType - The relationship type.

getByUuid(uuid) → {RelationshipType}

Returns the relationship type with the given uuid.
Parameters:
Name Type Description
uuid string The uuid of the relationship type.
Returns:
RelationshipType - The relationship type.

remove(relationshipType)

Removes the given relationship type.
Parameters:
Name Type Description
relationshipType RelationshipType The relationship type.