Package org.dspace.authority
Class UpdateAuthorities
- java.lang.Object
-
- org.dspace.authority.UpdateAuthorities
-
public class UpdateAuthorities extends Object
- Author:
- Antoine Snyers (antoine at atmire.com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthorityValueServiceauthorityValueServiceprotected ItemServiceitemServiceprotected PrintWriterprint
-
Constructor Summary
Constructors Constructor Description UpdateAuthorities(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static org.apache.commons.cli.OptionscreateCommandLineOptions()protected voidfollowUp(AuthorityValue authority)PrintWritergetPrint()static voidmain(String[] args)protected static intprocessArgs(String[] args, UpdateAuthorities UpdateAuthorities)voidrun()voidsetPrint(PrintWriter print)protected voidupdateItems(AuthorityValue authority)
-
-
-
Field Detail
-
print
protected PrintWriter print
-
itemService
protected final ItemService itemService
-
authorityValueService
protected final AuthorityValueService authorityValueService
-
-
Constructor Detail
-
UpdateAuthorities
public UpdateAuthorities(Context context)
-
-
Method Detail
-
main
public static void main(String[] args) throws org.apache.commons.cli.ParseException
- Throws:
org.apache.commons.cli.ParseException
-
processArgs
protected static int processArgs(String[] args, UpdateAuthorities UpdateAuthorities) throws org.apache.commons.cli.ParseException
- Throws:
org.apache.commons.cli.ParseException
-
createCommandLineOptions
protected static org.apache.commons.cli.Options createCommandLineOptions()
-
run
public void run()
-
followUp
protected void followUp(AuthorityValue authority)
-
updateItems
protected void updateItems(AuthorityValue authority)
-
getPrint
public PrintWriter getPrint()
-
setPrint
public void setPrint(PrintWriter print)
-
-