37 void rename(std::string value);
61 void recordAliasHit(std::string value, std::string timestamp = {});
68 [[nodiscard]]
bool hasAlias(
const std::string& value)
const;
74 [[nodiscard]] std::size_t
aliasCount() const noexcept;
114 std::vector<
Alias> aliases_;
115 std::vector<std::
string> contractIds_;
116 std::
string createdAt_;
117 std::
string updatedAt_;
121 [[nodiscard]] const std::
string&
id() const noexcept;
122 [[nodiscard]] const std::
string&
name() const noexcept;
123 [[nodiscard]] const std::vector<
Alias>&
aliases() const noexcept;
124 [[nodiscard]] const std::vector<std::
string>&
contractIds() const noexcept;
125 [[nodiscard]] const std::
string&
createdAt() const noexcept;
126 [[nodiscard]] const std::
string&
updatedAt() const noexcept;
129 void setId(std::
string value);
Domain model for entity aliases.
Shared alias normalization and ranking helpers for core entities.
Small value object for normalized entity display names.
void setAliases(std::vector< Alias > value)
const std::string & updatedAt() const noexcept
void addAlias(Alias value)
Adds a normalized alias when it is not already present.
void clearAliases()
Clears all aliases from the actor.
bool hasContractRelations() const noexcept
Checks whether the actor has at least one linked contract.
void removeContractId(std::string value)
Removes a linked contract identifier.
std::size_t aliasCount() const noexcept
Returns the number of aliases.
void rename(EntityName value)
Renames the actor with normalized entity text.
Actor(const Actor &)=delete
void removeAlias(std::string value)
Removes an alias.
const std::string & name() const noexcept
const std::vector< std::string > & contractIds() const noexcept
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 recordAliasHit(std::string value, std::string timestamp={})
Records a usage hit for an alias.
void setUpdatedAt(std::string value)
std::size_t contractCount() const noexcept
Returns the number of linked contract identifiers.
Actor & operator=(Actor &&)=delete
void setId(std::string value)
const std::vector< Alias > & aliases() const noexcept
bool hasAlias(const std::string &value) const
Checks whether an alias exists on the actor.
void setCreatedAt(std::string value)
const std::string & createdAt() const noexcept
Actor & operator=(const Actor &)=delete
void clearContractIds()
Clears all linked contract identifiers.