Interface DataMappingToStringLocal


public interface DataMappingToStringLocal
The interface Data mapping.
  • Field Details

  • Method Details

    • bucketLabelToString

      List<String> bucketLabelToString(List<Bucket> buckets) throws PubServerException
      Map the label of the first entry of a bucket list to a string
      Parameters:
      buckets - the buckets
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • firstMediaAssetToFilePath

      List<String> firstMediaAssetToFilePath(List<MediaAsset> mediaAssets) throws PubServerException
      Get the path of the first media object from the first media asset
      Parameters:
      mediaAssets - the media assets
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • firstMediaAssetToFileUrl

      List<String> firstMediaAssetToFileUrl(List<MediaAsset> mediaAssets) throws PubServerException
      Get the URL of the first media object from the first media asset
      Parameters:
      mediaAssets - the result set of the query return list of string, the first element is the URL
      Returns:
      the list
      Throws:
      PubServerException - the pub server exception
    • firstTextOfAncestorBucketsToString

      List<String> firstTextOfAncestorBucketsToString(String sessionId, List<Bucket> descendants, String entityModelName, String ancestorEntityId, String textIdentifier, int level, Context context, String searchStr) throws PubServerException
      Go back n levels in bucket tree and map the specified text of that bucket to a String List.
      Parameters:
      sessionId - the session id
      descendants - the descendants
      entityModelName - the entity model name
      ancestorEntityId - the ancestor entity id
      textIdentifier - the text identifier
      level - the level
      context - the context
      searchStr - the search str
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • firstTextToString

      List<String> firstTextToString(List<Text> texts) throws PubServerException
      Map the first entry of a text list to a String list
      Parameters:
      texts - the texts
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • keyValuesToStrings

      List<String> keyValuesToStrings(List<KeyValue> keyValues) throws PubServerException
      Map the first value of a key value list to a String list
      Parameters:
      keyValues - the key values
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • lastMediaAssetToFilePath

      List<String> lastMediaAssetToFilePath(List<MediaAsset> mediaAssets) throws PubServerException
      Get the path of the last media object from the last media asset
      Parameters:
      mediaAssets - the media assets
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • lastMediaAssetToFileUrl

      List<String> lastMediaAssetToFileUrl(List<MediaAsset> mediaAssets) throws PubServerException
      Get the URL of the first media object from the first media asset
      Parameters:
      mediaAssets - the resultset of the queryreturn list of string, the first element is the url
      Returns:
      the list
      Throws:
      PubServerException - the pub server exception
    • lastTextToString

      List<String> lastTextToString(List<Text> texts) throws PubServerException
      Map the last entry of a text list to a String list
      Parameters:
      texts - the texts
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • mediaAssetListToFilePath

      List<String> mediaAssetListToFilePath(List<MediaAsset> mediaAssets, String record, String type, String media) throws PubServerException
      Map media assets to file paths
      Parameters:
      mediaAssets - the media assets
      record - the record
      type - the type
      media - the media
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • mediaAssetListToFileUrl

      List<String> mediaAssetListToFileUrl(List<MediaAsset> mediaAssets, String record, String type, String media) throws PubServerException
      Map media assets to URLs
      Parameters:
      mediaAssets - the media assets
      record - the record
      type - the type
      media - the media
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • nthPriceToString

      List<String> nthPriceToString(List<Price> prices, String designator, int nth) throws PubServerException
      Map the field selected by designator of the first price to a string
      Parameters:
      prices - the prices
      designator - the designator
      nth - the nth
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • textListToStrings

      List<String> textListToStrings(List<Text> texts, String range, String delimiter, String prefix, String suffix) throws PubServerException
      Map multiple texts to strings
      Parameters:
      texts - the texts
      range - the range
      delimiter - the delimiter
      prefix - the prefix
      suffix - the suffix
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • textsToStrings

      List<String> textsToStrings(List<Text> texts) throws PubServerException
      Map the last entry of a text list to a String list
      Parameters:
      texts - the texts
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • textToString

      List<String> textToString(List<Text> texts, int nth) throws PubServerException
      Map the nth entry of a text list to a string
      Parameters:
      texts - the texts
      nth - the nth
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • valuesByKeyToStrings

      List<String> valuesByKeyToStrings(List<KeyValue> keyValues, String key) throws PubServerException
      Map all values associated to the given key to a String list
      Parameters:
      keyValues - the key values
      key - the key
      Returns:
      list
      Throws:
      PubServerException - the pub server exception
    • bucketPropertyToString

      List<String> bucketPropertyToString(List<Bucket> buckets, String propertyName) throws PubServerException

      Gets an arbitrary property from a bucket

      Parameters:
      buckets - result from data query
      propertyName - name of the property
      Returns:
      list of the requested properties
      Throws:
      PubServerException - the pub server exception
    • cordPropertyToString

      List<String> cordPropertyToString(List<Cord> cords, String propertyName) throws PubServerException

      Gets an arbitrary property from a cord

      Parameters:
      cords - result from data query
      propertyName - name of the property
      Returns:
      list of the requested properties
      Throws:
      PubServerException - the pub server exception
    • keyValuePropertyToString

      List<String> keyValuePropertyToString(List<KeyValue> keyValues, String propertyName) throws PubServerException

      Gets an arbitrary property from a keyValue

      Parameters:
      keyValues - result from data query
      propertyName - name of the property
      Returns:
      list of the requested properties
      Throws:
      PubServerException - the pub server exception
    • mediaAssetPropertyToString

      List<String> mediaAssetPropertyToString(List<MediaAsset> mediaAssets, String propertyName) throws PubServerException

      Gets an arbitrary property from a mediaAsset

      Parameters:
      mediaAssets - result from data query
      propertyName - name of the property
      Returns:
      list of the requested properties
      Throws:
      PubServerException - the pub server exception
    • planningPropertyToString

      List<String> planningPropertyToString(List<Planning> plannings, String propertyName) throws PubServerException

      Gets an arbitrary property from a planning

      Parameters:
      plannings - result from data query
      propertyName - name of the property
      Returns:
      list of the requested properties
      Throws:
      PubServerException - the pub server exception
    • pricePropertyToString

      List<String> pricePropertyToString(List<Price> prices, String propertyName) throws PubServerException

      Gets an arbitrary property from a price

      Parameters:
      prices - result from data query
      propertyName - name of the property
      Returns:
      list of the requested properties
      Throws:
      PubServerException - the pub server exception
    • textPropertyToString

      List<String> textPropertyToString(List<Text> texts, String propertyName) throws PubServerException

      Gets an arbitrary property from a text

      Parameters:
      texts - result from data query
      propertyName - name of the property
      Returns:
      list of the requested properties
      Throws:
      PubServerException - the pub server exception
    • tableDataPropertyToString

      List<String> tableDataPropertyToString(List<TableData> tableDatas, String propertyName) throws PubServerException

      Gets an arbitrary property from a tableData

      Parameters:
      tableDatas - result from data query
      propertyName - name of the property
      Returns:
      list of the requested properties
      Throws:
      PubServerException - the pub server exception