congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ActivityContext.getActivityContextInterface
Code IndexAdd Tabnine to your IDE (free)

How to use
getActivityContextInterface
method
in
org.mobicents.slee.container.activity.ActivityContext

Best Java code snippets using org.mobicents.slee.container.activity.ActivityContext.getActivityContextInterface (Showing top 11 results out of 315)

origin: org.mobicents.servers.jainslee.core/services

public ActivityContextInterface[] getActivities()
    throws TransactionRequiredLocalException, IllegalStateException,
    SLEEException {
  if (logger.isTraceEnabled()) {
    logger.trace("getActivities() " + this.sbbObject.getState());
  }
  if (SbbObjectState.READY != this.sbbObject.getState()) {
    throw new IllegalStateException(
        "Cannot call SbbContext.getActivities() in "
            + this.sbbObject.getState());
  }
  ActivityContextFactory acf = sleeContainer.getActivityContextFactory();
  List<ActivityContextInterface> result = new ArrayList<ActivityContextInterface>();
  ActivityContext ac = null;
  for (ActivityContextHandle ach : sbbObject.getSbbEntity()
      .getActivityContexts()) {
    ac = acf.getActivityContext(ach);
    if (ac != null) {
      result.add(ac.getActivityContextInterface());
    }
  }
  return result.toArray(EMPTY_ACI_ARRAY);
}
origin: org.mobicents.servers.jainslee.core/events

public ActivityContextInterface getActivityContextInterface() {
  return factory.getSleeContainer().getActivityContextFactory().getActivityContext(getActivityContextHandle()).getActivityContextInterface();
}

origin: org.mobicents.servers.jainslee.core/activities

public ActivityContextInterface getActivityContextInterface(
    NullActivity nullActivity) throws NullPointerException,
    TransactionRequiredLocalException, UnrecognizedActivityException,
    FactoryException {
   if (nullActivity == null ) 
     throw new NullPointerException ("null NullActivity ! huh!!");
  
  if (! (nullActivity instanceof NullActivityImpl)) 
    throw new UnrecognizedActivityException ("unrecognized activity");
  
  NullActivityImpl nullActivityImpl = (NullActivityImpl) nullActivity;
  ActivityContextHandle ach = new NullActivityContextHandle(nullActivityImpl.getHandle());
  ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext(ach);
  if (ac == null) {
    throw new UnrecognizedActivityException(nullActivity);
  }
  return ac.getActivityContextInterface();
  
}
origin: org.mobicents.servers.jainslee.core/slee-timers

public ActivityContextInterface getActivityContextInterface(TimerID timerID)
    throws NullPointerException, TransactionRequiredLocalException,
    FacilityException {
  if (timerID == null) {
    throw new NullPointerException("null timerID");
  }
  
  sleeContainer.getTransactionManager().mandateTransaction();
  
  TimerFacilityTimerTaskData taskData = (TimerFacilityTimerTaskData) scheduler.getTimerTaskData(timerID);
  if (taskData != null) {
    try {
      return sleeContainer.getActivityContextFactory().getActivityContext(taskData.getActivityContextHandle()).getActivityContextInterface();
    } catch (Exception e) {
      throw new FacilityException(e.getMessage(),e);
    }
  }
  else {
    return null;		
  }
}
 
origin: org.mobicents.servers.jainslee.core/services

/**
 * 
 * @param sbbEntity
 * @param cmpFieldName
 * @return
 */
public static ActivityContextInterface getCMPFieldOfTypeActivityContextInterface(SbbEntity sbbEntity,String cmpFieldName) {
  final Object cmpFieldValue = sbbEntity.getCMPField(cmpFieldName);
  if (cmpFieldValue == null) {
    return null;
  }
  else {
    final ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext((ActivityContextHandle) cmpFieldValue);
    if (ac != null) {
      return sbbEntity.asSbbActivityContextInterface(ac.getActivityContextInterface());
    } else {
      return null;
    }
  }
}

origin: org.mobicents.servers.jainslee.core/common

return ac.getActivityContextInterface();
origin: org.mobicents.servers.jainslee.core/services

public ActivityContextInterface getActivityContextInterface(
    ServiceActivity serviceActivityImpl) throws NullPointerException,
    TransactionRequiredLocalException, UnrecognizedActivityException,
    FactoryException {
  ActivityContextHandle ach = new ServiceActivityContextHandle(new ServiceActivityHandleImpl(((ServiceActivityImpl) serviceActivityImpl).getServiceID()));
  ActivityContext ac = sleeContainer.getActivityContextFactory().getActivityContext(ach);
  if (ac == null) {
    throw new UnrecognizedActivityException(serviceActivityImpl);
  }
  return ac.getActivityContextInterface();
}
origin: org.mobicents.servers.jainslee.core/resource

    .getActivityContext(ach);
if (ac != null) {
  return ac.getActivityContextInterface();
origin: org.mobicents.servers.jainslee.core/services

    .getEventHandlerMethods().get(sleeEvent.getEventTypeId());
ActivityContextInterface aci = asSbbActivityContextInterface(ac.getActivityContextInterface());
origin: org.mobicents.servers.jainslee.core/profiles

  public ActivityContextInterface getActivityContextInterface(
      ProfileTableActivity profileTableActivity)
      throws NullPointerException, TransactionRequiredLocalException,
      UnrecognizedActivityException, FactoryException {
    if (profileTableActivity == null
        || profileTableActivity.getProfileTableName() == null) {

      throw new NullPointerException("null profile table activity");

    }

    serviceContainer.getTransactionManager().mandateTransaction();
    ProfileTableImpl profileTableImpl = null;
    try {
      // check if this is an assigned profile table
      // name.
      profileTableImpl = profileManagementImpl.getProfileTable(profileTableActivity.getProfileTableName());
    } catch (UnrecognizedProfileTableNameException e) {
      throw new UnrecognizedActivityException(profileTableActivity.getProfileTableName(),e);
    }
    
    ActivityContext ac = profileTableImpl.getActivityContext();
    if (ac == null) {
      throw new UnrecognizedActivityException("No resource for: "+profileTableActivity.getProfileTableName(),profileTableActivity);
    }
    
    return ac.getActivityContextInterface();

  }
}
origin: org.mobicents.servers.jainslee.core/router

final ActivityContextInterface aci = ac.getActivityContextInterface();
org.mobicents.slee.container.activityActivityContextgetActivityContextInterface

Popular methods of ActivityContext

  • getActivityContextHandle
  • fireEvent
  • detachSbbEntity
  • endActivity
  • getLocalActivityContext
  • activityEnded
  • attachSbbEntity
  • isEnding
  • addNameBinding
  • attachTimer
  • beforeDeliveringEvent
  • detachTimer
  • beforeDeliveringEvent,
  • detachTimer,
  • getAttachedTimers,
  • getDataAttribute,
  • getNamingBindings,
  • getSbbAttachmentSet,
  • getSortedSbbAttachmentSet,
  • removeNameBinding,
  • setDataAttribute

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • BoxLayout (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now