/** * Create an instance of {@link ArrayOfUserIdentity } * */ public ArrayOfUserIdentity createArrayOfUserIdentity() { return new ArrayOfUserIdentity(); }
((TransactionalWebServicePolicy) pol).setUserIdentification(new ArrayOfUserIdentity()); ((TransactionalWebServicePolicy) pol).getUserIdentification().getUserIdentity().addAll(userident); } else {
|| p.getUserIdentification().getUserIdentity() == null || p.getUserIdentification().getUserIdentity().isEmpty()) { return users; for (int i = 0; i < id.getUserIdentity().size(); i++) { if (id.getUserIdentity().get(i).isUseHttpHeader() != null && id.getUserIdentity().get(i).isUseHttpHeader()) { try { users.add((String) mc.Headers.get(id.getUserIdentity().get(i).getHttpHeaderName())); id.getUserIdentity().get(i).getXPaths() != null) { ArrayOfXPathExpressionType xpaths = id.getUserIdentity().get(i).getXPaths(); ArrayList<String> tlocal = getUsersfromXpath(xpaths, mc.RequestMessage);
/** * used to determine if we need to save the request or response * * @param pol * @return */ protected boolean containsSLAXpathOrUserIdentXpath(TransactionalWebServicePolicy pol) { boolean found = false; if (pol.getUserIdentification() != null && !pol.getUserIdentification().getUserIdentity().isEmpty()) { for (int i = 0; i < pol.getUserIdentification().getUserIdentity().size(); i++) { if (pol.getUserIdentification().getUserIdentity().get(i).getXPaths() != null && pol.getUserIdentification().getUserIdentity().get(i).getXPaths() != null && !pol.getUserIdentification().getUserIdentity().get(i).getXPaths().getXPathExpressionType().isEmpty()) { found = true; } } } if (found) { return true; } if (pol.getServiceLevelAggrements() != null && !pol.getServiceLevelAggrements().getSLA().isEmpty()) { for (int i = 0; i < pol.getServiceLevelAggrements().getSLA().size(); i++) { found = found || doesSLAContainXpath(pol.getServiceLevelAggrements().getSLA().get(i)); } } return found; }