Class Asset
java.lang.Object
org.odpi.openmetadata.metadatasecurity.properties.Referenceable
org.odpi.openmetadata.metadatasecurity.properties.Asset
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare 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.getOwner()Returns the name of the owner for this asset.intReturn the type of owner stored in the owner property.Return the names of the zones that this asset is a member of.inthashCode()Return hash code based on properties.voidsetDescription(String description) Set up the stored description property associated with the asset.voidsetDisplayName(String displayName) Set up the stored display name property for the asset.voidSet up the properties that characterize where this asset is from.voidSet up the name of the owner for this asset.voidsetOwnerType(int ownerType) Set up the owner type for this asset.voidsetZoneMembership(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
getAdditionalProperties, getConfidence, getConfidentiality, getCriticality, getExtendedProperties, getGUID, getImpact, getQualifiedName, getRetention, getSecurityLabels, getSecurityProperties, getStatus, getTypeGUID, getTypeName, setAdditionalProperties, setConfidence, setConfidentiality, setCriticality, setExtendedProperties, setGUID, setImpact, 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
-
getOwner
Returns the name of the owner for this asset.- Returns:
- owner String
-
setOwner
Set up the name of the owner for this asset.- Parameters:
owner- String name
-
getOwnerType
public int getOwnerType()Return the type of owner stored in the owner property.- Returns:
- OwnerType enum
-
setOwnerType
public void setOwnerType(int ownerType) Set up the owner type for this asset.- Parameters:
ownerType- OwnerType enum
-
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:
toStringin 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:
equalsin classReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classReferenceable- Returns:
- int
-