mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Completed subscriptions REST API and added a bit more UI logic
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28488 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -144,7 +144,7 @@ public interface SubscriptionService
|
||||
int getFollowersCount(String userId);
|
||||
|
||||
/**
|
||||
* Follows another
|
||||
* Follows a user.
|
||||
*
|
||||
* @param userId
|
||||
* the id of the user
|
||||
@@ -154,6 +154,14 @@ public interface SubscriptionService
|
||||
@Auditable(parameters = { "userId", "userToFollow" })
|
||||
void follow(String userId, String userToFollow);
|
||||
|
||||
/**
|
||||
* Unfollows a user.
|
||||
*
|
||||
* @param userId
|
||||
* the id of the user
|
||||
* @param userToUnfollow
|
||||
* the id of the user to unfollow
|
||||
*/
|
||||
@Auditable(parameters = { "userId", "userToUnfollow" })
|
||||
void unfollow(String userId, String userToUnfollow);
|
||||
|
||||
@@ -191,4 +199,10 @@ public interface SubscriptionService
|
||||
*/
|
||||
@NotAuditable
|
||||
boolean isSubscriptionListPrivate(String userId);
|
||||
|
||||
/**
|
||||
* Returns if subscription are enabled for this system.
|
||||
*/
|
||||
@NotAuditable
|
||||
boolean subscriptionsEnabled();
|
||||
}
|
||||
|
Reference in New Issue
Block a user