Package com.priint.pubserver.datamapping
Interface DataMappingToStringLocal
public interface DataMappingToStringLocal
The interface Data mapping.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbucketLabelToString(List<Bucket> buckets) Map the label of the first entry of a bucket list to a stringbucketPropertyToString(List<Bucket> buckets, String propertyName) Gets an arbitrary property from a bucketcordPropertyToString(List<Cord> cords, String propertyName) Gets an arbitrary property from a cordfirstMediaAssetToFilePath(List<MediaAsset> mediaAssets) Get the path of the first media object from the first media assetfirstMediaAssetToFileUrl(List<MediaAsset> mediaAssets) Get the URL of the first media object from the first media assetfirstTextOfAncestorBucketsToString(String sessionId, List<Bucket> descendants, String entityModelName, String ancestorEntityId, String textIdentifier, int level, Context context, String searchStr) Go back n levels in bucket tree and map the specified text of that bucket to a String List.firstTextToString(List<Text> texts) Map the first entry of a text list to a String listkeyValuePropertyToString(List<KeyValue> keyValues, String propertyName) Gets an arbitrary property from a keyValuekeyValuesToStrings(List<KeyValue> keyValues) Map the first value of a key value list to a String listlastMediaAssetToFilePath(List<MediaAsset> mediaAssets) Get the path of the last media object from the last media assetlastMediaAssetToFileUrl(List<MediaAsset> mediaAssets) Get the URL of the first media object from the first media assetlastTextToString(List<Text> texts) Map the last entry of a text list to a String listmediaAssetListToFilePath(List<MediaAsset> mediaAssets, String record, String type, String media) Map media assets to file pathsmediaAssetListToFileUrl(List<MediaAsset> mediaAssets, String record, String type, String media) Map media assets to URLsmediaAssetPropertyToString(List<MediaAsset> mediaAssets, String propertyName) Gets an arbitrary property from a mediaAssetnthPriceToString(List<Price> prices, String designator, int nth) Map the field selected by designator of the first price to a stringplanningPropertyToString(List<Planning> plannings, String propertyName) Gets an arbitrary property from a planningpricePropertyToString(List<Price> prices, String propertyName) Gets an arbitrary property from a pricetableDataPropertyToString(List<TableData> tableDatas, String propertyName) Gets an arbitrary property from a tableDataMap multiple texts to stringstextPropertyToString(List<Text> texts, String propertyName) Gets an arbitrary property from a texttextsToStrings(List<Text> texts) Map the last entry of a text list to a String listtextToString(List<Text> texts, int nth) Map the nth entry of a text list to a stringvaluesByKeyToStrings(List<KeyValue> keyValues, String key) Map all values associated to the given key to a String list
-
Field Details
-
MAPPED_NAME
The constant MAPPED_NAME.- See Also:
-
-
Method Details
-
bucketLabelToString
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
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
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 iddescendants- the descendantsentityModelName- the entity model nameancestorEntityId- the ancestor entity idtextIdentifier- the text identifierlevel- the levelcontext- the contextsearchStr- the search str- Returns:
- list
- Throws:
PubServerException- the pub server exception
-
firstTextToString
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
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
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
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
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 assetsrecord- the recordtype- the typemedia- 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 assetsrecord- the recordtype- the typemedia- 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 pricesdesignator- the designatornth- 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 textsrange- the rangedelimiter- the delimiterprefix- the prefixsuffix- the suffix- Returns:
- list
- Throws:
PubServerException- the pub server exception
-
textsToStrings
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
Map the nth entry of a text list to a string- Parameters:
texts- the textsnth- the nth- Returns:
- list
- Throws:
PubServerException- the pub server exception
-
valuesByKeyToStrings
Map all values associated to the given key to a String list- Parameters:
keyValues- the key valueskey- 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 querypropertyName- name of the property- Returns:
- list of the requested properties
- Throws:
PubServerException- the pub server exception
-
cordPropertyToString
Gets an arbitrary property from a cord
- Parameters:
cords- result from data querypropertyName- 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 querypropertyName- 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 querypropertyName- 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 querypropertyName- 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 querypropertyName- name of the property- Returns:
- list of the requested properties
- Throws:
PubServerException- the pub server exception
-
textPropertyToString
Gets an arbitrary property from a text
- Parameters:
texts- result from data querypropertyName- 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 querypropertyName- name of the property- Returns:
- list of the requested properties
- Throws:
PubServerException- the pub server exception
-