Class AssetResponse
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OCFOMASAPIResponse
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.AssetResponse
- All Implemented Interfaces:
Serializable,org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponse
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:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorAssetResponse(AssetResponse template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.org.odpi.openmetadata.frameworks.connectors.properties.beans.AssetgetAsset()Return the asset result.intReturn the count of attached certification.intReturn the count of attached comments.intReturn the count of connections for the asset.intReturn the count of external identifiers for this asset.intReturn the count of attached external references.intReturn the count of attached informal tags.intReturn the count of keywords for the asset.intReturn the count of known locations.Return the record of the last attachment to be made to the asset.intReturn the count of license for this asset.intReturn the number of likes for the asset.intReturn the count of attached note logs.intReturn the count of attached ratings.intReturn the count of related assets.intReturn the count of related media references.org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaTypeIs there an attached schema?inthashCode()Return hash code for this objectvoidsetAsset(org.odpi.openmetadata.frameworks.connectors.properties.beans.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(org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType schemaType) Set up whether there is an attached schema.toString()JSON-style toStringMethods 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 Details
-
AssetResponse
public AssetResponse()Default constructor -
AssetResponse
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getAsset
public org.odpi.openmetadata.frameworks.connectors.properties.beans.Asset getAsset()Return the asset result.- Returns:
- unique identifier
-
setAsset
public void setAsset(org.odpi.openmetadata.frameworks.connectors.properties.beans.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 org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType getSchemaType()Is there an attached schema?- Returns:
- schema type bean
-
setSchemaType
public void setSchemaType(org.odpi.openmetadata.frameworks.connectors.properties.beans.SchemaType schemaType) Set up whether there is an attached schema.- Parameters:
schemaType- schema type bean
-
getLastAttachment
Return the record of the last attachment to be made to the asset.- Returns:
- last attachment details
-
setLastAttachment
Set up the record of the last attachment to be made to the asset.- Parameters:
lastAttachment- last attachment details
-
toString
JSON-style toString- Overrides:
toStringin classOCFOMASAPIResponse- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equalsin classorg.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classorg.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase- Returns:
- int hash code
-