Links an Agent to the thing it is paying attention to, so an agent can be given a set of profiles or organisations to work on. An Agent is one instance of an agent definition, and an agent has a target row for each entity it has been pointed at. The target entity is optional so that other kinds of thing, such as websites or products, can be targeted in future without a schema change. Everything is scoped by the admin organisation.
Group: Database Entities
Implements: Serializable, Relational
Properties
| Property | Returns | Description |
|---|---|---|
| adminOrg | Organisation | The account, ie the top level administrative organisation, this target belongs to. Always set, and lookups are scoped by it. |
| agent | Agent | The agent this is a target for. Always set, so every target belongs to exactly one agent. |
| createdDate | Date | When the agent was first pointed at this target. |
| id | long | The database-assigned unique identifier for this target. |
| modifiedDate | Date | When this target was last changed. Set to the creation time when the record is first made. |
| targetEntity | BaseEntity | The profile or organisation the agent is working on. Optional, because other kinds of thing may be targeted in future, for example websites or products, so check for null before using it. |
Methods
getId()
Returns: long
The database-assigned unique identifier for this target.
getAgent()
Returns: Agent
The agent this is a target for. Always set, so every target belongs to exactly one agent.
getTargetEntity()
Returns: BaseEntity
The profile or organisation the agent is working on. Optional, because other kinds of thing may be targeted in future, for example websites or products, so check for null before using it.
getAdminOrg()
Returns: Organisation
The account, ie the top level administrative organisation, this target belongs to. Always set, and lookups are scoped by it.
getModifiedDate()
Returns: Date
When this target was last changed. Set to the creation time when the record is first made.
getCreatedDate()
Returns: Date
When the agent was first pointed at this target.
rowId()
Returns: Long
The database identifier for this target, as the generic row id used across Kademi entities. Same value as the id.