public class SubscriptionsDAOImpl extends AbstractSubscriptionsDAO
nodeService, personService
Constructor and Description |
---|
SubscriptionsDAOImpl() |
Modifier and Type | Method and Description |
---|---|
int |
countFollowers(String userId) |
int |
countSubscriptions(String userId,
SubscriptionItemTypeEnum type) |
void |
deleteSubscription(String userId,
org.alfresco.service.cmr.repository.NodeRef node) |
boolean |
hasSubscribed(String userId,
org.alfresco.service.cmr.repository.NodeRef node) |
void |
insertSubscription(String userId,
org.alfresco.service.cmr.repository.NodeRef node) |
PagingFollowingResults |
selectFollowers(String userId,
org.alfresco.query.PagingRequest pagingRequest) |
PagingFollowingResults |
selectFollowing(String userId,
org.alfresco.query.PagingRequest pagingRequest) |
PagingSubscriptionResults |
selectSubscriptions(String userId,
SubscriptionItemTypeEnum type,
org.alfresco.query.PagingRequest pagingRequest) |
void |
setQNameDAO(QNameDAO qnameDAO) |
void |
setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) |
getUserNodeRef, setNodeService, setPersonService
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
public final void setQNameDAO(QNameDAO qnameDAO)
public PagingSubscriptionResults selectSubscriptions(String userId, SubscriptionItemTypeEnum type, org.alfresco.query.PagingRequest pagingRequest)
selectSubscriptions
in interface SubscriptionsDAO
selectSubscriptions
in class AbstractSubscriptionsDAO
public int countSubscriptions(String userId, SubscriptionItemTypeEnum type)
countSubscriptions
in interface SubscriptionsDAO
countSubscriptions
in class AbstractSubscriptionsDAO
public void insertSubscription(String userId, org.alfresco.service.cmr.repository.NodeRef node)
insertSubscription
in interface SubscriptionsDAO
insertSubscription
in class AbstractSubscriptionsDAO
public void deleteSubscription(String userId, org.alfresco.service.cmr.repository.NodeRef node)
deleteSubscription
in interface SubscriptionsDAO
deleteSubscription
in class AbstractSubscriptionsDAO
public boolean hasSubscribed(String userId, org.alfresco.service.cmr.repository.NodeRef node)
hasSubscribed
in interface SubscriptionsDAO
hasSubscribed
in class AbstractSubscriptionsDAO
public PagingFollowingResults selectFollowing(String userId, org.alfresco.query.PagingRequest pagingRequest)
public PagingFollowingResults selectFollowers(String userId, org.alfresco.query.PagingRequest pagingRequest)
selectFollowers
in interface SubscriptionsDAO
selectFollowers
in class AbstractSubscriptionsDAO
public int countFollowers(String userId)
countFollowers
in interface SubscriptionsDAO
countFollowers
in class AbstractSubscriptionsDAO
Copyright © 2005–2017 Alfresco Software. All rights reserved.