Class AssetDetails

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void appendAtlanTags​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> assetMap, java.lang.String typeName)
      Retrieve a mapping of the assets that need to be retagged.
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getAnnouncementMessage()  
      java.lang.String getAnnouncementTitle()  
      com.atlan.model.enums.AtlanAnnouncementType getAnnouncementType()  
      java.util.List<java.lang.String> getAtlanTags()  
      protected static boolean getBoolean​(java.lang.String candidate)
      Translate the provided cell value into a boolean.
      com.atlan.model.enums.CertificateStatus getCertificate()  
      java.lang.String getCertificateStatusMessage()  
      java.lang.String getDescription()  
      protected static <T extends AssetDetails.AssetDetailsBuilder<?,​?>>
      T
      getFromRow​(T builder, java.util.Map<java.lang.String,​java.lang.String> row, java.lang.String delim)
      Build up details about the asset on the provided row.
      abstract java.lang.String getIdentity()
      Retrieve the unique identity of this asset for deduplication across rows.
      protected static java.util.List<java.lang.String> getMissingFields​(java.util.Map<java.lang.String,​java.lang.String> row, java.util.Collection<java.lang.String> requiredFields)
      Validates whether the provided row of data has all the fields required for this kind of asset.
      protected static java.util.List<java.lang.String> getMultiValuedList​(java.lang.String candidate, java.lang.String delim)
      Retrieve a list of multiple values from the provided cell contents.
      java.util.List<java.lang.String> getOwnerGroups()  
      java.util.List<java.lang.String> getOwnerUsers()  
      protected static java.util.List<java.lang.String> getRequiredEmptyFields​(java.util.Map<java.lang.String,​java.lang.String> row, java.util.Collection<java.lang.String> requiredEmptyFields)
      Validates whether the provided row of data has any of the other fields populated, indicating this row is for some other kind of asset.
      int hashCode()  
      boolean isStub()  
      protected static void selectivelyUpdateCustomMetadata​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​com.atlan.model.core.CustomMetadataAttributes>> guidMap)
      Selectively update the custom metadata for the provided assets.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getIdentity

        public abstract java.lang.String getIdentity()
        Retrieve the unique identity of this asset for deduplication across rows.
        Returns:
        String giving the unique identity of the asset
      • getFromRow

        protected static <T extends AssetDetails.AssetDetailsBuilder<?,​?>> T getFromRow​(T builder,
                                                                                              java.util.Map<java.lang.String,​java.lang.String> row,
                                                                                              java.lang.String delim)
        Build up details about the asset on the provided row.
        Parameters:
        builder - into which to append the details from the row
        row - a row of data from the spreadsheet, as a map from column name to value
        delim - delimiter used in cells that can contain multiple values
        Returns:
        the asset details for that row
      • getBoolean

        protected static boolean getBoolean​(java.lang.String candidate)
        Translate the provided cell value into a boolean. Any case-insensitive: `X`, `Y`, `YES`, or `TRUE` are truthful values, and any other values (including a blank) are false.
        Parameters:
        candidate - to translate to a boolean
        Returns:
        the boolean equivalent
      • getMultiValuedList

        protected static java.util.List<java.lang.String> getMultiValuedList​(java.lang.String candidate,
                                                                             java.lang.String delim)
        Retrieve a list of multiple values from the provided cell contents.
        Parameters:
        candidate - contents of a cell that could contain multiple values
        delim - delimiter between values
        Returns:
        a list of the contents of the cell, divided into single values, or an empty list
      • getMissingFields

        protected static java.util.List<java.lang.String> getMissingFields​(java.util.Map<java.lang.String,​java.lang.String> row,
                                                                           java.util.Collection<java.lang.String> requiredFields)
        Validates whether the provided row of data has all the fields required for this kind of asset.
        Parameters:
        row - of data
        requiredFields - collection of column names that are required for this kind of asset
        Returns:
        a list of the required fields that are missing (or an empty list if all required fields are present)
      • getRequiredEmptyFields

        protected static java.util.List<java.lang.String> getRequiredEmptyFields​(java.util.Map<java.lang.String,​java.lang.String> row,
                                                                                 java.util.Collection<java.lang.String> requiredEmptyFields)
        Validates whether the provided row of data has any of the other fields populated, indicating this row is for some other kind of asset.
        Parameters:
        row - of data
        requiredEmptyFields - collection of column names that are required to be empty for this kind of asset
        Returns:
        a list of the required empty fields that are in fact populated (or an empty list if all required empty fields are indeed empty)
      • appendAtlanTags

        protected static void appendAtlanTags​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> assetMap,
                                              java.lang.String typeName)
        Retrieve a mapping of the assets that need to be retagged. The method will first look up the provided assets to determine only the missing Atlan tag that need to be appended (rather than attempting to blindly append all Atlan tags).
        Parameters:
        assetMap - mapping of assets to consider, keyed by qualifiedName with the value a list of Atlan tag names to add the asset to
        typeName - of all the assets
      • selectivelyUpdateCustomMetadata

        protected static void selectivelyUpdateCustomMetadata​(java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​com.atlan.model.core.CustomMetadataAttributes>> guidMap)
        Selectively update the custom metadata for the provided assets. Only the custom metadata attributes that have been provided will be updated, while all other custom metadata attributes will be left as-is on existing assets.
        Parameters:
        guidMap - mapping of assets keyed by GUID with the value a map keyed by custom metadata structure name to populated attributes
      • getDescription

        public java.lang.String getDescription()
      • getCertificate

        public com.atlan.model.enums.CertificateStatus getCertificate()
      • getCertificateStatusMessage

        public java.lang.String getCertificateStatusMessage()
      • getAnnouncementType

        public com.atlan.model.enums.AtlanAnnouncementType getAnnouncementType()
      • getAnnouncementTitle

        public java.lang.String getAnnouncementTitle()
      • getAnnouncementMessage

        public java.lang.String getAnnouncementMessage()
      • getOwnerUsers

        public java.util.List<java.lang.String> getOwnerUsers()
      • getOwnerGroups

        public java.util.List<java.lang.String> getOwnerGroups()
      • getAtlanTags

        public java.util.List<java.lang.String> getAtlanTags()
      • isStub

        public boolean isStub()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object