FOSSredder 0.5.0
Loading...
Searching...
No Matches
core::domain::Actor Class Reference

#include <Actor.h>

Public Member Functions

 Actor ()
 Actor (const Actor &)=delete
Actor & operator= (const Actor &)=delete
 Actor (Actor &&)=delete
Actor & operator= (Actor &&)=delete
void rename (EntityName value)
 Renames the actor with normalized entity text.
void rename (std::string value)
 Renames the actor with raw text.
void addAlias (Alias value)
 Adds a normalized alias when it is not already present.
void removeAlias (std::string value)
 Removes an alias.
void clearAliases ()
 Clears all aliases from the actor.
void recordAliasHit (std::string value, std::string timestamp={})
 Records a usage hit for an alias.
bool hasAlias (const std::string &value) const
 Checks whether an alias exists on the actor.
std::size_t aliasCount () const noexcept
 Returns the number of aliases.
void setContractIds (std::vector< std::string > value)
 Replaces all linked contract identifiers.
void addContractId (std::string value)
 Adds a linked contract identifier when it is not already present.
void removeContractId (std::string value)
 Removes a linked contract identifier.
void clearContractIds ()
 Clears all linked contract identifiers.
bool hasContractRelations () const noexcept
 Checks whether the actor has at least one linked contract.
std::size_t contractCount () const noexcept
 Returns the number of linked contract identifiers.
const std::string & id () const noexcept
const std::string & name () const noexcept
const std::vector< Alias > & aliases () const noexcept
const std::vector< std::string > & contractIds () const noexcept
const std::string & createdAt () const noexcept
const std::string & updatedAt () const noexcept
void setId (std::string value)
void setAliases (std::vector< Alias > value)
void setCreatedAt (std::string value)
void setUpdatedAt (std::string value)

Detailed Description

Definition at line 19 of file Actor.h.

Constructor & Destructor Documentation

◆ Actor() [1/3]

core::domain::Actor::Actor ( )
default
Here is the caller graph for this function:

◆ Actor() [2/3]

core::domain::Actor::Actor ( const Actor & )
delete
Here is the call graph for this function:

◆ Actor() [3/3]

core::domain::Actor::Actor ( Actor && )
delete
Here is the call graph for this function:

Member Function Documentation

◆ addAlias()

void core::domain::Actor::addAlias ( Alias value)

Adds a normalized alias when it is not already present.

Parameters
valueAlias to add.

Definition at line 34 of file Actor.cpp.

Here is the call graph for this function:

◆ addContractId()

void core::domain::Actor::addContractId ( std::string value)

Adds a linked contract identifier when it is not already present.

Parameters
valueContract identifier to add.

Definition at line 63 of file Actor.cpp.

Here is the call graph for this function:

◆ aliasCount()

std::size_t core::domain::Actor::aliasCount ( ) const
nodiscardnoexcept

Returns the number of aliases.

Returns
Alias count.

Definition at line 59 of file Actor.cpp.

◆ aliases()

const std::vector< Alias > & core::domain::Actor::aliases ( ) const
nodiscardnoexcept

Definition at line 90 of file Actor.cpp.

◆ clearAliases()

void core::domain::Actor::clearAliases ( )

Clears all aliases from the actor.

Definition at line 47 of file Actor.cpp.

◆ clearContractIds()

void core::domain::Actor::clearContractIds ( )

Clears all linked contract identifiers.

Definition at line 76 of file Actor.cpp.

◆ contractCount()

std::size_t core::domain::Actor::contractCount ( ) const
nodiscardnoexcept

Returns the number of linked contract identifiers.

Returns
Contract relation count.

Definition at line 84 of file Actor.cpp.

◆ contractIds()

const std::vector< std::string > & core::domain::Actor::contractIds ( ) const
nodiscardnoexcept

Definition at line 91 of file Actor.cpp.

◆ createdAt()

const std::string & core::domain::Actor::createdAt ( ) const
nodiscardnoexcept

Definition at line 92 of file Actor.cpp.

◆ hasAlias()

bool core::domain::Actor::hasAlias ( const std::string & value) const
nodiscard

Checks whether an alias exists on the actor.

Parameters
valueAlias text to search for.
Returns
true when the alias exists.

Definition at line 55 of file Actor.cpp.

Here is the call graph for this function:

◆ hasContractRelations()

bool core::domain::Actor::hasContractRelations ( ) const
nodiscardnoexcept

Checks whether the actor has at least one linked contract.

Returns
true when any contract relation exists.

Definition at line 80 of file Actor.cpp.

◆ id()

const std::string & core::domain::Actor::id ( ) const
nodiscardnoexcept

Definition at line 88 of file Actor.cpp.

◆ name()

const std::string & core::domain::Actor::name ( ) const
nodiscardnoexcept

Definition at line 89 of file Actor.cpp.

◆ operator=() [1/2]

Actor & core::domain::Actor::operator= ( Actor && )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

Actor & core::domain::Actor::operator= ( const Actor & )
delete
Here is the call graph for this function:

◆ recordAliasHit()

void core::domain::Actor::recordAliasHit ( std::string value,
std::string timestamp = {} )

Records a usage hit for an alias.

Parameters
valueAlias value.
timestampOptional usage timestamp.

Definition at line 51 of file Actor.cpp.

Here is the call graph for this function:

◆ removeAlias()

void core::domain::Actor::removeAlias ( std::string value)

Removes an alias.

Parameters
valueAlias to remove.

Definition at line 42 of file Actor.cpp.

Here is the call graph for this function:

◆ removeContractId()

void core::domain::Actor::removeContractId ( std::string value)

Removes a linked contract identifier.

Parameters
valueContract identifier to remove.

Definition at line 71 of file Actor.cpp.

Here is the call graph for this function:

◆ rename() [1/2]

void core::domain::Actor::rename ( EntityName value)

Renames the actor with normalized entity text.

Parameters
valueNormalized entity name wrapper.

Definition at line 15 of file Actor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rename() [2/2]

void core::domain::Actor::rename ( std::string value)

Renames the actor with raw text.

Parameters
valueRaw entity name text.

Definition at line 19 of file Actor.cpp.

Here is the call graph for this function:

◆ setAliases()

void core::domain::Actor::setAliases ( std::vector< Alias > value)

Definition at line 23 of file Actor.cpp.

Here is the call graph for this function:

◆ setContractIds()

void core::domain::Actor::setContractIds ( std::vector< std::string > value)

Replaces all linked contract identifiers.

Parameters
valueContract identifiers.

Definition at line 28 of file Actor.cpp.

◆ setCreatedAt()

void core::domain::Actor::setCreatedAt ( std::string value)

Definition at line 95 of file Actor.cpp.

◆ setId()

void core::domain::Actor::setId ( std::string value)

Definition at line 94 of file Actor.cpp.

◆ setUpdatedAt()

void core::domain::Actor::setUpdatedAt ( std::string value)

Definition at line 96 of file Actor.cpp.

◆ updatedAt()

const std::string & core::domain::Actor::updatedAt ( ) const
nodiscardnoexcept

Definition at line 93 of file Actor.cpp.


The documentation for this class was generated from the following files: