Class Asset
- java.lang.Object
-
- org.odpi.openmetadata.metadatasecurity.properties.Referenceable
-
- org.odpi.openmetadata.metadatasecurity.properties.Asset
-
- All Implemented Interfaces:
Serializable
public class Asset extends Referenceable
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetDescription()Returns the stored description property for the asset.StringgetDisplayName()Returns the stored display name property for the asset.Map<String,String>getOrigin()Return the properties that characterize where this asset is from.StringgetOwner()Returns the name of the owner for this asset.intgetOwnerType()Return the type of owner stored in the owner property.List<String>getZoneMembership()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.voidsetOrigin(Map<String,String> origin)Set up the properties that characterize where this asset is from.voidsetOwner(String owner)Set 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.StringtoString()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 Detail
-
Asset
public Asset()
Default constructor
-
Asset
public Asset(Asset template)
Copy/clone constructor. Note, this is a deep copy- Parameters:
template- template values for asset summary
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Returns the stored display name property for the asset. If no display name is available then null is returned.- Returns:
- String name
-
setDisplayName
public void setDisplayName(String displayName)
Set up the stored display name property for the asset.- Parameters:
displayName- String name
-
getDescription
public String getDescription()
Returns the stored description property for the asset. If no description is provided then null is returned.- Returns:
- description String text
-
setDescription
public void setDescription(String description)
Set up the stored description property associated with the asset.- Parameters:
description- String text
-
getOwner
public String getOwner()
Returns the name of the owner for this asset.- Returns:
- owner String
-
setOwner
public void setOwner(String owner)
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
public List<String> getZoneMembership()
Return the names of the zones that this asset is a member of.- Returns:
- list of zone names
-
setZoneMembership
public void setZoneMembership(List<String> zoneMembership)
Set up the names of the zones that this asset is a member of.- Parameters:
zoneMembership- list of zone names
-
getOrigin
public Map<String,String> getOrigin()
Return the properties that characterize where this asset is from.- Returns:
- map of name value pairs, all strings
-
setOrigin
public void setOrigin(Map<String,String> origin)
Set up the properties that characterize where this asset is from.- Parameters:
origin- map of name value pairs, all strings
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classReferenceable- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
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
-
-