public FaultyServiceData(AxisServiceGroup serviceGroup, ArrayList<AxisService> serviceList, URL serviceLocation, DeploymentFileData currentDeploymentFile) { serviceGroupName = serviceGroup.getServiceGroupName(); this.serviceGroup = serviceGroup; this.serviceList = serviceList; this.currentDeploymentFile = currentDeploymentFile; this.serviceLocation = serviceLocation; }
public FaultyServiceData(AxisServiceGroup serviceGroup, ArrayList<AxisService> serviceList, URL serviceLocation, DeploymentFileData currentDeploymentFile) { serviceGroupName = serviceGroup.getServiceGroupName(); this.serviceGroup = serviceGroup; this.serviceList = serviceList; this.currentDeploymentFile = currentDeploymentFile; this.serviceLocation = serviceLocation; }
private static String getServiceGroupMapKey(AxisServiceGroup serviceGroup) { return serviceGroup.getServiceGroupName() + "$#sg"; }
private static String getServiceGroupMapKey(AxisServiceGroup serviceGroup) { return serviceGroup.getServiceGroupName() + "$#sg"; }
public ServiceGroupContext(ConfigurationContext parent, AxisServiceGroup axisServiceGroup) { super(parent); this.axisServiceGroup = axisServiceGroup; serviceContextMap = new HashMap<String, ServiceContext>(); // initially set the id to the axisServiceGroup if (axisServiceGroup != null) { setId(axisServiceGroup.getServiceGroupName()); } }
/** * 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); }
public ServiceGroupContext(ConfigurationContext parent, AxisServiceGroup axisServiceGroup) { super(parent); this.axisServiceGroup = axisServiceGroup; serviceContextMap = new HashMap<String, ServiceContext>(); // initially set the id to the axisServiceGroup if (axisServiceGroup != null) { setId(axisServiceGroup.getServiceGroupName()); } }
/** * 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); }
private String getRegistryServicePath(AxisService service) { StringBuilder pathValue = new StringBuilder(); return (pathValue .append(RegistryResources.SERVICE_GROUPS) .append(service.getAxisServiceGroup().getServiceGroupName()) .append(RegistryResources.SERVICES) .append(service.getName())).toString(); }
private String getRegistryServicePath(AxisService service) { StringBuilder pathValue = new StringBuilder(); return (pathValue .append(RegistryResources.SERVICE_GROUPS) .append(service.getAxisServiceGroup().getServiceGroupName()) .append(RegistryResources.SERVICES) .append(service.getName())).toString(); }
private String getRegistryServicePath(AxisService service) { StringBuilder pathValue = new StringBuilder(); return (pathValue .append(RegistryResources.SERVICE_GROUPS) .append(service.getAxisServiceGroup().getServiceGroupName()) .append(RegistryResources.SERVICES) .append(service.getName())).toString(); }
private String getRegistryServicePath(AxisService service) { StringBuilder pathValue = new StringBuilder(); return (pathValue .append(RegistryResources.SERVICE_GROUPS) .append(service.getAxisServiceGroup().getServiceGroupName()) .append(RegistryResources.SERVICES) .append(service.getName())).toString(); }
private String getRegistryServicePath(AxisService service) { StringBuilder pathValue = new StringBuilder(); return (pathValue .append(RegistryResources.SERVICE_GROUPS) .append(service.getAxisServiceGroup().getServiceGroupName()) .append(RegistryResources.SERVICES) .append(service.getName())).toString(); }
private String getRegistryServicePath(AxisService service) { StringBuilder pathValue = new StringBuilder(); return (pathValue .append(RegistryResources.SERVICE_GROUPS) .append(service.getAxisServiceGroup().getServiceGroupName()) .append(RegistryResources.SERVICES) .append(service.getName())).toString(); }
/** * This method verifies whether there's an existing data service group for the given name data service group. * * @param axisConfiguration Axis configuration * @param dataServiceGroup Data service Group * @return Boolean (Is available) * @throws AxisFault */ public static boolean isAvailableDSServiceGroup(AxisConfiguration axisConfiguration, String dataServiceGroup) throws AxisFault { Iterator<AxisServiceGroup> map = axisConfiguration.getServiceGroups(); while (map.hasNext()) { AxisServiceGroup serviceGroup = map.next(); if (serviceGroup.getServiceGroupName().equals(dataServiceGroup)) { return true; } } return false; }
public void serviceGroupUpdate(AxisEvent axisEvent, AxisServiceGroup serviceGroup) { int eventType = axisEvent.getEventType(); String sgName = serviceGroup.getServiceGroupName(); if (eventType == AxisEvent.SERVICE_DEPLOY) { for (String dsName : dataDS) { if (sgName.compareTo(dsName) == 0) { addAdminParameters(serviceGroup, "/permission/bam/dataCollection"); } } for (String dsName : queryDS) { if (sgName.compareTo(dsName) == 0) { addAdminParameters(serviceGroup, "/permission/bam/view"); } } } }
/** * Clean up configuration created with this client. Call this method when you're done using the * client, in order to discard any associated resources. * * @throws AxisFault in case of error */ public void cleanup() throws AxisFault { // if a configuration context was created for this client there'll also // be a service group, so discard that if (!createConfigCtx) { String serviceGroupName = axisService.getAxisServiceGroup().getServiceGroupName(); AxisConfiguration axisConfiguration = configContext.getAxisConfiguration(); AxisServiceGroup asg = axisConfiguration.getServiceGroup(serviceGroupName); if ((asg != null) && removeAxisService) { axisConfiguration.removeServiceGroup(serviceGroupName); } } else { configContext.terminate(); } }
/** * Return service group details for a given service group * * @param serviceGroupName * * @return ServiceGroupMetaData * * @throws AxisFault */ public ServiceGroupMetaData listServiceGroup(String serviceGroupName) throws AxisFault { ServiceGroupMetaData sgmd = new ServiceGroupMetaData(); AxisServiceGroup serviceGroup = getAxisConfig().getServiceGroup(serviceGroupName); sgmd.setGroup_name(serviceGroup.getServiceGroupName()); Parameter parameter = serviceGroup.getParameter(Constants.Configuration.ENABLE_MTOM); if (parameter != null) { sgmd.setEnableMTOM((String) parameter.getValue()); } return sgmd; }