Skip to content

Commit f88e955

Browse files
authored
Merge pull request #144 from DigitLib/patch-3
Coped from patch-1
2 parents 6fab671 + 412467b commit f88e955

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@ In order to comply with XACML restrictions placed on objects, a hook is used to
3535

3636
![image](https://cloud.githubusercontent.com/assets/2371345/9816201/d7e9a1e6-5871-11e5-90a0-51381eaf8fcb.png)
3737

38+
### Drush
39+
40+
#### Apply XACML policy to target object
41+
42+
To add policy.xml to object islandora:57:
43+
`drush -v --user=1 islandora_xacml_editor_apply_policy --policy=/tmp/policy.xml --pid=islandora:57`
44+
45+
To apply this policy to islandora:57 and all child objects, add the `--traversal` option.
46+
47+
#### Force XACML inheritance to child objects
48+
49+
To apply the XACML policy from islandora:root to its children:
50+
`drush -v --user=1 islandora_xacml_editor_force_policy_inheritance --pid=islandora:root`
51+
52+
To apply this policy only to immediate children, use the `--shallow_traversal` option. Disabled by default
53+
54+
The target object must have a POLICY datastream.
55+
3856
### Notes
3957

4058
The XACML editor hooks into ingesting through the interface. When a child is added through the interface, the parent's POLICY will be applied if one exists.
@@ -60,7 +78,7 @@ Current maintainers:
6078

6179
## Development
6280

63-
If you would like to contribute to this module, please check out [CONTRIBUTING.md](CONTRIBUTING.md). In addition, we have helpful [Documentation for Developers](https://github.com/Islandora/islandora/wiki#wiki-documentation-for-developers) info, as well as our [Developers](http://islandora.ca/developers) section on the [Islandora.ca](http://islandora.ca) site.
81+
If you would like to contribute to this module, please check out [CONTRIBUTING.md](CONTRIBUTING.md). In addition, we have helpful [Documentation for Developers](https://github.com/Islandora/islandora/wiki#wiki-documentation-for-developers) info, as well as our [Developers](https://islandora.ca/developers) section on the [Islandora.ca](https://islandora.ca) site.
6482

6583
## License
6684

0 commit comments

Comments
 (0)