The constructor.
void
StructuredMetaDataTagGenerator
()
Add a PartStructureId for which Tags should be auto-generated, in the given repository
void
addPartStructureIdForTagGeneration
(object Id $repositoryId, object Id $partStructureId)
-
object Id
$repositoryId
-
object Id
$partStructureId
Answer the database index
integer
getDatabaseIndex
()
Answer the PartStructure Ids for which Tags should be auto-generated, in the given repository.
object IdIterator
getPartStructureIdsForTagGeneration
(object Id $repositoryId)
Get the instance of StructuredMetaDataTagGenerator.
The StructuredMetaDataTagGenerator class implements the Singleton pattern. There is only ever one instance of the StructuredMetaDataTagGenerator object and it is accessed only via the StructuredMetaDataTagGenerator::instance() method.
Regenerate tags for a single Asset
void
regenerateTagsForAsset
(object Asset $asset, mixed $agentId, string $system, [optional $repositoryId = null], object Id $agent)
-
object Asset
$asset
-
object Id
$agent: Id The agent id to associate with these tags
-
string
$system: The system to associate with these tags
-
optional
$repositoryId: object Id $repositoryId Not required, but can enhance efficiency if it is known ahead of time.
Regenerate tags for a number of assets
void
regenerateTagsForAssets
(mixed $assets, mixed $agentId, string $system, [optional $repositoryId = null], object Id $agent)
-
mixed
$assets: An AssetIterator, an array of Assets, or a single Asset
-
object Id
$agent: Id The agent id to associate with these tags
-
string
$system: The system to associate with these tags
-
optional
$repositoryId: object Id $repositoryId Not required, but can enhance efficiency if it is known ahead of time.
Regenerate tags for all assets in the given repository
void
regenerateTagsForRepository
(object Id $repositoryId, mixed $agentId, string $system, object Id $agent)
-
object Id
$repositoryId
-
object Id
$agent: Id The agent id to associate with these tags
-
string
$system: The system to associate with these tags
Add a PartStructureId for which Tags should be auto-generated, in the given repository
void
removePartStructureIdForTagGeneration
(object Id $repositoryId, mixed $partStructureId)
Answer true if the PartStructure should have tags auto-generated for it in the given repository.
boolean
shouldGenerateTagsForPartStructure
(object Id $repositoryId, object Id $partStructureId)
-
object Id
$repositoryId
-
object Id
$partStructureId