|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ebmwebsourcing.wsstar.notification.service.topic.WstopTopicManager
public class WstopTopicManager
This class must implement the singleton pattern (solution chosen : see http://en.wikipedia.org/wiki/Singleton_pattern)
| Constructor Summary | |
|---|---|
WstopTopicManager(java.io.InputStream supportedTopicSetConfig)
SingletonHolder is loaded on the first execution of Singleton.getInstance() or the first access to SingletonHolder.INSTANCE, not before. |
|
WstopTopicManager(java.io.InputStream topicNamespaceStream,
java.util.List<java.lang.String> supportedTopics)
|
|
| Method Summary | |
|---|---|
boolean |
acceptSubscribeOrRegisterTopicExpression(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topicExprToCheck,
boolean isSubscribeRequest)
Check if the topic expression contains in a "Subscribe" or "RegisterPublisher" request is allowed (Is Dialect supported ? |
void |
addSupportedDialect(java.lang.String dialactURI)
|
com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicSetType |
createTopicSetFromSupportedTopicNamespace(com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicNamespaceType topicns)
|
com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicSetType |
createTopicSetFromTopicNamespace(com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicNamespaceType topicns,
java.util.List<java.lang.String> topics)
|
java.lang.String |
getNotifContentUuid(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topic,
java.lang.Boolean isSetRequest)
Return the Uuid associated to the last Notification message content sent on a given Topic |
java.util.List<java.lang.String> |
getRegistrationIdsFromTopicsSet(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topic)
|
java.util.List<java.lang.String> |
getSubscriptionIdsFromTopicsSet(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topic,
boolean isNotification)
|
java.util.List<java.lang.String> |
getSupportedDialectForSetOfTopics()
|
org.jdom.Document |
getSupportedTopics()
|
java.util.List<com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType> |
getTopicSetPath(java.lang.String subscriptionId)
|
void |
RAZSupportedTopicSet(java.io.InputStream defaultConfig)
Use specifically for test Unit (called in setUp() method) |
void |
removeExistingRegistration(java.lang.String registrationId)
|
void |
removeExistingSubscription(java.lang.String subscriptionId)
|
void |
setLogger(java.util.logging.Logger logger)
|
void |
storeNewRegistration(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topicExprToCheck,
java.lang.String registrationId)
|
void |
storeNewSubscription(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topicExprToCheck,
java.lang.String subscriptionId)
|
void |
storeNotifContentUuid(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topic,
java.lang.String currentMessageContentUuid)
Store uuid corresponding to a notification message content on a specific topic Update existing previous uuid (only one notification message content uuid allowed per topic) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WstopTopicManager(java.io.InputStream supportedTopicSetConfig)
public WstopTopicManager(java.io.InputStream topicNamespaceStream,
java.util.List<java.lang.String> supportedTopics)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException| Method Detail |
|---|
public void setLogger(java.util.logging.Logger logger)
public void addSupportedDialect(java.lang.String dialactURI)
public java.util.List<java.lang.String> getSupportedDialectForSetOfTopics()
public org.jdom.Document getSupportedTopics()
public void RAZSupportedTopicSet(java.io.InputStream defaultConfig)
public boolean acceptSubscribeOrRegisterTopicExpression(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topicExprToCheck,
boolean isSubscribeRequest)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException,
WSNotificationFault
expression - The topic expression contains in the request payloadtopics - Supported topics organized as a tree (see TopicNamespaceType)isSubscribeRequest - boolean is to build fault
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
WSNotificationFault
public void storeNewRegistration(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topicExprToCheck,
java.lang.String registrationId)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException,
WSNotificationFault
topicExpr - registrationId -
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
WSNotificationFault
public void removeExistingRegistration(java.lang.String registrationId)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException,
WSNotificationFault
registrationId -
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
WSNotificationFault
public void storeNewSubscription(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topicExprToCheck,
java.lang.String subscriptionId)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException,
WSNotificationFault
topicExpr - subscriptionId -
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
WSNotificationFault
public void removeExistingSubscription(java.lang.String subscriptionId)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException,
WSNotificationFault
subscriptionId -
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
WSNotificationFault
public void storeNotifContentUuid(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topic,
java.lang.String currentMessageContentUuid)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException,
WSNotificationFault
topic - notifContentUuiId -
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
WSNotificationFault
public java.lang.String getNotifContentUuid(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topic,
java.lang.Boolean isSetRequest)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException,
WSNotificationFault
topic -
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
WSNotificationFault
public java.util.List<java.lang.String> getSubscriptionIdsFromTopicsSet(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topic,
boolean isNotification)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
topic - isNotification -
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
public java.util.List<java.lang.String> getRegistrationIdsFromTopicsSet(com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType topic)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
public java.util.List<com.ebmwebsourcing.wsstar.notification.definition.basenotification.api.TopicExpressionType> getTopicSetPath(java.lang.String subscriptionId)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
public com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicSetType createTopicSetFromTopicNamespace(com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicNamespaceType topicns,
java.util.List<java.lang.String> topics)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
public com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicSetType createTopicSetFromSupportedTopicNamespace(com.ebmwebsourcing.wsstar.notification.definition.topics.api.TopicNamespaceType topicns)
throws com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
com.ebmwebsourcing.wsstar.notification.definition.utils.WSNotificationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||