test.junit.XACMLTestPolicies.invalid-policies.deny-purge-object-if-not-deleted.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <Policy xmlns="urn:oasis:names:tc:xacml:1.0:policy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" PolicyId="deny-purge-object-if-not-deleted" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:first-applicable"> <Description>deny object purge unless object is in deleted state</Description> <Target> <Subjects> <AnySubject/> </Subjects> <Actions> <Action> <ActionMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <ActionAttributeDesignator DataType="http://www.w3.org/2001/XMLSchema#string" AttributeId="urn:fedora:names:fedora:2.1:action:action-id"/> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string" >urn:fedora:names:fedora:2.1:action:purgeObject</AttributeValue> </ActionMatch> </Action> </Actions> <Resources> <Resource> <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal"> <ResourceAttributeDesignator AttributeId="urn:fedora:names:fedora:2.1:object:state" MustBePresent="false" DataType="http://www.w3.org/2001/XMLSchema#string"/> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">Deleted</AttributeValue> </ResourceMatch> </Resource> </Resources> </Target> <Rule RuleId="1" Effect="Deny"/> </Policy>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy