ADD Policy list

Add policy list retrieval.
I checked in the Oasis 3 documentation and it seemed it doesn't but I'll
check again.
El 18/09/2014 18:34, "David Lopez" <notifications@github.com> escribió:

> In src/main/java/es/tid/fiware/iot/ac/model/PolicySet.java:
>
> > +
> > +/**
> > + *
> > + * @author dmj
> > + */
> > +public class PolicySet {
> > +
> > +    private Collection<Policy> policies;
> > +
> > +    public PolicySet(Collection<Policy> policies) {
> > +        this.policies = policies;
> > +    }
> > +
> > +    public Document toXml() throws IOException, SAXException {
> > +        Document setDocument = Xml.newDocument();
> > +        Element rootElement = setDocument.createElementNS("urn:oasis:names:tc:xacml:3.0:core:schema:wd-17", "PolicySet");
>
> I haven't tested it, but I think that there are more attributes (
> PolicySetId) and children nodes (Target) in a PolicySet, and maybe some
> of them are mandatory.
>
> Take a look at
> https://github.com/wso2/commons/blob/master/balana/modules/balana-core/src/test/resources/conformance/3/policies/IIIA014Policy.xacml3.xml
> .
>
> Could you please check the conformance against the XSD?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/telefonicaid/fiware-keypass/pull/17/files#r17738446>.
>