public interface ConnectionDAO extends org.exoplatform.commons.api.persistence.GenericDAO<ConnectionEntity,Long>
| 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 receiver) |
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) |
long count(org.exoplatform.social.core.identity.model.Identity identity,
org.exoplatform.social.core.relationship.model.Relationship.Type status)
identity - the Identitystatus - the status of connectionConnectionEntity getConnection(org.exoplatform.social.core.identity.model.Identity identity1, org.exoplatform.social.core.identity.model.Identity identity2)
identity1 - The first Identityidentity2 - the second IdentityConnectionEntity getConnection(Long sender, Long receiver)
sender - the id of sender Identityreceiver - the id of receiver IdentityList<ConnectionEntity> getConnections(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type, long offset, long limit)
identity - the Identitytype - type of connectionoffset - the start indexlimit - the max items to loadList<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)
sender - the sender Identityreceiver - the receiver Identitystatus - the connection statusint getConnectionsCount(org.exoplatform.social.core.identity.model.Identity identity,
org.exoplatform.social.core.relationship.model.Relationship.Type type)
identity - the Identitytype - the connection typeList<ConnectionEntity> getLastConnections(org.exoplatform.social.core.identity.model.Identity identity, int limit)
identity - the Identitylimit - max item to loadList<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)
existingIdentity - the IdentityprofileFilter - the ProfileFiltertype - connection typeoffset - the start indexlimit - max items to loadint 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)
identity - the IdentityprofileFilter - the profile filtertype - connection typeList<Long> getSenderIds(long receiverId, org.exoplatform.social.core.relationship.model.Relationship.Type status, int offset, int limit)
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.