/** * Checks whether the given service group is a special service * * @param axisServiceGroup - ServiceGroup instance * @return - true if this is a filtered service */ public static boolean isFilteredOutService(AxisServiceGroup axisServiceGroup) { String adminParamValue = (String) axisServiceGroup .getParameterValue(ThrottleConstants.ADMIN_SERVICE_PARAM_NAME); String hiddenParamValue = (String) axisServiceGroup .getParameterValue(ThrottleConstants.HIDDEN_SERVICE_PARAM_NAME); String dynamicParamValue = (String) axisServiceGroup .getParameterValue(ThrottleConstants.DYNAMIC_SERVICE_PARAM_NAME); if (adminParamValue != null && adminParamValue.length() != 0) { if (Boolean.parseBoolean(adminParamValue.trim())) { return true; } } else if (hiddenParamValue != null && hiddenParamValue.length() != 0) { if (Boolean.parseBoolean(hiddenParamValue.trim())) { return true; } } else if (dynamicParamValue != null && dynamicParamValue.length() != 0){ if(Boolean.parseBoolean(dynamicParamValue.trim())) { return true; } } return false; }
public static void addServiceGroup(AxisServiceGroup serviceGroup, ArrayList<AxisService> serviceList, URL serviceLocation, DeploymentFileData currentDeploymentFile, AxisConfiguration axisConfiguration) throws AxisFault { if (isServiceGroupReadyToDeploy(serviceGroup, serviceList, serviceLocation, currentDeploymentFile, axisConfiguration)) { fillServiceGroup(serviceGroup, serviceList, serviceLocation, axisConfiguration); axisConfiguration.addServiceGroup(serviceGroup); if (currentDeploymentFile != null) { addAsWebResources(currentDeploymentFile.getFile(), serviceGroup.getServiceGroupName(), serviceGroup); // let the system have hidden services if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue( Constants.HIDDEN_SERVICE_PARAM_NAME))) { log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS, currentDeploymentFile.getName(), serviceLocation.toString())); } } else if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue( Constants.HIDDEN_SERVICE_PARAM_NAME))) { log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS, serviceGroup.getServiceGroupName(), "")); } } }
AxisServiceGroup axisServiceGroup = (AxisServiceGroup) iterator.next(); if (axisServiceGroup.isEngaged(module)) { Long value = (Long) axisServiceGroup.getParameterValue(OSGi_BUNDLE_ID); if (value != null) { stopBundleList.add(value);
public static void addServiceGroup(AxisServiceGroup serviceGroup, ArrayList<AxisService> serviceList, URL serviceLocation, DeploymentFileData currentDeploymentFile, AxisConfiguration axisConfiguration) throws AxisFault { if (isServiceGroupReadyToDeploy(serviceGroup, serviceList, serviceLocation, currentDeploymentFile, axisConfiguration)) { fillServiceGroup(serviceGroup, serviceList, serviceLocation, axisConfiguration); axisConfiguration.addServiceGroup(serviceGroup); if (currentDeploymentFile != null) { addAsWebResources(currentDeploymentFile.getFile(), serviceGroup.getServiceGroupName(), serviceGroup); // let the system have hidden services if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue( Constants.HIDDEN_SERVICE_PARAM_NAME))) { log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS, currentDeploymentFile.getName(), serviceLocation.toString())); } } else if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue( Constants.HIDDEN_SERVICE_PARAM_NAME))) { log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS, serviceGroup.getServiceGroupName(), "")); } } }
axisConfig); if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue( Constants.HIDDEN_SERVICE_PARAM_NAME))) { log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS,
axisConfig); if (!JavaUtils.isTrueExplicitly(serviceGroup.getParameterValue( Constants.HIDDEN_SERVICE_PARAM_NAME))) { log.info(Messages.getMessage(DeploymentErrorMsgs.DEPLOYING_WS,