public class RelatedAsset extends AssetReferenceable
| Modifier and Type | Field and Description |
|---|---|
protected Asset |
assetBean |
protected RelatedAssetProperties |
relatedAssetProperties |
referenceableBeanparentAsset| Constructor and Description |
|---|
RelatedAsset(AssetDescriptor parentAsset,
Asset assetBean,
RelatedAssetProperties relatedAssetProperties)
Bean constructor with parent asset
|
RelatedAsset(AssetDescriptor parentAsset,
RelatedAsset templateRelatedAsset)
Copy/clone constructor
|
RelatedAsset(Asset assetBean,
RelatedAssetProperties relatedAssetProperties)
Bean constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
|
protected Asset |
getAssetBean()
Return the bean with basic information about the asset.
|
String |
getDescription()
Returns the stored description property for the related asset.
|
String |
getDisplayName()
Returns the stored display name property for the related asset.
|
String |
getOwner()
Returns the details of the owner for this related asset.
|
RelatedAssetProperties |
getRelatedAssetProperties()
Return the detailed properties for a related asset.
|
String |
getShortDescription()
Returns the summary description property for the related asset.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getQualifiedName, getReferenceableBeangetAssetClassifications, getElementHeaderBean, getGUID, getType, getURL, hashCodegetParentAsset, getParentAssetName, getParentAssetTypeNameprotected Asset assetBean
protected RelatedAssetProperties relatedAssetProperties
public RelatedAsset(Asset assetBean, RelatedAssetProperties relatedAssetProperties)
assetBean - bean containing basic propertiesrelatedAssetProperties - client for retrieving properties from the serverpublic RelatedAsset(AssetDescriptor parentAsset, Asset assetBean, RelatedAssetProperties relatedAssetProperties)
parentAsset - descriptor for parent assetassetBean - bean containing basic propertiesrelatedAssetProperties - client for retrieving properties from the serverpublic RelatedAsset(AssetDescriptor parentAsset, RelatedAsset templateRelatedAsset)
parentAsset - description of the asset that this related asset is attached to.templateRelatedAsset - template object to copy.protected Asset getAssetBean()
public String getDisplayName()
public String getShortDescription()
public String getDescription()
public String getOwner()
public RelatedAssetProperties getRelatedAssetProperties() throws PropertyServerException, UserNotAuthorizedException
UserNotAuthorizedException - the calling user does not have access to the asset.PropertyServerException - problems communicating with the property (metadata) serverpublic String toString()
toString in class AssetReferenceablepublic boolean equals(Object objectToCompare)
equals in class AssetReferenceableobjectToCompare - supplied objectCopyright © 2018 ODPi. All rights reserved.