Package org.dspace.embargo
Class EmbargoCLITool
java.lang.Object
org.dspace.embargo.EmbargoCLITool
CLI class for the embargo service
- Author:
- kevinvandevelde at atmire.com
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCommand-line service to scan for every Item with an expired embargo, and then lift that embargo.protected static booleanprocessOneItem(Context context, Item item, org.apache.commons.cli.CommandLine line, ZonedDateTime now)
-
Method Details
-
main
Command-line service to scan for every Item with an expired embargo, and then lift that embargo.Options:
- -c,--check
- Function: ONLY check the state of embargoed Items, do NOT lift any embargoes.
- -h,--help
- Help.
- -i,--identifier
- Process ONLY this Handle identifier(s), which must be an Item. Can be repeated.
- -l,--lift
- Function: ONLY lift embargoes, do NOT check the state of any embargoed Items.
- -n,--dryrun
- Do not change anything in the data model; print message instead.
- -v,--verbose
- Print a line describing action taken for each embargoed Item found.
- -q,--quiet
- No output except upon error.
- Parameters:
argv- the command line arguments given
-
processOneItem
protected static boolean processOneItem(Context context, Item item, org.apache.commons.cli.CommandLine line, ZonedDateTime now) throws Exception - Throws:
Exception
-