|
FOSSredder 0.5.0
|
#include <Contract.h>
Public Member Functions | |
| Contract () | |
| Contract (const Contract &)=delete | |
| Contract & | operator= (const Contract &)=delete |
| Contract (Contract &&)=delete | |
| Contract & | operator= (Contract &&)=delete |
| void | rename (EntityName value) |
| Renames the contract with normalized entity text. | |
| void | rename (std::string value) |
| Renames the contract with raw text. | |
| void | setType (ContractType value) |
| Sets the contract type from a normalized value object. | |
| void | setType (std::string value) |
| Sets the contract type from raw text. | |
| void | setAllocatableMode (std::string value) |
| void | setActorIds (std::vector< std::string > value) |
| Replaces the linked actor ids with normalized values. | |
| void | addActorId (std::string value) |
| Adds an actor id when it is not already present. | |
| void | removeActorId (const std::string &value) |
| Removes an actor id from the contract. | |
| void | clearActorIds () |
| Clears all linked actor ids. | |
| void | setPropertyIds (std::vector< std::string > value) |
| Replaces the linked property ids with normalized values. | |
| void | addPropertyId (std::string value) |
| Adds a property id when it is not already present. | |
| void | removePropertyId (const std::string &value) |
| Removes a property id from the contract. | |
| void | clearPropertyIds () |
| Clears all linked property ids. | |
| void | addAlias (Alias value) |
| Adds a normalized alias when it is not already present. | |
| void | removeAlias (std::string value) |
| Removes an alias. | |
| void | recordAliasHit (std::string value, std::string timestamp={}) |
| Records a usage hit for an alias. | |
| bool | hasName () const noexcept |
| Checks whether the contract has a name. | |
| bool | hasAlias (const std::string &value) const |
| Checks whether an alias exists on the contract. | |
| std::size_t | aliasCount () const noexcept |
| Returns the number of aliases. | |
| bool | hasAliases () const noexcept |
| Checks whether the contract has any aliases. | |
| void | clearAliases () |
| Clears all aliases from the contract. | |
| bool | containsActorId (const std::string &value) const |
| Checks whether an actor id exists. | |
| bool | containsPropertyId (const std::string &value) const |
| Checks whether a property id exists. | |
| bool | hasSingleActor () const noexcept |
| Checks whether the contract has exactly one actor. | |
| bool | hasActorRelations () const noexcept |
| Checks whether any actor relations exist. | |
| bool | hasPropertyRelations () const noexcept |
| Checks whether any property relations exist. | |
| bool | hasRelations () const noexcept |
| Checks whether the contract has any relations. | |
| std::size_t | relationCount () const noexcept |
| Returns the total number of linked relations. | |
| std::size_t | actorCount () const noexcept |
| Returns the number of linked actors. | |
| std::size_t | propertyCount () const noexcept |
| Returns the number of linked properties. | |
| bool | hasType () const noexcept |
| Checks whether the contract has a type. | |
| bool | isConfigured () const noexcept |
| Checks whether the contract is fully configured. | |
| bool | isMatchingReady () const noexcept |
| Checks whether the contract is ready for matching. | |
| bool | isStandalone () const noexcept |
| Checks whether the contract has no actor or property links. | |
| const std::string & | id () const noexcept |
| const std::string & | name () const noexcept |
| const std::string & | type () const noexcept |
| const std::string & | allocatableMode () const noexcept |
| const std::vector< std::string > & | actorIds () const noexcept |
| const std::vector< std::string > & | propertyIds () const noexcept |
| const std::vector< Alias > & | aliases () 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) |
Definition at line 20 of file Contract.h.
|
default |

|
delete |

|
delete |

|
nodiscardnoexcept |
Returns the number of linked actors.
Definition at line 160 of file Contract.cpp.
|
nodiscardnoexcept |
Definition at line 188 of file Contract.cpp.
| void core::domain::Contract::addActorId | ( | std::string | value | ) |
Adds an actor id when it is not already present.
| value | Actor id to add. |
Definition at line 49 of file Contract.cpp.

| void core::domain::Contract::addAlias | ( | Alias | value | ) |
Adds a normalized alias when it is not already present.
| value | Alias to add. |
Definition at line 93 of file Contract.cpp.

| void core::domain::Contract::addPropertyId | ( | std::string | value | ) |
Adds a property id when it is not already present.
| value | Property id to add. |
Definition at line 71 of file Contract.cpp.

|
nodiscardnoexcept |
|
nodiscardnoexcept |
Definition at line 190 of file Contract.cpp.
|
nodiscardnoexcept |
Definition at line 187 of file Contract.cpp.
| void core::domain::Contract::clearActorIds | ( | ) |
Clears all linked actor ids.
Definition at line 62 of file Contract.cpp.
| void core::domain::Contract::clearAliases | ( | ) |
Clears all aliases from the contract.
Definition at line 126 of file Contract.cpp.
| void core::domain::Contract::clearPropertyIds | ( | ) |
Clears all linked property ids.
Definition at line 84 of file Contract.cpp.
|
nodiscard |
Checks whether an actor id exists.
| value | Actor id to search for. |
Definition at line 130 of file Contract.cpp.


|
nodiscard |
Checks whether a property id exists.
| value | Property id to search for. |
Definition at line 135 of file Contract.cpp.


|
nodiscardnoexcept |
Definition at line 191 of file Contract.cpp.
|
nodiscardnoexcept |
Checks whether any actor relations exist.
Definition at line 144 of file Contract.cpp.
|
nodiscard |
Checks whether an alias exists on the contract.
| value | Alias text to search for. |
Definition at line 114 of file Contract.cpp.

|
nodiscardnoexcept |
Checks whether the contract has any aliases.
Definition at line 122 of file Contract.cpp.

|
nodiscardnoexcept |
Checks whether the contract has a name.
Definition at line 110 of file Contract.cpp.

|
nodiscardnoexcept |
Checks whether any property relations exist.
Definition at line 148 of file Contract.cpp.
|
nodiscardnoexcept |
Checks whether the contract has any relations.
Definition at line 152 of file Contract.cpp.

|
nodiscardnoexcept |
Checks whether the contract has exactly one actor.
Definition at line 140 of file Contract.cpp.
|
nodiscardnoexcept |
Checks whether the contract has a type.
Definition at line 168 of file Contract.cpp.

|
nodiscardnoexcept |
Definition at line 184 of file Contract.cpp.
|
nodiscardnoexcept |
Checks whether the contract is fully configured.
Definition at line 172 of file Contract.cpp.


|
nodiscardnoexcept |
Checks whether the contract is ready for matching.
Definition at line 176 of file Contract.cpp.

|
nodiscardnoexcept |
Checks whether the contract has no actor or property links.
Definition at line 180 of file Contract.cpp.

|
nodiscardnoexcept |
Definition at line 185 of file Contract.cpp.


|
nodiscardnoexcept |
Returns the number of linked properties.
Definition at line 164 of file Contract.cpp.
|
nodiscardnoexcept |
Definition at line 189 of file Contract.cpp.
| void core::domain::Contract::recordAliasHit | ( | std::string | value, |
| std::string | timestamp = {} ) |
Records a usage hit for an alias.
| value | Alias value. |
| timestamp | Optional usage timestamp. |
Definition at line 106 of file Contract.cpp.

|
nodiscardnoexcept |
Returns the total number of linked relations.
Definition at line 156 of file Contract.cpp.
| void core::domain::Contract::removeActorId | ( | const std::string & | value | ) |
Removes an actor id from the contract.
| value | Actor id to remove. |
Definition at line 57 of file Contract.cpp.

| void core::domain::Contract::removeAlias | ( | std::string | value | ) |
Removes an alias.
| value | Alias to remove. |
Definition at line 101 of file Contract.cpp.

| void core::domain::Contract::removePropertyId | ( | const std::string & | value | ) |
Removes a property id from the contract.
| value | Property id to remove. |
Definition at line 79 of file Contract.cpp.

| void core::domain::Contract::rename | ( | EntityName | value | ) |
Renames the contract with normalized entity text.
| value | Normalized entity name wrapper. |
Definition at line 16 of file Contract.cpp.


| void core::domain::Contract::rename | ( | std::string | value | ) |
Renames the contract with raw text.
| value | Raw entity name text. |
Definition at line 20 of file Contract.cpp.

| void core::domain::Contract::setActorIds | ( | std::vector< std::string > | value | ) |
Replaces the linked actor ids with normalized values.
| value | Actor id list to store. |
Definition at line 44 of file Contract.cpp.
| void core::domain::Contract::setAliases | ( | std::vector< Alias > | value | ) |
| void core::domain::Contract::setAllocatableMode | ( | std::string | value | ) |
| void core::domain::Contract::setCreatedAt | ( | std::string | value | ) |
Definition at line 194 of file Contract.cpp.
| void core::domain::Contract::setId | ( | std::string | value | ) |
Definition at line 193 of file Contract.cpp.
| void core::domain::Contract::setPropertyIds | ( | std::vector< std::string > | value | ) |
Replaces the linked property ids with normalized values.
| value | Property id list to store. |
Definition at line 66 of file Contract.cpp.
| void core::domain::Contract::setType | ( | ContractType | value | ) |
Sets the contract type from a normalized value object.
| value | Normalized contract type wrapper. |
Definition at line 24 of file Contract.cpp.


| void core::domain::Contract::setType | ( | std::string | value | ) |
Sets the contract type from raw text.
| value | Raw contract type text. |
Definition at line 28 of file Contract.cpp.

| void core::domain::Contract::setUpdatedAt | ( | std::string | value | ) |
Definition at line 195 of file Contract.cpp.
|
nodiscardnoexcept |
Definition at line 186 of file Contract.cpp.
|
nodiscardnoexcept |
Definition at line 192 of file Contract.cpp.