Class AssetResponse
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OCFOMASAPIResponse
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.AssetResponse
-
- All Implemented Interfaces:
Serializable,FFDCResponse
public class AssetResponse extends OCFOMASAPIResponse
AssetResponse is the response structure used on the OMAS REST API calls that return a asset bean object as a response. It also returns counts of the number of connected elements for the asset. This can be implemented cheaply as a single pass through the relationships linked to the asset and, assuming that the AssetUniverse structure is sparsely populated, and most callers only assess a specific subset of the information, it reduces the number of server calls needed to populate the AssetUniverse.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetResponse()Default constructorAssetResponse(AssetResponse template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.AssetgetAsset()Return the asset result.intgetCertificationCount()Return the count of attached certification.intgetCommentCount()Return the count of attached comments.intgetConnectionCount()Return the count of connections for the asset.intgetExternalIdentifierCount()Return the count of external identifiers for this asset.intgetExternalReferencesCount()Return the count of attached external references.intgetInformalTagCount()Return the count of attached informal tags.intgetKeywordCount()Return the count of keywords for the asset.intgetKnownLocationsCount()Return the count of known locations.LastAttachmentgetLastAttachment()Return the record of the last attachment to be made to the asset.intgetLicenseCount()Return the count of license for this asset.intgetLikeCount()Return the number of likes for the asset.intgetNoteLogsCount()Return the count of attached note logs.intgetRatingsCount()Return the count of attached ratings.intgetRelatedAssetCount()Return the count of related assets.intgetRelatedMediaReferenceCount()Return the count of related media references.SchemaTypegetSchemaType()Is there an attached schema?inthashCode()Return hash code for this objectvoidsetAsset(Asset asset)Set up the asset result.voidsetCertificationCount(int certificationCount)Set up the count of attached certifications for the asset.voidsetCommentCount(int commentCount)Set up the count of attached comments.voidsetConnectionCount(int connectionCount)Set up the count of connections.voidsetExternalIdentifierCount(int externalIdentifierCount)Set up the count of external identifiers for this asset.voidsetExternalReferencesCount(int externalReferencesCount)Set up the count of attached external references.voidsetInformalTagCount(int informalTagCount)Set up the count of attached informal tags.voidsetKeywordCount(int keywordCount)Set up the count of keywords for the asset.voidsetKnownLocationsCount(int knownLocationsCount)Set up the count of known locations.voidsetLastAttachment(LastAttachment lastAttachment)Set up the record of the last attachment to be made to the asset.voidsetLicenseCount(int licenseCount)Set up the count of licenses for this asset.voidsetLikeCount(int likeCount)Set up the count of likes for the asset.voidsetNoteLogsCount(int noteLogsCount)Set up the count of attached note logs.voidsetRatingsCount(int ratingsCount)Set up the count of attach ratings.voidsetRelatedAssetCount(int relatedAssetCount)Set up the count of related assets.voidsetRelatedMediaReferenceCount(int relatedMediaReferenceCount)Set up the count of related media references.voidsetSchemaType(SchemaType schemaType)Set up whether there is an attached schema.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
getActionDescription, getExceptionCausedBy, getExceptionClassName, getExceptionErrorMessage, getExceptionErrorMessageId, getExceptionErrorMessageParameters, getExceptionProperties, getExceptionSystemAction, getExceptionUserAction, getRelatedHTTPCode, setActionDescription, setExceptionCausedBy, setExceptionClassName, setExceptionErrorMessage, setExceptionErrorMessageId, setExceptionErrorMessageParameters, setExceptionProperties, setExceptionSystemAction, setExceptionUserAction, setRelatedHTTPCode
-
-
-
-
Constructor Detail
-
AssetResponse
public AssetResponse()
Default constructor
-
AssetResponse
public AssetResponse(AssetResponse template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getAsset
public Asset getAsset()
Return the asset result.- Returns:
- unique identifier
-
setAsset
public void setAsset(Asset asset)
Set up the asset result.- Parameters:
asset- unique identifier
-
getCertificationCount
public int getCertificationCount()
Return the count of attached certification.- Returns:
- count
-
setCertificationCount
public void setCertificationCount(int certificationCount)
Set up the count of attached certifications for the asset.- Parameters:
certificationCount- count
-
getCommentCount
public int getCommentCount()
Return the count of attached comments.- Returns:
- count
-
setCommentCount
public void setCommentCount(int commentCount)
Set up the count of attached comments.- Parameters:
commentCount- count
-
getConnectionCount
public int getConnectionCount()
Return the count of connections for the asset.- Returns:
- count
-
setConnectionCount
public void setConnectionCount(int connectionCount)
Set up the count of connections.- Parameters:
connectionCount- count
-
getExternalIdentifierCount
public int getExternalIdentifierCount()
Return the count of external identifiers for this asset.- Returns:
- count
-
setExternalIdentifierCount
public void setExternalIdentifierCount(int externalIdentifierCount)
Set up the count of external identifiers for this asset.- Parameters:
externalIdentifierCount- count
-
getExternalReferencesCount
public int getExternalReferencesCount()
Return the count of attached external references.- Returns:
- count
-
setExternalReferencesCount
public void setExternalReferencesCount(int externalReferencesCount)
Set up the count of attached external references.- Parameters:
externalReferencesCount- count
-
getInformalTagCount
public int getInformalTagCount()
Return the count of attached informal tags.- Returns:
- count
-
setInformalTagCount
public void setInformalTagCount(int informalTagCount)
Set up the count of attached informal tags.- Parameters:
informalTagCount- count
-
getLicenseCount
public int getLicenseCount()
Return the count of license for this asset.- Returns:
- count
-
setLicenseCount
public void setLicenseCount(int licenseCount)
Set up the count of licenses for this asset.- Parameters:
licenseCount- count
-
getLikeCount
public int getLikeCount()
Return the number of likes for the asset.- Returns:
- count
-
setLikeCount
public void setLikeCount(int likeCount)
Set up the count of likes for the asset.- Parameters:
likeCount- count
-
getKeywordCount
public int getKeywordCount()
Return the count of keywords for the asset.- Returns:
- count
-
setKeywordCount
public void setKeywordCount(int keywordCount)
Set up the count of keywords for the asset.- Parameters:
keywordCount- count
-
getKnownLocationsCount
public int getKnownLocationsCount()
Return the count of known locations.- Returns:
- count
-
setKnownLocationsCount
public void setKnownLocationsCount(int knownLocationsCount)
Set up the count of known locations.- Parameters:
knownLocationsCount- count
-
getNoteLogsCount
public int getNoteLogsCount()
Return the count of attached note logs.- Returns:
- count
-
setNoteLogsCount
public void setNoteLogsCount(int noteLogsCount)
Set up the count of attached note logs.- Parameters:
noteLogsCount- count
-
getRatingsCount
public int getRatingsCount()
Return the count of attached ratings.- Returns:
- count
-
setRatingsCount
public void setRatingsCount(int ratingsCount)
Set up the count of attach ratings.- Parameters:
ratingsCount- count
-
getRelatedAssetCount
public int getRelatedAssetCount()
Return the count of related assets.- Returns:
- count
-
setRelatedAssetCount
public void setRelatedAssetCount(int relatedAssetCount)
Set up the count of related assets.- Parameters:
relatedAssetCount- count
-
getRelatedMediaReferenceCount
public int getRelatedMediaReferenceCount()
Return the count of related media references.- Returns:
- count
-
setRelatedMediaReferenceCount
public void setRelatedMediaReferenceCount(int relatedMediaReferenceCount)
Set up the count of related media references.- Parameters:
relatedMediaReferenceCount- count
-
getSchemaType
public SchemaType getSchemaType()
Is there an attached schema?- Returns:
- schema type bean
-
setSchemaType
public void setSchemaType(SchemaType schemaType)
Set up whether there is an attached schema.- Parameters:
schemaType- schema type bean
-
getLastAttachment
public LastAttachment getLastAttachment()
Return the record of the last attachment to be made to the asset.- Returns:
- last attachment details
-
setLastAttachment
public void setLastAttachment(LastAttachment lastAttachment)
Set up the record of the last attachment to be made to the asset.- Parameters:
lastAttachment- last attachment details
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classOCFOMASAPIResponse- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equalsin classFFDCResponseBase- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classFFDCResponseBase- Returns:
- int hash code
-
-