com.ebmwebsourcing.wsstar.wsnb.services.impl.topic
Class TopicsManagerEngine

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.wsnb.services.impl.topic.TopicsManagerEngine

public class TopicsManagerEngine
extends java.lang.Object

This class must implement the singleton pattern (solution chosen : see http://en.wikipedia.org/wiki/Singleton_pattern)

Author:
tdejean - eBM WebSourcing

Constructor Summary
TopicsManagerEngine()
          Constructor
 
Method Summary
 java.util.List<com.ebmwebsourcing.wsstar.basenotification.datatypes.api.abstraction.TopicExpressionType> getTopicsAsConcreteTopExpr(com.ebmwebsourcing.wsstar.basenotification.datatypes.api.abstraction.TopicExpressionType topicExpression, org.w3c.dom.Document supportedTopicsAsDOM)
          build the List of "Concrete" TopicExpressionType parameter from the "XPAth" TopicExpressionType object given as parameter
 boolean isSupportedTopic(com.ebmwebsourcing.wsstar.basenotification.datatypes.api.abstraction.TopicExpressionType concreteTopicExpression, org.w3c.dom.Document supportedTopicsAsDOM)
          Check if a given topic, described as "concrete" TopicExpression, is still supported after "TopicSet" resource property update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicsManagerEngine

public TopicsManagerEngine()
Constructor

Parameters:
supportedTopicSetConfig - supported topic set tree as InputStream
Method Detail

getTopicsAsConcreteTopExpr

public java.util.List<com.ebmwebsourcing.wsstar.basenotification.datatypes.api.abstraction.TopicExpressionType> getTopicsAsConcreteTopExpr(com.ebmwebsourcing.wsstar.basenotification.datatypes.api.abstraction.TopicExpressionType topicExpression,
                                                                                                                                           org.w3c.dom.Document supportedTopicsAsDOM)
                                                                                                                                    throws com.ebmwebsourcing.wsstar.basenotification.datatypes.api.utils.WsnbException
build the List of "Concrete" TopicExpressionType parameter from the "XPAth" TopicExpressionType object given as parameter

Parameters:
topicExpression - topics describe as "full" or "Xpath" topic expression
Returns:
the of requested topics formatted as "Concrete" TopicExpressionType object
Throws:
com.ebmwebsourcing.wsstar.basenotification.datatypes.api.utils.WsnbException

isSupportedTopic

public boolean isSupportedTopic(com.ebmwebsourcing.wsstar.basenotification.datatypes.api.abstraction.TopicExpressionType concreteTopicExpression,
                                org.w3c.dom.Document supportedTopicsAsDOM)
                         throws com.ebmwebsourcing.wsstar.basenotification.datatypes.api.utils.WsnbException
Check if a given topic, described as "concrete" TopicExpression, is still supported after "TopicSet" resource property update.

Parameters:
concreteTopicExpression - the topic to check (as TopicExpressionType instance.
supportedTopicsAsDOM - the current "TopicSet" resource property value formated as Document
Returns:
true if topic is still supported, false if not
Throws:
com.ebmwebsourcing.wsstar.basenotification.datatypes.api.utils.WsnbException


Copyright © 2011 eBM Websourcing. All Rights Reserved.