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:
Florian Mü
2011-06-20 18:08:36 +00:00
parent adc0297235
commit f53a15b729
3 changed files with 90 additions and 73 deletions

View File

@@ -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();
}