public void setServiceGroupContext(ServiceGroupContext serviceGroupContext) { // allow the service group context to be set to null // this allows the message context object to be extraced from // the object graph this.serviceGroupContext = serviceGroupContext; if (this.serviceGroupContext != null) { this.axisServiceGroup = serviceGroupContext.getDescription(); } }
public void setServiceGroupContext(ServiceGroupContext serviceGroupContext) { // allow the service group context to be set to null // this allows the message context object to be extraced from // the object graph this.serviceGroupContext = serviceGroupContext; if (this.serviceGroupContext != null) { this.axisServiceGroup = serviceGroupContext.getDescription(); } }
/** * Adds the given ServiceGroupContext into the Application Scope table * * @param serviceGroupContext The Service Group Context to add */ public void addServiceGroupContextIntoApplicationScopeTable (ServiceGroupContext serviceGroupContext) { if (applicationSessionServiceGroupContexts == null) { applicationSessionServiceGroupContexts = new Hashtable<String, ServiceGroupContext>(); } applicationSessionServiceGroupContexts.put( serviceGroupContext.getDescription().getServiceGroupName(), serviceGroupContext); }
public void addServiceGroupContext(ServiceGroupContext serviceGroupContext) { String serviceGroupID = serviceGroupContext.getDescription().getServiceGroupName(); serviceGroupContextMap.put(serviceGroupID, serviceGroupContext); }
/** * Adds the given ServiceGroupContext into the Application Scope table * * @param serviceGroupContext The Service Group Context to add */ public void addServiceGroupContextIntoApplicationScopeTable (ServiceGroupContext serviceGroupContext) { if (applicationSessionServiceGroupContexts == null) { applicationSessionServiceGroupContexts = new Hashtable<String, ServiceGroupContext>(); } applicationSessionServiceGroupContexts.put( serviceGroupContext.getDescription().getServiceGroupName(), serviceGroupContext); }
public void addServiceGroupContext(ServiceGroupContext serviceGroupContext) { String serviceGroupID = serviceGroupContext.getDescription().getServiceGroupName(); serviceGroupContextMap.put(serviceGroupID, serviceGroupContext); }
if (!this.axisServiceGroup.equals(ctx.getDescription())) { return false;
/** * Removes the given ServiceGroup from the ServiceGroup context * * @param serviceGroup the AxisServiceGroup to remove */ public void removeServiceGroupContext(AxisServiceGroup serviceGroup) { if (serviceGroup == null) return; String groupName = serviceGroup.getServiceGroupName(); Object obj = applicationSessionServiceGroupContexts.get(groupName); if (obj != null) { applicationSessionServiceGroupContexts.remove(serviceGroup.getServiceGroupName()); return; } ArrayList<String> toBeRemovedList = new ArrayList<String>(); Iterator<ServiceGroupContext> serviceGroupContexts = serviceGroupContextMap.values().iterator(); while (serviceGroupContexts.hasNext()) { ServiceGroupContext serviceGroupContext =serviceGroupContexts.next(); if (serviceGroupContext.getDescription().equals(serviceGroup)) { toBeRemovedList.add(serviceGroupContext.getId()); } } for (Object aToBeRemovedList : toBeRemovedList) { String s = (String)aToBeRemovedList; serviceGroupContextMap.remove(s); } }
if (!this.axisServiceGroup.equals(ctx.getDescription())) { return false;
/** * Removes the given ServiceGroup from the ServiceGroup context * * @param serviceGroup the AxisServiceGroup to remove */ public void removeServiceGroupContext(AxisServiceGroup serviceGroup) { if (serviceGroup == null) return; String groupName = serviceGroup.getServiceGroupName(); Object obj = applicationSessionServiceGroupContexts.get(groupName); if (obj != null) { applicationSessionServiceGroupContexts.remove(serviceGroup.getServiceGroupName()); return; } ArrayList<String> toBeRemovedList = new ArrayList<String>(); Iterator<ServiceGroupContext> serviceGroupContexts = serviceGroupContextMap.values().iterator(); while (serviceGroupContexts.hasNext()) { ServiceGroupContext serviceGroupContext =serviceGroupContexts.next(); if (serviceGroupContext.getDescription().equals(serviceGroup)) { toBeRemovedList.add(serviceGroupContext.getId()); } } for (Object aToBeRemovedList : toBeRemovedList) { String s = (String)aToBeRemovedList; serviceGroupContextMap.remove(s); } }
axisSG = serviceGroupCtx.getDescription();
axisSG = serviceGroupCtx.getDescription();
AxisServiceGroup serviceGroup = serviceGroupContext.getDescription(); Iterator<AxisService> serviceItr = serviceGroup.getServices(); while (serviceItr.hasNext()) {
AxisServiceGroup serviceGroup = serviceGroupContext.getDescription(); Iterator<AxisService> serviceItr = serviceGroup.getServices(); while (serviceItr.hasNext()) {
private static UpdateStateCommand toUpdateContextCommand(AbstractContext context) { UpdateStateCommand cmd = null; if (context instanceof ConfigurationContext) { cmd = new UpdateConfigurationStateCommand(); } else if (context instanceof ServiceGroupContext) { ServiceGroupContext sgCtx = (ServiceGroupContext) context; cmd = new UpdateServiceGroupStateCommand(); UpdateServiceGroupStateCommand updateSgCmd = (UpdateServiceGroupStateCommand) cmd; updateSgCmd.setServiceGroupName(sgCtx.getDescription().getServiceGroupName()); updateSgCmd.setServiceGroupContextId(sgCtx.getId()); } else if (context instanceof ServiceContext) { ServiceContext serviceCtx = (ServiceContext) context; cmd = new UpdateServiceStateCommand(); UpdateServiceStateCommand updateServiceCmd = (UpdateServiceStateCommand) cmd; String sgName = serviceCtx.getServiceGroupContext().getDescription().getServiceGroupName(); updateServiceCmd.setServiceGroupName(sgName); updateServiceCmd.setServiceGroupContextId(serviceCtx.getServiceGroupContext().getId()); updateServiceCmd.setServiceName(serviceCtx.getAxisService().getName()); } return cmd; }
private static UpdateStateCommand toUpdateContextCommand(AbstractContext context) { UpdateStateCommand cmd = null; if (context instanceof ConfigurationContext) { cmd = new UpdateConfigurationStateCommand(); } else if (context instanceof ServiceGroupContext) { ServiceGroupContext sgCtx = (ServiceGroupContext) context; cmd = new UpdateServiceGroupStateCommand(); UpdateServiceGroupStateCommand updateSgCmd = (UpdateServiceGroupStateCommand) cmd; updateSgCmd.setServiceGroupName(sgCtx.getDescription().getServiceGroupName()); updateSgCmd.setServiceGroupContextId(sgCtx.getId()); } else if (context instanceof ServiceContext) { ServiceContext serviceCtx = (ServiceContext) context; cmd = new UpdateServiceStateCommand(); UpdateServiceStateCommand updateServiceCmd = (UpdateServiceStateCommand) cmd; String sgName = serviceCtx.getServiceGroupContext().getDescription().getServiceGroupName(); updateServiceCmd.setServiceGroupName(sgName); updateServiceCmd.setServiceGroupContextId(serviceCtx.getServiceGroupContext().getId()); updateServiceCmd.setServiceName(serviceCtx.getAxisService().getName()); } return cmd; }