Constructor
HarmoniAsset
HarmoniAsset
(mixed $hierarchy, mixed $repository, mixed $id, mixed $configuration)
Add an Asset to this Asset.
void
addAsset
(mixed $assetId, object Id $assetId
)
Redefinition of:
- Asset::addAsset()
- Add an Asset to this Asset.
Add the specified RecordStructure and all the related Records from the specified asset.
void
copyRecordStructure
(object Id $assetId, mixed $recordStructureId, object Id $recordStructureId
)
-
object Id
$assetId
-
object Id
$recordStructureId
Redefinition of:
- Asset::copyRecordStructure()
- Add the specified RecordStructure and all the related Records from the specified asset.
Create a new Asset Record of the specified RecordStructure. The implementation of this method sets the Id for the new object.
object Record
createRecord
(
mixed $recordStructureId,
object Id $recordStructureId
)
-
object Id
$recordStructureId
Redefinition of:
- Asset::createRecord()
- Create a new Asset Record of the specified RecordStructure. The implementation of this method sets the Id for the new object.
Delete a Record. If the specified Record has content that is inherited by other Records, those other Records will not be deleted, but they will no longer have a source from which to inherit value changes.
void
deleteRecord
(mixed $recordId, object Id $recordId
)
Redefinition of:
- Asset::deleteRecord()
- Delete a Record. If the specified Record has content that is inherited by other Records, those other Records will not be deleted, but they will no longer have a source from which to inherit value changes.
Get all the Assets in this Asset. Iterators return a set, one at a time.
object AssetIterator
getAssets
()
Redefinition of:
- Asset::getAssets()
- Get all the Assets in this Asset. Iterators return a set, one at a time.
Get all the Assets of the specified AssetType in this Repository.
Iterators return a set, one at a time.
object AssetIterator
getAssetsByType
(mixed $assetType, object Type $assetType
)
Redefinition of:
- Asset::getAssetsByType()
- Get all the Assets of the specified AssetType in this Repository.
Get the AssetType of this Asset. AssetTypes are used to categorize Assets.
object Type
getAssetType
()
Redefinition of:
- Asset::getAssetType()
- Get the AssetType of this Asset. AssetTypes are used to categorize Assets.
Get an Asset's content. This method can be a convenience if one is not interested in all the structure of the Records.
object mixed
getContent
()
Redefinition of:
- Asset::getContent()
- Get an Asset's content. This method can be a convenience if one is not interested in all the structure of the Records.
Get the RecordStructure associated with this Asset's content.
object RecordStructure
getContentRecordStructure
()
Redefinition of:
- Asset::getContentRecordStructure()
- Get the RecordStructure associated with this Asset's content.
Get the date at which this Asset was created.
WARNING: NOT IN OSID
Answer the Id of the agent that created the asset
WARNING: NOT IN OSID
object Id
getCreator
()
Answer an iterator of the TraversalInfo of the decendent Assets (children, grandchildren, etc).
WARNING: NOT IN OSID
object TraversalInfoIterator
getDescendentInfo
()
Get the description for this Asset.
string
getDescription
()
Redefinition of:
- Asset::getDescription()
- Get the description for this Asset.
Get the display name for this Asset.
string
getDisplayName
()
Redefinition of:
- Asset::getDisplayName()
- Get the display name for this Asset.
Get the date at which this Asset is effective.
Redefinition of:
- Asset::getEffectiveDate()
- Get the date at which this Asset is effective.
Get the unique Id for this Asset.
object Id
getId
()
Redefinition of:
- Asset::getId()
- Get the unique Id for this Asset.
Get the date at which this Asset was created.
WARNING: NOT IN OSID
Get the parents of this asset, Iterators return a set one at a time.
WARNING: NOT IN OSID
object AssetIterator
getParents
()
Get the parents of this asset, Iterators return a set one at a time.
WARNING: NOT IN OSID
object AssetIterator
getParentsByType
(mixed $assetType, object Type $assetType
)
Get the Part for a Record for this Asset that matches this Part's unique Id.
object Part
getPart
(mixed $partId, object Id $partId
)
Redefinition of:
- Asset::getPart()
- Get the Part for a Record for this Asset that matches this Part's unique Id.
Get the Parts of the Records for this Asset that are based on this RecordStructure PartStructure's unique Id.
object PartIterator
getPartsByPartStructure
(mixed $partStructureId, object Id $partStructureId
)
-
object Id
$partStructureId
Redefinition of:
- Asset::getPartsByPartStructure()
- Get the Parts of the Records for this Asset that are based on this RecordStructure PartStructure's unique Id.
Get the Value of the Part of the Record for this Asset that matches this Part's unique Id.
object mixed
getPartValue
(mixed $partId, object Id $partId
)
Redefinition of:
- Asset::getPartValue()
- Get the Value of the Part of the Record for this Asset that matches this Part's unique Id.
Get the Values of the Parts of the Records for this Asset that are based on this RecordStructure PartStructure's unique Id.
object ObjectIterator
getPartValuesByPartStructure
(mixed $partStructureId, object Id $partStructureId
)
-
object Id
$partStructureId
Redefinition of:
- Asset::getPartValuesByPartStructure()
- Get the Values of the Parts of the Records for this Asset that are based on this RecordStructure PartStructure's unique Id.
Get the Record for this Asset that matches this Record's unique Id.
Redefinition of:
- Asset::getRecord()
- Get the Record for this Asset that matches this Record's unique Id.
Get all the Records for this Asset. Iterators return a set, one at a time.
object RecordIterator
getRecords
()
Redefinition of:
- Asset::getRecords()
- Get all the Records for this Asset. Iterators return a set, one at a time.
Get all the Records of the specified RecordStructure for this Asset.
Iterators return a set, one at a time.
object RecordIterator
getRecordsByRecordStructure
(mixed $recordStructureId, object Id $recordStructureId
)
-
object Id
$recordStructureId
Redefinition of:
- Asset::getRecordsByRecordStructure()
- Get all the Records of the specified RecordStructure for this Asset.
Get all the Records of the specified RecordStructureType for this Asset.
Iterators return a set, one at a time.
object RecordIterator
getRecordsByRecordStructureType
(mixed $recordStructureType, object Type $recordStructureType
)
-
object Type
$recordStructureType
Redefinition of:
- Asset::getRecordsByRecordStructureType()
- Get all the Records of the specified RecordStructureType for this Asset.
Get all the RecordStructures for this Asset. RecordStructures are used to categorize information about Assets. Iterators return a set, one at a time.
object RecordStructureIterator
getRecordStructures
()
Redefinition of:
- Asset::getRecordStructures()
- Get all the RecordStructures for this Asset. RecordStructures are used to categorize information about Assets. Iterators return a set, one at a time.
Get the Id of the Repository in which this Asset resides. This is set by the Repository's createAsset method.
WARNING::IMPLEMENTATION AND DOCUMENTATION DIFFER
object Id
getRepository
()
Redefinition of:
- Asset::getRepository()
- Get the Id of the Repository in which this Asset resides. This is set by the Repository's createAsset method.
Add the specified RecordStructure and all the related Records from the specified asset. The current and future content of the specified Record is synchronized automatically.
void
inheritRecordStructure
(object Id $assetId, mixed $recordStructureId, object Id $recordStructureId
)
-
object Id
$assetId
-
object Id
$recordStructureId
Redefinition of:
- Asset::inheritRecordStructure()
- Add the specified RecordStructure and all the related Records from the specified asset. The current and future content of the specified Record is synchronized automatically.
Remove an Asset from this Asset. This method does not delete the Asset from the Repository.
void
removeAsset
(object Id $assetId, [mixed $includeChildren = FALSE], boolean $includeChildren
)
-
object Id
$assetId
-
boolean
$includeChildren
Redefinition of:
- Asset::removeAsset()
- Remove an Asset from this Asset. This method does not delete the Asset from the Repository.
Update an Asset's content.
void
updateContent
(object mixed $content)
-
object mixed
$content: (original type: java.io.Serializable)
Redefinition of:
- Asset::updateContent()
- Update an Asset's content.
Update the description for this Asset.
void
updateDescription
(mixed $description, string $description
)
Redefinition of:
- Asset::updateDescription()
- Update the description for this Asset.
Update the display name for this Asset.
void
updateDisplayName
(mixed $displayName, string $displayName
)
Redefinition of:
- Asset::updateDisplayName()
- Update the display name for this Asset.
Update the date at which this Asset is effective.
Redefinition of:
- Asset::updateEffectiveDate()
- Update the date at which this Asset is effective.
Update the modification date and set the creation date if needed.
WARNING: NOT IN OSID
void
updateModificationDate
()
Answer the current agent id
object Id
_getCurrentAgent
()
Loads dates from the database and sets the _datesInDB flag
void
_loadDates
()
Store the effective and expiration Dates. getEffectiveDate or getExpirationDate should be called first to set the datesInDB flag.
void
_storeDates
()
Inherited Methods
Inherited From HarmoniAssetInterface
HarmoniAssetInterface::load()
HarmoniAssetInterface::save()
Inherited From Asset
Asset::addAsset()
Asset::copyRecordStructure()
Asset::createRecord()
Asset::deleteRecord()
Asset::getAssets()
Asset::getAssetsByType()
Asset::getAssetType()
Asset::getContent()
Asset::getContentRecordStructure()
Asset::getDescription()
Asset::getDisplayName()
Asset::getEffectiveDate()
Asset::getExpirationDate()
Asset::getId()
Asset::getPart()
Asset::getPartsByPartStructure()
Asset::getPartValue()
Asset::getPartValuesByPartStructure()
Asset::getRecord()
Asset::getRecords()
Asset::getRecordsByRecordStructure()
Asset::getRecordsByRecordStructureType()
Asset::getRecordStructures()
Asset::getRepository()
Asset::inheritRecordStructure()
Asset::removeAsset()
Asset::updateContent()
Asset::updateDescription()
Asset::updateDisplayName()
Asset::updateEffectiveDate()
Asset::updateExpirationDate()