org.mobicents.slee.sippresence.server.subscription
Class PresenceSubscriptionControlSbb

java.lang.Object
  extended by org.mobicents.slee.sippresence.server.subscription.PresenceSubscriptionControlSbb
All Implemented Interfaces:
javax.slee.Sbb, javax.slee.SbbLocalObject, org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlSbbLocalObject, PresenceSubscriptionControlSbbLocalObject, PublishedSphereSource, org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

public abstract class PresenceSubscriptionControlSbb
extends java.lang.Object
implements javax.slee.Sbb, PresenceSubscriptionControlSbbLocalObject

Implemented Subscription control child sbb for a SIP Presence Server.

Author:
eduardomartins

Field Summary
protected  javax.sip.header.HeaderFactory headerFactory
           
protected  net.java.slee.resource.sip.SleeSipProvider sipProvider
          JAIN-SIP provider & factories
 
Constructor Summary
PresenceSubscriptionControlSbb()
           
 
Method Summary
 void attributeUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector, org.openxdm.xcap.common.uri.NodeSelector nodeSelector, org.openxdm.xcap.common.uri.AttributeSelector attributeSelector, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String oldETag, java.lang.String newETag, java.lang.String documentAsString, java.lang.String attributeValue)
           
 void deleteResponse(org.openxdm.xcap.common.key.XcapUriKey key, int responseCode, java.lang.String tag)
           
 void documentUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector, java.lang.String oldETag, java.lang.String newETag, java.lang.String documentAsString)
          a pres-rules doc subscribed was updated
 void elementUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector, org.openxdm.xcap.common.uri.NodeSelector nodeSelector, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String oldETag, java.lang.String newETag, java.lang.String documentAsString, java.lang.String elementAsString)
           
 java.lang.Object filterContentPerSubscriber(java.lang.String subscriber, java.lang.String notifier, java.lang.String eventPackage, java.lang.Object unmarshalledContent)
           
abstract  java.util.Map getCombinedRules()
           
 java.lang.String[] getEventPackages()
           
 javax.sip.header.HeaderFactory getHeaderFactory()
           
 javax.xml.bind.Marshaller getMarshaller()
           
 org.mobicents.slee.sipevent.server.subscription.NotifyContent getNotifyContent(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
           
abstract  org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlParentSbbLocalObject getParentSbbCMP()
           
 org.mobicents.slee.sipevent.server.publication.PublicationControlSbbLocalObject getPublicationChildSbb()
           
abstract  javax.slee.ChildRelation getPublicationControlChildRelation()
           
abstract  org.mobicents.slee.sipevent.server.publication.PublicationControlSbbLocalObject getPublicationControlChildSbbCMP()
           
 void getResponse(org.openxdm.xcap.common.key.XcapUriKey key, int responseCode, java.lang.String mimetype, java.lang.String content, java.lang.String tag)
          async get response from xdm client
 java.lang.String getSphere(java.lang.String notifier)
          interface used by rules processor to get sphere for a notifier
 javax.xml.bind.Unmarshaller getUnmarshaller()
           
abstract  javax.slee.ChildRelation getXDMClientControlChildRelation()
           
abstract  org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject getXDMClientControlChildSbbCMP()
           
 org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject getXDMClientControlSbb()
           
 void isSubscriberAuthorized(java.lang.String subscriber, java.lang.String subscriberDisplayName, java.lang.String notifier, org.mobicents.slee.sipevent.server.subscription.pojo.SubscriptionKey key, int expires, java.lang.String content, java.lang.String contentType, java.lang.String contentSubtype, javax.sip.ServerTransaction serverTransaction)
           
 void putResponse(org.openxdm.xcap.common.key.XcapUriKey key, int responseCode, java.lang.String tag)
           
 void removingSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
           
 void sbbActivate()
           
 void sbbCreate()
           
 void sbbExceptionThrown(java.lang.Exception arg0, java.lang.Object arg1, javax.slee.ActivityContextInterface arg2)
           
 void sbbLoad()
           
 void sbbPassivate()
           
 void sbbPostCreate()
           
 void sbbRemove()
           
 void sbbRolledBack(javax.slee.RolledBackContext arg0)
           
 void sbbStore()
           
abstract  void setCombinedRules(java.util.Map rules)
           
 void setParentSbb(org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlParentSbbLocalObject sbbLocalObject)
           
abstract  void setParentSbbCMP(org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlParentSbbLocalObject sbbLocalObject)
           
abstract  void setPublicationControlChildSbbCMP(org.mobicents.slee.sipevent.server.publication.PublicationControlSbbLocalObject value)
           
 void setSbbContext(javax.slee.SbbContext sbbContext)
           
abstract  void setXDMClientControlChildSbbCMP(org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject value)
           
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 
Methods inherited from interface javax.slee.SbbLocalObject
getSbbPriority, isIdentical, remove, setSbbPriority
 

Field Detail

sipProvider

protected net.java.slee.resource.sip.SleeSipProvider sipProvider
JAIN-SIP provider & factories


headerFactory

protected javax.sip.header.HeaderFactory headerFactory
Constructor Detail

PresenceSubscriptionControlSbb

public PresenceSubscriptionControlSbb()
Method Detail

setSbbContext

public void setSbbContext(javax.slee.SbbContext sbbContext)
Specified by:
setSbbContext in interface javax.slee.Sbb

getParentSbbCMP

public abstract org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlParentSbbLocalObject getParentSbbCMP()
Specified by:
getParentSbbCMP in interface PresenceSubscriptionControlSbbLocalObject

setParentSbbCMP

public abstract void setParentSbbCMP(org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlParentSbbLocalObject sbbLocalObject)

setParentSbb

public void setParentSbb(org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlParentSbbLocalObject sbbLocalObject)
Specified by:
setParentSbb in interface org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlSbbLocalObject

getEventPackages

public java.lang.String[] getEventPackages()
Specified by:
getEventPackages in interface org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlSbbLocalObject

isSubscriberAuthorized

public void isSubscriberAuthorized(java.lang.String subscriber,
                                   java.lang.String subscriberDisplayName,
                                   java.lang.String notifier,
                                   org.mobicents.slee.sipevent.server.subscription.pojo.SubscriptionKey key,
                                   int expires,
                                   java.lang.String content,
                                   java.lang.String contentType,
                                   java.lang.String contentSubtype,
                                   javax.sip.ServerTransaction serverTransaction)
Specified by:
isSubscriberAuthorized in interface org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlSbbLocalObject

removingSubscription

public void removingSubscription(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
Specified by:
removingSubscription in interface org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlSbbLocalObject

getNotifyContent

public org.mobicents.slee.sipevent.server.subscription.NotifyContent getNotifyContent(org.mobicents.slee.sipevent.server.subscription.pojo.Subscription subscription)
Specified by:
getNotifyContent in interface org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlSbbLocalObject

filterContentPerSubscriber

public java.lang.Object filterContentPerSubscriber(java.lang.String subscriber,
                                                   java.lang.String notifier,
                                                   java.lang.String eventPackage,
                                                   java.lang.Object unmarshalledContent)
Specified by:
filterContentPerSubscriber in interface org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlSbbLocalObject

getMarshaller

public javax.xml.bind.Marshaller getMarshaller()
Specified by:
getMarshaller in interface org.mobicents.slee.sipevent.server.subscription.ImplementedSubscriptionControlSbbLocalObject

getPublicationControlChildRelation

public abstract javax.slee.ChildRelation getPublicationControlChildRelation()

getPublicationControlChildSbbCMP

public abstract org.mobicents.slee.sipevent.server.publication.PublicationControlSbbLocalObject getPublicationControlChildSbbCMP()

setPublicationControlChildSbbCMP

public abstract void setPublicationControlChildSbbCMP(org.mobicents.slee.sipevent.server.publication.PublicationControlSbbLocalObject value)

getPublicationChildSbb

public org.mobicents.slee.sipevent.server.publication.PublicationControlSbbLocalObject getPublicationChildSbb()
Specified by:
getPublicationChildSbb in interface PresenceSubscriptionControlSbbLocalObject

getXDMClientControlChildRelation

public abstract javax.slee.ChildRelation getXDMClientControlChildRelation()

getXDMClientControlChildSbbCMP

public abstract org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject getXDMClientControlChildSbbCMP()

setXDMClientControlChildSbbCMP

public abstract void setXDMClientControlChildSbbCMP(org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject value)

getXDMClientControlSbb

public org.mobicents.slee.xdm.server.XDMClientControlSbbLocalObject getXDMClientControlSbb()
Specified by:
getXDMClientControlSbb in interface PresenceSubscriptionControlSbbLocalObject

setCombinedRules

public abstract void setCombinedRules(java.util.Map rules)
Specified by:
setCombinedRules in interface PresenceSubscriptionControlSbbLocalObject

getCombinedRules

public abstract java.util.Map getCombinedRules()
Specified by:
getCombinedRules in interface PresenceSubscriptionControlSbbLocalObject

getHeaderFactory

public javax.sip.header.HeaderFactory getHeaderFactory()
Specified by:
getHeaderFactory in interface PresenceSubscriptionControlSbbLocalObject

getUnmarshaller

public javax.xml.bind.Unmarshaller getUnmarshaller()
Specified by:
getUnmarshaller in interface PresenceSubscriptionControlSbbLocalObject

getResponse

public void getResponse(org.openxdm.xcap.common.key.XcapUriKey key,
                        int responseCode,
                        java.lang.String mimetype,
                        java.lang.String content,
                        java.lang.String tag)
async get response from xdm client

Specified by:
getResponse in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

documentUpdated

public void documentUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector,
                            java.lang.String oldETag,
                            java.lang.String newETag,
                            java.lang.String documentAsString)
a pres-rules doc subscribed was updated

Specified by:
documentUpdated in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

attributeUpdated

public void attributeUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector,
                             org.openxdm.xcap.common.uri.NodeSelector nodeSelector,
                             org.openxdm.xcap.common.uri.AttributeSelector attributeSelector,
                             java.util.Map<java.lang.String,java.lang.String> namespaces,
                             java.lang.String oldETag,
                             java.lang.String newETag,
                             java.lang.String documentAsString,
                             java.lang.String attributeValue)
Specified by:
attributeUpdated in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

elementUpdated

public void elementUpdated(org.openxdm.xcap.common.uri.DocumentSelector documentSelector,
                           org.openxdm.xcap.common.uri.NodeSelector nodeSelector,
                           java.util.Map<java.lang.String,java.lang.String> namespaces,
                           java.lang.String oldETag,
                           java.lang.String newETag,
                           java.lang.String documentAsString,
                           java.lang.String elementAsString)
Specified by:
elementUpdated in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

deleteResponse

public void deleteResponse(org.openxdm.xcap.common.key.XcapUriKey key,
                           int responseCode,
                           java.lang.String tag)
Specified by:
deleteResponse in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

putResponse

public void putResponse(org.openxdm.xcap.common.key.XcapUriKey key,
                        int responseCode,
                        java.lang.String tag)
Specified by:
putResponse in interface org.mobicents.slee.xdm.server.XDMClientControlParentSbbLocalObject

getSphere

public java.lang.String getSphere(java.lang.String notifier)
interface used by rules processor to get sphere for a notifier

Specified by:
getSphere in interface PublishedSphereSource

sbbActivate

public void sbbActivate()
Specified by:
sbbActivate in interface javax.slee.Sbb

sbbCreate

public void sbbCreate()
               throws javax.slee.CreateException
Specified by:
sbbCreate in interface javax.slee.Sbb
Throws:
javax.slee.CreateException

sbbExceptionThrown

public void sbbExceptionThrown(java.lang.Exception arg0,
                               java.lang.Object arg1,
                               javax.slee.ActivityContextInterface arg2)
Specified by:
sbbExceptionThrown in interface javax.slee.Sbb

sbbLoad

public void sbbLoad()
Specified by:
sbbLoad in interface javax.slee.Sbb

sbbPassivate

public void sbbPassivate()
Specified by:
sbbPassivate in interface javax.slee.Sbb

sbbPostCreate

public void sbbPostCreate()
                   throws javax.slee.CreateException
Specified by:
sbbPostCreate in interface javax.slee.Sbb
Throws:
javax.slee.CreateException

sbbRemove

public void sbbRemove()
Specified by:
sbbRemove in interface javax.slee.Sbb

sbbRolledBack

public void sbbRolledBack(javax.slee.RolledBackContext arg0)
Specified by:
sbbRolledBack in interface javax.slee.Sbb

sbbStore

public void sbbStore()
Specified by:
sbbStore in interface javax.slee.Sbb

unsetSbbContext

public void unsetSbbContext()
Specified by:
unsetSbbContext in interface javax.slee.Sbb


Copyright © 2008. All Rights Reserved.