public class AssetRelatedAsset extends AssetReferenceable
| Modifier and Type | Field and Description |
|---|---|
protected Asset |
assetBean |
protected RelatedAssetProperties |
relatedAssetProperties |
protected String |
relationshipAttributeName |
protected String |
relationshipTypeName |
referenceableBeanparentAsset| Constructor and Description |
|---|
AssetRelatedAsset(AssetDescriptor parentAsset,
AssetRelatedAsset templateRelatedAsset)
Copy/clone constructor
|
AssetRelatedAsset(AssetDescriptor parentAsset,
Asset assetBean,
String relationshipTypeName,
String relationshipAttributeName,
RelatedAssetProperties relatedAssetProperties)
Bean constructor with parent asset
|
AssetRelatedAsset(Asset assetBean,
String relationshipTypeName,
String relationshipAttributeName,
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 |
getRelationshipAttributeName()
Return the attribute name for the related asset.
|
String |
getRelationshipTypeName()
Return the name of the relationship between the anchor asset and th related asset
|
String |
getShortDescription()
Returns the summary description property for the related asset.
|
String |
toString()
Standard toString method.
|
getAdditionalProperties, getMeanings, getQualifiedName, getReferenceableBean, getSecurityTags, setBeangetAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, hashCode, setBeangetParentAsset, getParentAssetName, getParentAssetTypeNameprotected Asset assetBean
protected String relationshipTypeName
protected String relationshipAttributeName
protected RelatedAssetProperties relatedAssetProperties
public AssetRelatedAsset(Asset assetBean, String relationshipTypeName, String relationshipAttributeName, RelatedAssetProperties relatedAssetProperties)
assetBean - bean containing basic propertiesrelationshipTypeName - name of the relationship between the anchor asset and the related assetrelationshipAttributeName - name of the end of the relationship between the anchor asset and the related assetrelatedAssetProperties - client for retrieving properties from the serverpublic AssetRelatedAsset(AssetDescriptor parentAsset, Asset assetBean, String relationshipTypeName, String relationshipAttributeName, RelatedAssetProperties relatedAssetProperties)
parentAsset - descriptor for parent assetassetBean - bean containing basic propertiesrelationshipTypeName - name of the relationship between the anchor asset and th related assetrelationshipAttributeName - name of the end of the relationship between the anchor asset and the related assetrelatedAssetProperties - client for retrieving properties from the serverpublic AssetRelatedAsset(AssetDescriptor parentAsset, AssetRelatedAsset 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 String getRelationshipTypeName()
public String getRelationshipAttributeName()
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–2020 ODPi. All rights reserved.