public interface SubscribeService
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByCollection(Context context,
Collection collection)
Delete subscription by collection.
|
void |
deleteByEPerson(Context context,
EPerson ePerson)
Delete subscription by eperson (subscriber).
|
List<Subscription> |
findAll(Context context)
Subscribe an e-person to a collection.
|
List<Collection> |
getAvailableSubscriptions(Context context)
Find out which collections the currently logged in e-person can subscribe to
|
List<Collection> |
getAvailableSubscriptions(Context context,
EPerson eperson)
Find out which collections an e-person can subscribe to
|
List<Subscription> |
getSubscriptions(Context context,
EPerson eperson)
Find out which collections an e-person is subscribed to
|
boolean |
isSubscribed(Context context,
EPerson eperson,
Collection collection)
Is that e-person subscribed to that collection?
|
void |
subscribe(Context context,
EPerson eperson,
Collection collection)
Subscribe an e-person to a collection.
|
void |
unsubscribe(Context context,
EPerson eperson,
Collection collection)
Unsubscribe an e-person to a collection.
|
List<Subscription> findAll(Context context) throws SQLException
context - DSpace contextSQLException - An exception that provides information on a database access error or other errors.void subscribe(Context context, EPerson eperson, Collection collection) throws SQLException, AuthorizeException
context - DSpace contexteperson - EPerson to subscribecollection - Collection to subscribe toSQLException - An exception that provides information on a database access error or other errors.AuthorizeException - Exception indicating the current user of the context does not have permission
to perform a particular action.void unsubscribe(Context context, EPerson eperson, Collection collection) throws SQLException, AuthorizeException
null
for the collection unsubscribes the e-person from all collections they
are subscribed to.context - DSpace contexteperson - EPerson to unsubscribecollection - Collection to unsubscribe fromSQLException - An exception that provides information on a database access error or other errors.AuthorizeException - Exception indicating the current user of the context does not have permission
to perform a particular action.List<Subscription> getSubscriptions(Context context, EPerson eperson) throws SQLException
context - DSpace contexteperson - EPersonSQLException - An exception that provides information on a database access error or other errors.List<Collection> getAvailableSubscriptions(Context context) throws SQLException
context - DSpace contextSQLException - An exception that provides information on a database access error or other errors.List<Collection> getAvailableSubscriptions(Context context, EPerson eperson) throws SQLException
context - DSpace contexteperson - EPersonSQLException - An exception that provides information on a database access error or other errors.boolean isSubscribed(Context context, EPerson eperson, Collection collection) throws SQLException
context - DSpace contexteperson - find out if this e-person is subscribedcollection - find out if subscribed to this collectiontrue if they are subscribedSQLException - An exception that provides information on a database access error or other errors.void deleteByCollection(Context context, Collection collection) throws SQLException
context - DSpace contextcollection - find out if subscribed to this collectionSQLException - An exception that provides information on a database access error or other errors.void deleteByEPerson(Context context, EPerson ePerson) throws SQLException
context - DSpace contextePerson - find out if this e-person is subscribedSQLException - An exception that provides information on a database access error or other errors.Copyright © 2019 DuraSpace. All rights reserved.