Class Asset
java.lang.Object
org.odpi.openmetadata.metadatasecurity.properties.Referenceable
org.odpi.openmetadata.metadatasecurity.properties.Asset
Asset is a set of properties that describes an open metadata asset. It is designed to convey the important properties
needed to make a security decision.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Returns the stored description property for the asset.Returns the stored display name property for the asset.Return the properties that characterize where this asset is from.Return the names of the zones that this asset is a member of.int
hashCode()
Return hash code based on properties.void
setDescription
(String description) Set up the stored description property associated with the asset.void
setDisplayName
(String displayName) Set up the stored display name property for the asset.void
Set up the properties that characterize where this asset is from.void
setZoneMembership
(List<String> zoneMembership) Set up the names of the zones that this asset is a member of.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.metadatasecurity.properties.Referenceable
getAccessGroups, getAdditionalProperties, getConfidence, getConfidentiality, getCriticality, getExtendedProperties, getGUID, getImpact, getOwner, getOwnerPropertyName, getOwnerType, getOwnerTypeName, getQualifiedName, getRetention, getSecurityLabels, getSecurityProperties, getStatus, getTypeGUID, getTypeName, setAccessGroups, setAdditionalProperties, setConfidence, setConfidentiality, setCriticality, setExtendedProperties, setGUID, setImpact, setOwner, setOwnerPropertyName, setOwnerType, setOwnerTypeName, setQualifiedName, setRetention, setSecurityLabels, setSecurityProperties, setStatus, setTypeGUID, setTypeName
-
Constructor Details
-
Asset
public Asset()Default constructor -
Asset
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- template values for asset summary
-
-
Method Details
-
getDisplayName
Returns the stored display name property for the asset. If no display name is available then null is returned.- Returns:
- String name
-
setDisplayName
Set up the stored display name property for the asset.- Parameters:
displayName
- String name
-
getDescription
Returns the stored description property for the asset. If no description is provided then null is returned.- Returns:
- description String text
-
setDescription
Set up the stored description property associated with the asset.- Parameters:
description
- String text
-
getZoneMembership
Return the names of the zones that this asset is a member of.- Returns:
- list of zone names
-
setZoneMembership
Set up the names of the zones that this asset is a member of.- Parameters:
zoneMembership
- list of zone names
-
getOrigin
Return the properties that characterize where this asset is from.- Returns:
- map of name value pairs, all strings
-
setOrigin
Set up the properties that characterize where this asset is from.- Parameters:
origin
- map of name value pairs, all strings
-
toString
Standard toString method.- Overrides:
toString
in classReferenceable
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classReferenceable
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classReferenceable
- Returns:
- int
-