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(java.lang.String subscriber, Notifier notifier, java.lang.String eventPackage, java.lang.Object unmarshalledContent)
           
abstract  java.util.HashMap getCombinedRules()
           
 java.lang.String[] getEventPackages()
           
 javax.sip.header.HeaderFactory getHeaderFactory()
           
 javax.xml.bind.Marshaller getMarshaller()
           
 NotifyContent getNotifyContent(Subscription subscription)
           
abstract  ImplementedSubscriptionControlParentSbbLocalObject getParentSbbCMP()
           
 PresRulesActivityContextInterfaceFactory getPresRulesACIF()
           
 PresRulesSbbInterface getPresRulesSbbInterface()
           
 PublicationControlSbbLocalObject getPublicationChildSbb()
           
abstract  javax.slee.ChildRelation getPublicationControlChildRelation()
           
abstract  PublicationControlSbbLocalObject getPublicationControlChildSbbCMP()
           
 javax.slee.SbbLocalObject getSbbLocalObject()
           
 java.lang.String getSphere(java.lang.String notifier)
          interface used by rules processor to get sphere for a notifier
 javax.xml.bind.Unmarshaller getUnmarshaller()
           
 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 setParentSbb(ImplementedSubscriptionControlParentSbbLocalObject sbbLocalObject)
           
abstract  void setParentSbbCMP(ImplementedSubscriptionControlParentSbbLocalObject sbbLocalObject)
           
abstract  void setPublicationControlChildSbbCMP(PublicationControlSbbLocalObject value)
           
 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

getParentSbbCMP

public abstract ImplementedSubscriptionControlParentSbbLocalObject getParentSbbCMP()
Specified by:
getParentSbbCMP in interface PresenceSubscriptionControlSbbInterface

setParentSbbCMP

public abstract void setParentSbbCMP(ImplementedSubscriptionControlParentSbbLocalObject sbbLocalObject)

setParentSbb

public void setParentSbb(ImplementedSubscriptionControlParentSbbLocalObject sbbLocalObject)
Specified by:
setParentSbb in interface ImplementedSubscriptionControl

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(java.lang.String subscriber,
                                                   Notifier notifier,
                                                   java.lang.String eventPackage,
                                                   java.lang.Object unmarshalledContent)
Specified by:
filterContentPerSubscriber in interface ImplementedSubscriptionControl

onRulesetUpdatedEvent

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

getMarshaller

public javax.xml.bind.Marshaller getMarshaller()
Specified by:
getMarshaller in interface ImplementedSubscriptionControl

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 javax.slee.ChildRelation getPublicationControlChildRelation()

getPublicationControlChildSbbCMP

public abstract PublicationControlSbbLocalObject getPublicationControlChildSbbCMP()

setPublicationControlChildSbbCMP

public abstract void setPublicationControlChildSbbCMP(PublicationControlSbbLocalObject value)

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

getUnmarshaller

public javax.xml.bind.Unmarshaller getUnmarshaller()
Specified by:
getUnmarshaller 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 © 2010. All Rights Reserved.