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, ImplementedSubscriptionControl, PresenceSubscriptionControlSbbInterface, PublishedSphereSource

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

Implemented Subscription control child sbb for a SIP Presence Server.

Author:
eduardomartins

Field Summary
protected  javax.sip.header.HeaderFactory headerFactory
           
protected  PresRulesActivityContextInterfaceFactory presRulesACIF
           
protected  PresRulesSbbInterface presRulesSbbInterface
           
protected  net.java.slee.resource.sip.SleeSipProvider sipProvider
          JAIN-SIP provider & factories
 
Constructor Summary
PresenceSubscriptionControlSbb()
           
 
Method Summary
 boolean acceptsEventList()
           
 java.lang.Object filterContentPerSubscriber(Subscription subscription, java.lang.Object unmarshalledContent)
           
abstract  java.util.HashMap getCombinedRules()
           
 java.lang.String[] getEventPackages()
           
 javax.sip.header.HeaderFactory getHeaderFactory()
           
 NotifyContent getNotifyContent(Subscription subscription)
           
 ImplementedSubscriptionControlParentSbbLocalObject getParentSbb()
           
 PresRulesActivityContextInterfaceFactory getPresRulesACIF()
           
 PresRulesSbbInterface getPresRulesSbbInterface()
           
 PublicationControlSbbLocalObject getPublicationChildSbb()
           
abstract  org.mobicents.slee.ChildRelationExt getPublicationControlChildRelation()
           
 javax.slee.SbbLocalObject getSbbLocalObject()
           
 java.lang.String getSphere(java.lang.String notifier)
          interface used by rules processor to get sphere for a notifier
 void isSubscriberAuthorized(java.lang.String subscriber, java.lang.String subscriberDisplayName, Notifier notifier, SubscriptionKey key, int expires, java.lang.String content, java.lang.String contentType, java.lang.String contentSubtype, boolean eventList, javax.sip.ServerTransaction serverTransaction)
           
 void onRulesetUpdatedEvent(RulesetUpdatedEvent event, javax.slee.ActivityContextInterface aci)
           
 void removingSubscription(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.HashMap rules)
           
 void setSbbContext(javax.slee.SbbContext sbbContext)
           
 void unsetSbbContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sipProvider

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


headerFactory

protected javax.sip.header.HeaderFactory headerFactory

presRulesSbbInterface

protected PresRulesSbbInterface presRulesSbbInterface

presRulesACIF

protected PresRulesActivityContextInterfaceFactory presRulesACIF
Constructor Detail

PresenceSubscriptionControlSbb

public PresenceSubscriptionControlSbb()
Method Detail

setSbbContext

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

acceptsEventList

public boolean acceptsEventList()
Specified by:
acceptsEventList in interface ImplementedSubscriptionControl

getParentSbb

public ImplementedSubscriptionControlParentSbbLocalObject getParentSbb()
Specified by:
getParentSbb in interface PresenceSubscriptionControlSbbInterface

getEventPackages

public java.lang.String[] getEventPackages()
Specified by:
getEventPackages in interface ImplementedSubscriptionControl

isSubscriberAuthorized

public void isSubscriberAuthorized(java.lang.String subscriber,
                                   java.lang.String subscriberDisplayName,
                                   Notifier notifier,
                                   SubscriptionKey key,
                                   int expires,
                                   java.lang.String content,
                                   java.lang.String contentType,
                                   java.lang.String contentSubtype,
                                   boolean eventList,
                                   javax.sip.ServerTransaction serverTransaction)
Specified by:
isSubscriberAuthorized in interface ImplementedSubscriptionControl

removingSubscription

public void removingSubscription(Subscription subscription)
Specified by:
removingSubscription in interface ImplementedSubscriptionControl

getNotifyContent

public NotifyContent getNotifyContent(Subscription subscription)
Specified by:
getNotifyContent in interface ImplementedSubscriptionControl

filterContentPerSubscriber

public java.lang.Object filterContentPerSubscriber(Subscription subscription,
                                                   java.lang.Object unmarshalledContent)
Specified by:
filterContentPerSubscriber in interface ImplementedSubscriptionControl

onRulesetUpdatedEvent

public void onRulesetUpdatedEvent(RulesetUpdatedEvent event,
                                  javax.slee.ActivityContextInterface aci)

getPresRulesACIF

public PresRulesActivityContextInterfaceFactory getPresRulesACIF()
Specified by:
getPresRulesACIF in interface PresenceSubscriptionControlSbbInterface

getPresRulesSbbInterface

public PresRulesSbbInterface getPresRulesSbbInterface()
Specified by:
getPresRulesSbbInterface in interface PresenceSubscriptionControlSbbInterface

getSbbLocalObject

public javax.slee.SbbLocalObject getSbbLocalObject()
Specified by:
getSbbLocalObject in interface PresenceSubscriptionControlSbbInterface

getPublicationControlChildRelation

public abstract org.mobicents.slee.ChildRelationExt getPublicationControlChildRelation()

getPublicationChildSbb

public PublicationControlSbbLocalObject getPublicationChildSbb()
Specified by:
getPublicationChildSbb in interface PresenceSubscriptionControlSbbInterface

setCombinedRules

public abstract void setCombinedRules(java.util.HashMap rules)
Specified by:
setCombinedRules in interface PresenceSubscriptionControlSbbInterface

getCombinedRules

public abstract java.util.HashMap getCombinedRules()
Specified by:
getCombinedRules in interface PresenceSubscriptionControlSbbInterface

getHeaderFactory

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

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 © 2011. All Rights Reserved.