Package org.dspace.embargo
Class EmbargoCLITool
- java.lang.Object
-
- org.dspace.embargo.EmbargoCLITool
-
public class EmbargoCLITool extends Object
CLI class for the embargo service- Author:
- kevinvandevelde at atmire.com
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] argv)Command-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, Date now)
-
-
-
Method Detail
-
main
public static void main(String[] argv)
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
-
-