java.lang.Object
org.odpi.openmetadata.metadatasecurity.properties.Referenceable
org.odpi.openmetadata.metadatasecurity.properties.Asset

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.
  • Constructor Details

    • 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 Details

    • 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
    • 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:
      toString in class Referenceable
      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:
      equals in class Referenceable
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class Referenceable
      Returns:
      int