public class RevisionAssetDataImpl extends AssetDataImpl implements RevisionAssetData
RevisionAssetDataImpl class.
Modifier | Constructor and Description |
---|---|
protected |
RevisionAssetDataImpl(AssetData copy)
Create an AssetData by copying an existing one.
|
|
RevisionAssetDataImpl(AssetId id)
Create an AssetData object with asset ID.
|
|
RevisionAssetDataImpl(AssetTypeDef assettype,
AssetId id)
Create an AssetData object with AssetTypeDef and asset ID.
|
Modifier and Type | Method and Description |
---|---|
List<AssetId> |
getImmediateParents()
Returns the Asset Identifiers of immediate parents, if any.
|
List<AssetId> |
getImmediateParents(String parentDefName)
Returns the Asset Identifiers of immediate parents, if any.
|
List<AssetId> |
getParents()
Returns Asset identifiers of parent assets, if any.
|
void |
setImmediateParent(AssetId parentAssetId)
Method to add one parent at a time to the immediate parents list for a revision asset.
|
void |
setParents(List<AssetId> id)
Sets parent assets for this instance of AssetData.
|
addAssociation, addAttributeData, getAssetId, getAssetTypeDef, getAssociatedAssets, getAssociationNames, getAttributeData, getAttributeData, getAttributeData, getAttributeNames, getTreeNodeParentAssetId, removeAttributeData, setAssetId, setAssociation, setAssociationsLoaded, setAttributeData, setTreeNodeParentAssetId
public RevisionAssetDataImpl(AssetId id)
id
- - AssetId, the type and ID of the asset.public RevisionAssetDataImpl(AssetTypeDef assettype, AssetId id)
assettype
- - AssetTypeDef, the asset type definition of the asset.id
- - AssetId, the asset type and id of the asset.protected RevisionAssetDataImpl(AssetData copy) throws AssetAccessException
copy
- the asset data where to copy the data from.AssetAccessException
- is thrown when error happens read the data.public List<AssetId> getImmediateParents() throws AssetAccessException
AssetData
getImmediateParents
in interface AssetData
getImmediateParents
in class AssetDataImpl
AssetAccessException
- captures layer specific failures and wraps other internal excetpionspublic List<AssetId> getImmediateParents(String parentDefName) throws AssetAccessException
AssetData
getImmediateParents
in interface AssetData
getImmediateParents
in class AssetDataImpl
parentDefName
- the name of the parent definition.AssetAccessException
- captures layer specific failures and wraps other internal exceptions.public List<AssetId> getParents() throws AssetAccessException
getParents
in interface AssetData
getParents
in class AssetDataImpl
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.public void setParents(List<AssetId> id) throws AssetAccessException
MutableAssetData
setParents
in interface MutableAssetData
setParents
in class AssetDataImpl
id
- IDs of parents.AssetAccessException
- throw this Exception if error met.public void setImmediateParent(AssetId parentAssetId) throws AssetAccessException
RevisionAssetData
setImmediateParent
in interface RevisionAssetData
parentAssetId
- Asset Id of the parent assetAssetAccessException
- Anything goes wrong in deciding the group of the parent
asset or it is not of the same type as that is configured
in the asset definition.