public class LicenseCleanup extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static BitstreamService |
bitstreamService |
protected static BundleService |
bundleService |
protected static ItemService |
itemService |
protected static Templates |
templates |
| Constructor and Description |
|---|
LicenseCleanup() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
copy(Context context,
Bitstream b)
Fast stream copy routine
|
protected static void |
handleItem(Context context,
Item item)
Process Item, correcting CC-License if encountered.
|
static void |
main(String[] args) |
protected static final Templates templates
protected static final BitstreamService bitstreamService
protected static final BundleService bundleService
protected static final ItemService itemService
public static void main(String[] args) throws SQLException, AuthorizeException, IOException
args - SQLException - if database errorIOException - if IO errorAuthorizeException - if authorization errorprotected static void handleItem(Context context, Item item) throws SQLException, AuthorizeException, IOException
item - SQLException - if database errorAuthorizeException - if authorization errorIOException - if IO errorpublic static byte[] copy(Context context, Bitstream b) throws IOException, SQLException, AuthorizeException
b - the Bitstream to be copied.b.IOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorCopyright © 2017 DuraSpace. All rights reserved.