public interface SubscribeService
| Modifier and Type | Method and Description |
|---|---|
void |
deleteByCollection(Context context,
Collection collection) |
void |
deleteByEPerson(Context context,
EPerson ePerson) |
List<Subscription> |
findAll(Context context) |
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
SQLExceptionvoid subscribe(Context context, EPerson eperson, Collection collection) throws SQLException, AuthorizeException
context - DSpace contexteperson - EPerson to subscribecollection - Collection to subscribe toSQLExceptionAuthorizeExceptionvoid 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 fromSQLExceptionAuthorizeExceptionList<Subscription> getSubscriptions(Context context, EPerson eperson) throws SQLException
context - DSpace contexteperson - EPersonSQLExceptionList<Collection> getAvailableSubscriptions(Context context) throws SQLException
context - DSpace contextSQLExceptionList<Collection> getAvailableSubscriptions(Context context, EPerson eperson) throws SQLException
context - DSpace contexteperson - EPersonSQLExceptionboolean 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 subscribedSQLExceptionvoid deleteByCollection(Context context, Collection collection) throws SQLException
SQLExceptionvoid deleteByEPerson(Context context, EPerson ePerson) throws SQLException
SQLExceptionCopyright © 2016 DuraSpace. All Rights Reserved.