Interface DataMappingToElementLocal
-
public interface DataMappingToElementLocalInterface for the DataMappingToElement Plug-In.
The DataMappingToElement PubServer Plug-In provides standard mapping methods for all kind of Entity data to the Comet
Elementtype.
The main purpose is using these methods in a DataProvider configuration, but calling via theDataMappingToElementLocalinterface allows using these methods in custom Java Plug-Ins as well.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJNDINAMEThe constant JNDINAME.static java.lang.StringMAPPED_NAMEThe constant MAPPED_NAME.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Element>bucketsToElements(java.util.List<Bucket> inputList, Bucket parent, java.lang.String entityModelName, Context context)MapsBucketsto Elements.java.util.List<Element>bucketsToElements(java.util.List<Bucket> inputList, java.lang.String entityModelName, Context context)MapsBucketsto Elements.java.util.List<Element>bucketsToElements(java.util.List<Bucket> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context)MapsBucketsto Elements.java.util.List<Element>cordsToElements(java.util.List<Cord> inputList, Bucket parent, java.lang.String entityModelName, Context context)MapsCordsto Elements.java.util.List<Element>cordsToElements(java.util.List<Cord> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context)MapsCordsto Elements.ElementcreateElementFromBucket(Bucket bucket, EntityModel model, Bucket parent)Creates an Element from a singleBucket.ElementcreateElementFromCord(Cord cord, EntityModel model, Bucket parent)Creates an Element from a singleCord.ElementcreateElementFromKeyValue(KeyValue keyValue, EntityModel model, Bucket parent)Creates an Element from a singleKeyValue.ElementcreateElementFromMediaAsset(MediaAsset asset, EntityModel model, Bucket parent)Creates an Element from a singleMediaAsset.ElementcreateElementFromPlanning(Planning planning, Context context)Creates an Element from a singlePlanning.ElementcreateElementFromPrice(Price price, EntityModel model, Bucket parent)Creates an Element from a singlePrice.ElementcreateElementFromTableData(TableData data, EntityModel model, Bucket parent)Creates an Element from a singleTableData.ElementcreateElementFromText(Text text, EntityModel model, Bucket parent)Creates an Element from a singleText.java.util.List<Element>keyValuesToElements(java.util.List<KeyValue> inputList, Bucket parent, java.lang.String entityModelName, Context context)MapsKeyValuessto Elements.java.util.List<Element>keyValuesToElements(java.util.List<KeyValue> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context)MapsKeyValuesto Elements.java.util.List<Element>mediaAssetsToElements(java.util.List<MediaAsset> inputList, Bucket parent, java.lang.String entityModelName, Context context)MapsMediaAssetsto Elements.java.util.List<Element>mediaAssetsToElements(java.util.List<MediaAsset> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context)MapsMediaAssetsto Elements.java.util.List<Element>planningsToElements(java.util.List<Planning> inputList, Context context)MapsPlanningsto Elements.java.util.List<Element>planningsToElementsGeneric(java.util.List<Planning> inputList, Context context, java.lang.String idProperty, java.lang.String id2Property, java.lang.String id3Property, java.lang.String stringIdProperty, java.lang.String templateIdProperty, java.lang.String classIdProperty, java.lang.String formatStringProperty)MapsPlanningsto Elements.java.util.List<Element>pricesToElements(java.util.List<Price> inputList, Bucket parent, java.lang.String entityModelName, Context context)MapsPricesto Elements.java.util.List<Element>pricesToElements(java.util.List<Price> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context)MapsPricesto Elements.java.util.List<Element>tableDataToElements(java.util.List<TableData> inputList, Bucket parent, java.lang.String entityModelName, Context context)MapsTableDatato Elements.java.util.List<Element>tableDataToElements(java.util.List<TableData> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context)MapsTableDatato Elements.java.util.List<Element>textsToElements(java.util.List<Text> inputList, Bucket parent, java.lang.String entityModelName, Context context)MapsTextsto Elements.java.util.List<Element>textsToElements(java.util.List<Text> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context)MapsTextsto Elements.
-
-
-
Field Detail
-
JNDINAME
static final java.lang.String JNDINAME
The constant JNDINAME.- See Also:
- Constant Field Values
-
MAPPED_NAME
static final java.lang.String MAPPED_NAME
The constant MAPPED_NAME.- See Also:
- Constant Field Values
-
-
Method Detail
-
bucketsToElements
java.util.List<Element> bucketsToElements(java.util.List<Bucket> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context) throws CometException
Maps
Bucketsto Elements.- Parameters:
inputList- a Bucket list e.g. from EntityManager.getRootEntityBucketssessionId- ID of the current session, if called from a PubServer Plug-In usually PluginControlDefault.getSessionId()entityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
cordsToElements
java.util.List<Element> cordsToElements(java.util.List<Cord> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context) throws CometException
Maps
Cordsto Elements.- Parameters:
inputList- a Cord listsessionId- ID of the current session, if called from a PubServer Plug-In usually PluginControlDefault.getSessionId()entityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
keyValuesToElements
java.util.List<Element> keyValuesToElements(java.util.List<KeyValue> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context) throws CometException
Maps
KeyValuesto Elements.- Parameters:
inputList- A KeyValue listsessionId- ID of the current session, if called from a PubServer Plug-In usually PluginControlDefault.getSessionId()entityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
mediaAssetsToElements
java.util.List<Element> mediaAssetsToElements(java.util.List<MediaAsset> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context) throws CometException
Maps
MediaAssetsto Elements.- Parameters:
inputList- a MediaAsset listsessionId- ID of the current session, if called from a PubServer Plug-In usually PluginControlDefault.getSessionId()entityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
pricesToElements
java.util.List<Element> pricesToElements(java.util.List<Price> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context) throws CometException
Maps
Pricesto Elements.- Parameters:
inputList- a Price listsessionId- ID of the current session, if called from a PubServer Plug-In usually PluginControlDefault.getSessionId()entityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
textsToElements
java.util.List<Element> textsToElements(java.util.List<Text> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context) throws CometException
Maps
Textsto Elements.- Parameters:
inputList- a Text listsessionId- ID of the current session, if called from a PubServer Plug-In usually PluginControlDefault.getSessionId()entityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
tableDataToElements
java.util.List<Element> tableDataToElements(java.util.List<TableData> inputList, java.lang.String sessionId, java.lang.String entityModelName, Context context) throws CometException
Maps
TableDatato Elements.- Parameters:
inputList- a TableData listsessionId- ID of the current session, if called from a PubServer Plug-In usually PluginControlDefault.getSessionId()entityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
createElementFromBucket
Element createElementFromBucket(Bucket bucket, EntityModel model, Bucket parent) throws CometException
Creates an Element from a single
Bucket.- Parameters:
bucket- a Bucketmodel- name of the entity modelparent- parent bucket, if applicable- Returns:
- an Element
- Throws:
CometException- the comet exception
-
createElementFromCord
Element createElementFromCord(Cord cord, EntityModel model, Bucket parent) throws CometException
Creates an Element from a single
Cord.- Parameters:
cord- a Cordmodel- name of the entity modelparent- parent bucket, if applicable- Returns:
- an Element
- Throws:
CometException- the comet exception
-
createElementFromKeyValue
Element createElementFromKeyValue(KeyValue keyValue, EntityModel model, Bucket parent) throws CometException
Creates an Element from a single
KeyValue.- Parameters:
keyValue- a KeyValuemodel- name of the entity modelparent- parent bucket, if applicable- Returns:
- an Element
- Throws:
CometException- the comet exception
-
createElementFromMediaAsset
Element createElementFromMediaAsset(MediaAsset asset, EntityModel model, Bucket parent) throws CometException
Creates an Element from a single
MediaAsset.- Parameters:
asset- the assetmodel- name of the entity modelparent- parent bucket, if applicable- Returns:
- an Element
- Throws:
CometException- the comet exception
-
createElementFromPrice
Element createElementFromPrice(Price price, EntityModel model, Bucket parent) throws CometException
Creates an Element from a single
Price.- Parameters:
price- a Pricemodel- name of the entity modelparent- parent bucket, if applicable- Returns:
- an Element
- Throws:
CometException- the comet exception
-
createElementFromText
Element createElementFromText(Text text, EntityModel model, Bucket parent) throws CometException
Creates an Element from a single
Text.- Parameters:
text- a Textmodel- name of the entity modelparent- parent bucket, if applicable- Returns:
- an Element
- Throws:
CometException- the comet exception
-
createElementFromTableData
Element createElementFromTableData(TableData data, EntityModel model, Bucket parent) throws CometException
Creates an Element from a single
TableData.- Parameters:
data- the datamodel- name of the entity modelparent- parent bucket, if applicable- Returns:
- an Element
- Throws:
CometException- the comet exception
-
bucketsToElements
java.util.List<Element> bucketsToElements(java.util.List<Bucket> inputList, Bucket parent, java.lang.String entityModelName, Context context) throws CometException
Maps
Bucketsto Elements.- Parameters:
inputList- a Bucket list e.g. from EntityManager.getRootEntityBucketsparent- parent Bucket, if applicableentityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
bucketsToElements
java.util.List<Element> bucketsToElements(java.util.List<Bucket> inputList, java.lang.String entityModelName, Context context) throws CometException
Maps
Bucketsto Elements.- Parameters:
inputList- a Bucket list e.g. from EntityManager.getRootEntityBucketsentityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
cordsToElements
java.util.List<Element> cordsToElements(java.util.List<Cord> inputList, Bucket parent, java.lang.String entityModelName, Context context) throws CometException
Maps
Cordsto Elements.- Parameters:
inputList- a Cord listparent- parent Bucket, if applicableentityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
keyValuesToElements
java.util.List<Element> keyValuesToElements(java.util.List<KeyValue> inputList, Bucket parent, java.lang.String entityModelName, Context context) throws CometException
Maps
KeyValuessto Elements.- Parameters:
inputList- a KeyValue listparent- parent Bucket, if applicableentityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
mediaAssetsToElements
java.util.List<Element> mediaAssetsToElements(java.util.List<MediaAsset> inputList, Bucket parent, java.lang.String entityModelName, Context context) throws CometException
Maps
MediaAssetsto Elements.- Parameters:
inputList- a MediaAsset listparent- parent Bucket, if applicableentityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
pricesToElements
java.util.List<Element> pricesToElements(java.util.List<Price> inputList, Bucket parent, java.lang.String entityModelName, Context context) throws CometException
Maps
Pricesto Elements.- Parameters:
inputList- a Price listparent- parent Bucket, if applicableentityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
textsToElements
java.util.List<Element> textsToElements(java.util.List<Text> inputList, Bucket parent, java.lang.String entityModelName, Context context) throws CometException
Maps
Textsto Elements.- Parameters:
inputList- a Text listparent- parent Bucket, if applicableentityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
tableDataToElements
java.util.List<Element> tableDataToElements(java.util.List<TableData> inputList, Bucket parent, java.lang.String entityModelName, Context context) throws CometException
Maps
TableDatato Elements.- Parameters:
inputList- a TableData listparent- parent Bucket, if applicableentityModelName- name of the entity modelcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
planningsToElements
java.util.List<Element> planningsToElements(java.util.List<Planning> inputList, Context context) throws CometException
Maps
Planningsto Elements.- Parameters:
inputList- a Planning listcontext- request context (assortment, country, language etc.)- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
createElementFromPlanning
Element createElementFromPlanning(Planning planning, Context context) throws CometException
Creates an Element from a single
Planning.- Parameters:
planning- a Planning recordcontext- request context (assortment, country, language etc.)- Returns:
- an Element
- Throws:
CometException- the comet exception
-
planningsToElementsGeneric
java.util.List<Element> planningsToElementsGeneric(java.util.List<Planning> inputList, Context context, java.lang.String idProperty, java.lang.String id2Property, java.lang.String id3Property, java.lang.String stringIdProperty, java.lang.String templateIdProperty, java.lang.String classIdProperty, java.lang.String formatStringProperty) throws CometException
Maps
Planningsto Elements.- Parameters:
inputList- a Planning listcontext- request context (assortment, country, language etc.)idProperty- name of planning property to map to the Id propertyid2Property- name of planning property to map to the Id2 propertyid3Property- name of planning property to map to the Id3 propertystringIdProperty- name of planning property to map to the stringId propertytemplateIdProperty- name of planning property to map to the templateId propertyclassIdProperty- name of planning property to map to the classId propertyformatStringProperty- name of planning property to map to the formatString property- Returns:
- list of Elements
- Throws:
CometException- the comet exception
-
-