Package com.priint.pubserver.comet.bridge.datamapping


package com.priint.pubserver.comet.bridge.datamapping

Data Mapping: com.priint.pubserver.comet.bridge.datamapping

Contains local and remote interfaces for the several DataMapping EJBs.
The purpose of data mapping methods is to map data obtained from the EntityModelManager to a format suitable for the output system, i.e. InDesign or priint:pdf renderer
User defined data mappings can be added as methods of a PubServerPlugin Stateless or Singleton bean.
Furthermore, the following conditions must be fulfilled:

  • the method must be annotated as @PubServerMethod with type PluginMethod.MethodType.DATAMAPPING
  • parameters should be annotated as @PubServerMethodParameters
  • the first parameter must take the result list of the EntityModelManager request. The parameter name should be inputList and it should annotated as @PubServerMethodParameter
  • inputList must be a java.util.List, the list elements can be any of the com.priint.pubserver.plugin.entitydata types
  • the return type must be any of:
    • java.lang.String
    • all primitive types including the corresponding Java class type
    • any of the com.priint.pubserver.comet.bridge.entitydata types
    • java.util.Lists of any of these types

See the com.priint.pubserver.comet.bridge.datamapping package info for examples and more information.