public class SubscribeCLITool extends Object
| Constructor and Description |
|---|
SubscribeCLITool() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] argv)
Method for invoking subscriptions via the command line
|
static void |
processDaily(Context context,
boolean test)
Process subscriptions.
|
static void |
sendEmail(Context context,
EPerson eperson,
List<Collection> collections,
boolean test)
Sends an email to the given e-person with details of new items in the
given collections, items that appeared yesterday.
|
public static void processDaily(Context context, boolean test) throws SQLException, IOException
context - DSpace context objecttest - SQLExceptionIOExceptionpublic static void sendEmail(Context context, EPerson eperson, List<Collection> collections, boolean test) throws IOException, javax.mail.MessagingException, SQLException
context - DSpace context objecteperson - eperson to send tocollections - List of collection IDs (Integers)test - IOExceptionjavax.mail.MessagingExceptionSQLExceptionpublic static void main(String[] argv)
argv - command-line arguments, none used yetCopyright © 2016 DuraSpace. All Rights Reserved.