Class MetadataValueBranchingService

    • Constructor Detail

      • MetadataValueBranchingService

        public MetadataValueBranchingService()
    • Method Detail

      • doService

        public void doService​(AdaptrisMessage msg)
                       throws ServiceException

        Obtains the value associated with each configured metadata key, concatenates these keys, then looks up and sets the Service unique ID associated with this concatenated key.

        If any of the configured keys return null, nothing is appended to the result key.

        If no ID is stored against the created key, the default ID will be returned if one is configured. Otherwise a ServiceException is thrown

        Parameters:
        msg - the AdaptrisMessage to process
        Throws:
        ServiceException - wrapping any underlying Exceptions
        See Also:
        Service.doService(com.adaptris.core.AdaptrisMessage)
      • getMetadataToServiceIdMappings

        public KeyValuePairList getMetadataToServiceIdMappings()
      • setMetadataToServiceIdMappings

        public void setMetadataToServiceIdMappings​(KeyValuePairList mappings)
        Set the list of mappings between metadata / service-id
        Parameters:
        mappings - the mapping to add