public class ConnectionDAOImpl extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<ConnectionEntity,Long> implements ConnectionDAO
| Constructor and Description |
|---|
ConnectionDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
long |
count(org.exoplatform.social.core.identity.model.Identity identity,
org.exoplatform.social.core.relationship.model.Relationship.Type status)
Has the connections
|
ConnectionEntity |
getConnection(org.exoplatform.social.core.identity.model.Identity identity1,
org.exoplatform.social.core.identity.model.Identity identity2)
Get connection of 2 users
|
ConnectionEntity |
getConnection(Long sender,
Long reciver) |
List<ConnectionEntity> |
getConnections(org.exoplatform.social.core.identity.model.Identity sender,
org.exoplatform.social.core.identity.model.Identity receiver,
org.exoplatform.social.core.relationship.model.Relationship.Type status) |
List<ConnectionEntity> |
getConnections(org.exoplatform.social.core.identity.model.Identity identity,
org.exoplatform.social.core.relationship.model.Relationship.Type type,
long offset,
long limit) |
List<ConnectionEntity> |
getConnectionsByFilter(org.exoplatform.social.core.identity.model.Identity existingIdentity,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
org.exoplatform.social.core.relationship.model.Relationship.Type type,
long offset,
long limit) |
int |
getConnectionsByFilterCount(org.exoplatform.social.core.identity.model.Identity identity,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
org.exoplatform.social.core.relationship.model.Relationship.Type type) |
int |
getConnectionsCount(org.exoplatform.social.core.identity.model.Identity identity,
org.exoplatform.social.core.relationship.model.Relationship.Type type) |
List<ConnectionEntity> |
getLastConnections(org.exoplatform.social.core.identity.model.Identity identity,
int limit) |
List<Long> |
getReceiverIds(long receiverId,
org.exoplatform.social.core.relationship.model.Relationship.Type status,
int offset,
int limit) |
List<Long> |
getSenderIds(long receiverId,
org.exoplatform.social.core.relationship.model.Relationship.Type status,
int offset,
int limit) |
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, update, updateAllpublic long count(org.exoplatform.social.core.identity.model.Identity identity,
org.exoplatform.social.core.relationship.model.Relationship.Type status)
ConnectionDAOcount in interface ConnectionDAOidentity - the Identitystatus - the status of connectionpublic ConnectionEntity getConnection(org.exoplatform.social.core.identity.model.Identity identity1, org.exoplatform.social.core.identity.model.Identity identity2)
ConnectionDAOgetConnection in interface ConnectionDAOidentity1 - The first Identityidentity2 - the second Identitypublic ConnectionEntity getConnection(Long sender, Long reciver)
getConnection in interface ConnectionDAOsender - the id of sender Identityreciver - the id of receiver Identitypublic List<ConnectionEntity> getConnections(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type, long offset, long limit)
getConnections in interface ConnectionDAOidentity - the Identitytype - type of connectionoffset - the start indexlimit - the max items to loadpublic List<ConnectionEntity> getConnections(org.exoplatform.social.core.identity.model.Identity sender, org.exoplatform.social.core.identity.model.Identity receiver, org.exoplatform.social.core.relationship.model.Relationship.Type status)
getConnections in interface ConnectionDAOsender - the sender Identityreceiver - the receiver Identitystatus - the connection statuspublic int getConnectionsCount(org.exoplatform.social.core.identity.model.Identity identity,
org.exoplatform.social.core.relationship.model.Relationship.Type type)
getConnectionsCount in interface ConnectionDAOidentity - the Identitytype - the connection typepublic List<ConnectionEntity> getLastConnections(org.exoplatform.social.core.identity.model.Identity identity, int limit)
getLastConnections in interface ConnectionDAOidentity - the Identitylimit - max item to loadpublic List<ConnectionEntity> getConnectionsByFilter(org.exoplatform.social.core.identity.model.Identity existingIdentity, org.exoplatform.social.core.profile.ProfileFilter profileFilter, org.exoplatform.social.core.relationship.model.Relationship.Type type, long offset, long limit)
getConnectionsByFilter in interface ConnectionDAOexistingIdentity - the IdentityprofileFilter - the ProfileFiltertype - connection typeoffset - the start indexlimit - max items to loadpublic int getConnectionsByFilterCount(org.exoplatform.social.core.identity.model.Identity identity,
org.exoplatform.social.core.profile.ProfileFilter profileFilter,
org.exoplatform.social.core.relationship.model.Relationship.Type type)
getConnectionsByFilterCount in interface ConnectionDAOidentity - the IdentityprofileFilter - the profile filtertype - connection typepublic List<Long> getSenderIds(long receiverId, org.exoplatform.social.core.relationship.model.Relationship.Type status, int offset, int limit)
getSenderIds in interface ConnectionDAOpublic List<Long> getReceiverIds(long receiverId, org.exoplatform.social.core.relationship.model.Relationship.Type status, int offset, int limit)
getReceiverIds in interface ConnectionDAOCopyright © 2003–2016 eXo Platform SAS. All rights reserved.