Class AbstractSubscriptionsDAO
- java.lang.Object
-
- org.alfresco.repo.domain.subscriptions.AbstractSubscriptionsDAO
-
- All Implemented Interfaces:
SubscriptionsDAO
- Direct Known Subclasses:
SubscriptionsDAOImpl
public abstract class AbstractSubscriptionsDAO extends Object implements SubscriptionsDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected NodeServicenodeServiceprotected PersonServicepersonService
-
Constructor Summary
Constructors Constructor Description AbstractSubscriptionsDAO()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intcountFollowers(String userId)abstract intcountSubscriptions(String userId, SubscriptionItemTypeEnum type)abstract voiddeleteSubscription(String userId, NodeRef node)protected NodeRefgetUserNodeRef(String userId)abstract booleanhasSubscribed(String userId, NodeRef node)abstract voidinsertSubscription(String userId, NodeRef node)abstract PagingFollowingResultsselectFollowers(String userId, PagingRequest pagingRequest)abstract PagingSubscriptionResultsselectSubscriptions(String userId, SubscriptionItemTypeEnum type, PagingRequest pagingRequest)voidsetNodeService(NodeService nodeService)voidsetPersonService(PersonService personService)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.domain.subscriptions.SubscriptionsDAO
selectFollowing
-
-
-
-
Field Detail
-
nodeService
protected NodeService nodeService
-
personService
protected PersonService personService
-
-
Method Detail
-
setNodeService
public final void setNodeService(NodeService nodeService)
-
setPersonService
public final void setPersonService(PersonService personService)
-
selectSubscriptions
public abstract PagingSubscriptionResults selectSubscriptions(String userId, SubscriptionItemTypeEnum type, PagingRequest pagingRequest)
- Specified by:
selectSubscriptionsin interfaceSubscriptionsDAO
-
countSubscriptions
public abstract int countSubscriptions(String userId, SubscriptionItemTypeEnum type)
- Specified by:
countSubscriptionsin interfaceSubscriptionsDAO
-
insertSubscription
public abstract void insertSubscription(String userId, NodeRef node)
- Specified by:
insertSubscriptionin interfaceSubscriptionsDAO
-
deleteSubscription
public abstract void deleteSubscription(String userId, NodeRef node)
- Specified by:
deleteSubscriptionin interfaceSubscriptionsDAO
-
hasSubscribed
public abstract boolean hasSubscribed(String userId, NodeRef node)
- Specified by:
hasSubscribedin interfaceSubscriptionsDAO
-
selectFollowers
public abstract PagingFollowingResults selectFollowers(String userId, PagingRequest pagingRequest)
- Specified by:
selectFollowersin interfaceSubscriptionsDAO
-
countFollowers
public abstract int countFollowers(String userId)
- Specified by:
countFollowersin interfaceSubscriptionsDAO
-
-