public abstract class AbstractSubscriptionsDAO extends Object implements SubscriptionsDAO
Modifier and Type | Field and Description |
---|---|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected PersonService |
personService |
Constructor and Description |
---|
AbstractSubscriptionsDAO() |
Modifier and Type | Method and Description |
---|---|
abstract int |
countFollowers(String userId) |
abstract int |
countSubscriptions(String userId,
SubscriptionItemTypeEnum type) |
abstract void |
deleteSubscription(String userId,
org.alfresco.service.cmr.repository.NodeRef node) |
protected org.alfresco.service.cmr.repository.NodeRef |
getUserNodeRef(String userId) |
abstract boolean |
hasSubscribed(String userId,
org.alfresco.service.cmr.repository.NodeRef node) |
abstract void |
insertSubscription(String userId,
org.alfresco.service.cmr.repository.NodeRef node) |
abstract PagingFollowingResults |
selectFollowers(String userId,
org.alfresco.query.PagingRequest pagingRequest) |
abstract PagingSubscriptionResults |
selectSubscriptions(String userId,
SubscriptionItemTypeEnum type,
org.alfresco.query.PagingRequest pagingRequest) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPersonService(PersonService personService) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
selectFollowing
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected PersonService personService
public final void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public final void setPersonService(PersonService personService)
public abstract PagingSubscriptionResults selectSubscriptions(String userId, SubscriptionItemTypeEnum type, org.alfresco.query.PagingRequest pagingRequest)
selectSubscriptions
in interface SubscriptionsDAO
public abstract int countSubscriptions(String userId, SubscriptionItemTypeEnum type)
countSubscriptions
in interface SubscriptionsDAO
public abstract void insertSubscription(String userId, org.alfresco.service.cmr.repository.NodeRef node)
insertSubscription
in interface SubscriptionsDAO
public abstract void deleteSubscription(String userId, org.alfresco.service.cmr.repository.NodeRef node)
deleteSubscription
in interface SubscriptionsDAO
public abstract boolean hasSubscribed(String userId, org.alfresco.service.cmr.repository.NodeRef node)
hasSubscribed
in interface SubscriptionsDAO
public abstract PagingFollowingResults selectFollowers(String userId, org.alfresco.query.PagingRequest pagingRequest)
selectFollowers
in interface SubscriptionsDAO
public abstract int countFollowers(String userId)
countFollowers
in interface SubscriptionsDAO
protected org.alfresco.service.cmr.repository.NodeRef getUserNodeRef(String userId)
Copyright © 2005–2017 Alfresco Software. All rights reserved.