Codota Logo
AxisBinding.getPolicySubject
Code IndexAdd Codota to your IDE (free)

How to use
getPolicySubject
method
in
org.apache.axis2.description.AxisBinding

Best Java code snippets using org.apache.axis2.description.AxisBinding.getPolicySubject (Showing top 20 results out of 315)

  • Common ways to obtain AxisBinding
private void myMethod () {
AxisBinding a =
  • Codota IconAxisEndpoint axisEndpoint;axisEndpoint.getBinding()
  • Smart code suggestions by Codota
}
origin: wso2/carbon-identity-framework

public void removeSecurityPolicyFromAllBindings(AxisService axisService, String uuid)
    throws ServerException {
  if (log.isDebugEnabled()) {
    log.debug("Removing  security policy from all bindings.");
  }
  Map endPointMap = axisService.getEndpoints();
  for (Object o : endPointMap.entrySet()) {
    Map.Entry entry = (Map.Entry) o;
    AxisEndpoint point = (AxisEndpoint) entry.getValue();
    AxisBinding binding = point.getBinding();
    if (binding.getPolicySubject().getAttachedPolicyComponent(uuid) != null) {
      binding.getPolicySubject().detachPolicyComponent(uuid);
    }
  }
}
origin: org.wso2.carbon.identity/org.wso2.carbon.security.mgt

public void removeSecurityPolicyFromAllBindings(AxisService axisService, String uuid)
    throws ServerException {
  if (log.isDebugEnabled()) {
    log.debug("Removing  security policy from all bindings.");
  }
  Map endPointMap = axisService.getEndpoints();
  for (Object o : endPointMap.entrySet()) {
    Map.Entry entry = (Map.Entry) o;
    AxisEndpoint point = (AxisEndpoint) entry.getValue();
    AxisBinding binding = point.getBinding();
    if (binding.getPolicySubject().getAttachedPolicyComponent(uuid) != null) {
      binding.getPolicySubject().detachPolicyComponent(uuid);
    }
  }
}
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.security.mgt

public void removeSecurityPolicyFromAllBindings(AxisService axisService, String uuid)
    throws ServerException {
  if (log.isDebugEnabled()) {
    log.debug("Removing  security policy from all bindings.");
  }
  Map endPointMap = axisService.getEndpoints();
  for (Object o : endPointMap.entrySet()) {
    Map.Entry entry = (Map.Entry) o;
    AxisEndpoint point = (AxisEndpoint) entry.getValue();
    AxisBinding binding = point.getBinding();
    if (binding.getPolicySubject().getAttachedPolicyComponent(uuid) != null) {
      binding.getPolicySubject().detachPolicyComponent(uuid);
    }
  }
}
origin: org.apache.axis2/axis2-kernel

public Policy getEffectivePolicy() {
  Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>();
  policyList.addAll(getPolicySubject().getAttachedPolicyComponents());
   // AxisEndpoint
  AxisEndpoint axisEndpoint = getAxisEndpoint();
  
  if (axisEndpoint != null) {
    policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents());
  }
  
  AxisService service = null;
  
  if (axisEndpoint != null) {
    service = axisEndpoint.getAxisService();
  }
  
  if (service != null) {
    PolicySubject servicePolicySubject = service.getPolicySubject();
    if (servicePolicySubject != null) {
      policyList.addAll(servicePolicySubject.getAttachedPolicyComponents());
    }
  }
  
  return PolicyUtil.getMergedPolicy(policyList,  this);
}
origin: org.wso2.carbon.identity/org.wso2.carbon.security.mgt

public void addPolicyToAllBindings(AxisService axisService, Policy policy)
    throws ServerException {
  try {
    if (policy.getId() == null) {
      // Generate an ID
      policy.setId(UUIDGenerator.getUUID());
    }
    Map endPointMap = axisService.getEndpoints();
    for (Object o : endPointMap.entrySet()) {
      Map.Entry entry = (Map.Entry) o;
      AxisEndpoint point = (AxisEndpoint) entry.getValue();
      AxisBinding binding = point.getBinding();
      String bindingName = binding.getName().getLocalPart();
      //only UTOverTransport is allowed for HTTP
      if (bindingName.endsWith("HttpBinding") &&
          (!policy.getAttributes().containsValue("UTOverTransport"))) {
        continue;
      }
      binding.getPolicySubject().attachPolicy(policy);
      // Add the new policy to the registry
    }
  } catch (Exception e) {
    log.error("Error in adding security policy to all bindings", e);
    throw new ServerException("addPoliciesToService", e);
  }
}
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.security.mgt

public void addPolicyToAllBindings(AxisService axisService, Policy policy)
    throws ServerException {
  try {
    if (policy.getId() == null) {
      // Generate an ID
      policy.setId(UUIDGenerator.getUUID());
    }
    Map endPointMap = axisService.getEndpoints();
    for (Object o : endPointMap.entrySet()) {
      Map.Entry entry = (Map.Entry) o;
      AxisEndpoint point = (AxisEndpoint) entry.getValue();
      AxisBinding binding = point.getBinding();
      String bindingName = binding.getName().getLocalPart();
      //only UTOverTransport is allowed for HTTP
      if (bindingName.endsWith("HttpBinding") &&
          (!policy.getAttributes().containsValue("UTOverTransport"))) {
        continue;
      }
      binding.getPolicySubject().attachPolicy(policy);
      // Add the new policy to the registry
    }
  } catch (Exception e) {
    log.error("Error in adding security policy to all bindings", e);
    throw new ServerException("addPoliciesToService", e);
  }
}
origin: apache/axis2-java

public Policy getEffectivePolicy() {
  Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>();
  policyList.addAll(getPolicySubject().getAttachedPolicyComponents());
   // AxisEndpoint
  AxisEndpoint axisEndpoint = getAxisEndpoint();
  
  if (axisEndpoint != null) {
    policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents());
  }
  
  AxisService service = null;
  
  if (axisEndpoint != null) {
    service = axisEndpoint.getAxisService();
  }
  
  if (service != null) {
    PolicySubject servicePolicySubject = service.getPolicySubject();
    if (servicePolicySubject != null) {
      policyList.addAll(servicePolicySubject.getAttachedPolicyComponents());
    }
  }
  
  return PolicyUtil.getMergedPolicy(policyList,  this);
}
origin: apache/axis2-java

public Policy getEffectivePolicy() {
  
  Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>();
  policyList.addAll(getPolicySubject().getAttachedPolicyComponents());
  
  // AxisBinding
  AxisBinding axisBinding = getAxisBinding();
  if (axisBinding != null) {
    policyList.addAll(axisBinding.getPolicySubject().getAttachedPolicyComponents());
  }
  // AxisEndpoint
  AxisEndpoint axisEndpoint = null;
  if (axisBinding != null) {
    axisEndpoint = axisBinding.getAxisEndpoint();
  }
  if (axisEndpoint != null) {
    policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents());
  }
  
  if (axisOperation != null) {
    policyList.addAll(axisOperation.getPolicySubject().getAttachedPolicyComponents());
  }
  return PolicyUtil.getMergedPolicy(policyList, this);
}
origin: wso2/carbon-identity-framework

public void addPolicyToAllBindings(AxisService axisService, Policy policy)
    throws ServerException {
  try {
    if (policy.getId() == null) {
      // Generate an ID
      policy.setId(UUIDGenerator.getUUID());
    }
    Map endPointMap = axisService.getEndpoints();
    for (Object o : endPointMap.entrySet()) {
      Map.Entry entry = (Map.Entry) o;
      AxisEndpoint point = (AxisEndpoint) entry.getValue();
      AxisBinding binding = point.getBinding();
      String bindingName = binding.getName().getLocalPart();
      //only UTOverTransport is allowed for HTTP
      if (bindingName.endsWith("HttpBinding") &&
          (!policy.getAttributes().containsValue("UTOverTransport"))) {
        continue;
      }
      binding.getPolicySubject().attachPolicy(policy);
      // Add the new policy to the registry
    }
  } catch (Exception e) {
    log.error("Error in adding security policy to all bindings", e);
    throw new ServerException("addPoliciesToService", e);
  }
}
origin: org.apache.axis2/axis2-kernel

public Policy getEffectivePolicy() {
  
  Collection<PolicyComponent> policyList = new ArrayList<PolicyComponent>();
  policyList.addAll(getPolicySubject().getAttachedPolicyComponents());
  
  // AxisBinding
  AxisBinding axisBinding = getAxisBinding();
  if (axisBinding != null) {
    policyList.addAll(axisBinding.getPolicySubject().getAttachedPolicyComponents());
  }
  // AxisEndpoint
  AxisEndpoint axisEndpoint = null;
  if (axisBinding != null) {
    axisEndpoint = axisBinding.getAxisEndpoint();
  }
  if (axisEndpoint != null) {
    policyList.addAll(axisEndpoint.getPolicySubject().getAttachedPolicyComponents());
  }
  
  if (axisOperation != null) {
    policyList.addAll(axisOperation.getPolicySubject().getAttachedPolicyComponents());
  }
  return PolicyUtil.getMergedPolicy(policyList, this);
}
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.security.mgt

  continue;
binding.getPolicySubject().attachPolicy(policy);
origin: wso2/carbon-identity-framework

  continue;
binding.getPolicySubject().attachPolicy(policy);
origin: org.apache.axis2/axis2-kernel

int key = identifiers.length;
if (key == 1) {
  axisBinding.getPolicySubject().attachPolicyComponents(
      policyComponents);
} else if (key == 2 || key == 3) {
origin: apache/axis2-java

int key = identifiers.length;
if (key == 1) {
  axisBinding.getPolicySubject().attachPolicyComponents(
      policyComponents);
} else if (key == 2 || key == 3) {
origin: org.wso2.carbon.identity/org.wso2.carbon.security.mgt

  continue;
binding.getPolicySubject().attachPolicy(policy);
origin: org.wso2.carbon.identity.framework/org.wso2.carbon.security.mgt

AxisEndpoint point = (AxisEndpoint) entry.getValue();
AxisBinding binding = point.getBinding();
java.util.Collection policies = binding.getPolicySubject()
    .getAttachedPolicyComponents();
Iterator policyComponents = policies.iterator();
origin: apache/axis2-java

    : axisBindingOperation.getAxisBinding();
if (axisBinding != null) {
  policyList.addAll(axisBinding.getPolicySubject()
      .getAttachedPolicyComponents());
origin: org.apache.axis2/axis2-kernel

    : axisBindingOperation.getAxisBinding();
if (axisBinding != null) {
  policyList.addAll(axisBinding.getPolicySubject()
      .getAttachedPolicyComponents());
origin: org.apache.axis2/axis2-kernel

    : axisBindingOperation.getAxisBinding();
if (axisBinding != null
    && axisBinding.getPolicySubject().getLastUpdatedTime().after(
    lastPolicyCalculatedTime)) {
  return true;
origin: apache/axis2-java

    : axisBindingOperation.getAxisBinding();
if (axisBinding != null
    && axisBinding.getPolicySubject().getLastUpdatedTime().after(
    lastPolicyCalculatedTime)) {
  return true;
org.apache.axis2.descriptionAxisBindinggetPolicySubject

Popular methods of AxisBinding

  • getName
  • getChild
  • getProperty
  • <init>
  • addChild
  • getChildren
  • getType
  • setName
  • setProperty
  • setType
  • addFault
  • getAxisEndpoint
  • addFault,
  • getAxisEndpoint,
  • getEffectivePolicy,
  • getFault,
  • getParameterValue,
  • setParent,
  • toWSDL20

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Runner (org.openjdk.jmh.runner)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now