Interface WorkflowUtility


  • public interface WorkflowUtility
    A bean to provide general utility functions. The bean will be accessible by using 'utility' in your workflow expressions.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Date getCronExpressionNextRunDate​(java.lang.String unixCronExpression, java.util.Date lastRunDate)
      Retrieves next run date based on a cron expression and the last run date.
      java.lang.String stripHtml​(java.lang.String stringToStrip)
      Remove all the HTML formatting from the given input string, unescaping it before.
      java.lang.String toCsv​(java.util.Collection<?> stringList)
      Creates a csv of the given @{link Collection}.
      java.lang.String toIdCsv​(java.util.Collection<? extends com.collibra.dgc.core.api.model.Resource> resources)
      Converts a Collection of Resources to a csv resource ids.
      java.util.List<java.util.UUID> toIdList​(java.lang.String csvString)
      Creates a list of the given csv string.
      java.util.List<java.util.UUID> toIdList​(java.util.Collection<? extends com.collibra.dgc.core.api.model.Resource> resources)
      Converts a Collection of resources to a list of resource ids.
      java.util.List<java.lang.String> toList​(java.lang.String csvString)
      Creates a list of the given csv string.
    • Method Detail

      • toList

        java.util.List<java.lang.String> toList​(java.lang.String csvString)
        Creates a list of the given csv string.
        Parameters:
        csvString - The string to convert to a list
        Returns:
        The list of the csv string
      • toIdList

        java.util.List<java.util.UUID> toIdList​(java.lang.String csvString)
        Creates a list of the given csv string.
        Parameters:
        csvString - The string to convert to a list
        Returns:
        The UUID list of the csv string
      • toIdList

        java.util.List<java.util.UUID> toIdList​(java.util.Collection<? extends com.collibra.dgc.core.api.model.Resource> resources)
        Converts a Collection of resources to a list of resource ids.
        Parameters:
        resources - The resources to convert
        Returns:
        The list of resource ids
      • toCsv

        java.lang.String toCsv​(java.util.Collection<?> stringList)
        Creates a csv of the given @{link Collection}.
        Parameters:
        stringList - The collection to convert to a csv
        Returns:
        The converted csv
      • toIdCsv

        java.lang.String toIdCsv​(java.util.Collection<? extends com.collibra.dgc.core.api.model.Resource> resources)
        Converts a Collection of Resources to a csv resource ids.
        Parameters:
        resources - The Collection of resources to convert
        Returns:
        A csv of resource ids
      • stripHtml

        java.lang.String stripHtml​(java.lang.String stringToStrip)
        Remove all the HTML formatting from the given input string, unescaping it before. First it will replace possible linebreaks with a space.
        Parameters:
        stringToStrip - the string that needs to be stripped of html
        Returns:
        the string stripped from the html.
      • getCronExpressionNextRunDate

        java.util.Date getCronExpressionNextRunDate​(java.lang.String unixCronExpression,
                                                    java.util.Date lastRunDate)
        Retrieves next run date based on a cron expression and the last run date.
        Parameters:
        unixCronExpression - string
        lastRunDate - date
        Returns:
        the date of the next run