Class RelationshipManagerImpl
java.lang.Object
org.exoplatform.social.core.manager.RelationshipManagerImpl
- All Implemented Interfaces:
org.exoplatform.social.core.manager.RelationshipManager
public class RelationshipManagerImpl
extends Object
implements org.exoplatform.social.core.manager.RelationshipManager
The Class RelationshipManager implements RelationshipManager without caching.
- Since:
- Nov 24, 2010
- Version:
- 1.2.0-GA
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRelationshipManagerImpl(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, org.exoplatform.social.core.storage.api.RelationshipStorage relationshipStorage) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListenerPlugin(org.exoplatform.social.core.relationship.RelationshipListenerPlugin plugin) Adds a RelationshipListenerPlugin.org.exoplatform.social.core.relationship.model.Relationshipconfirm(org.exoplatform.social.core.identity.model.Identity invitedIdentity, org.exoplatform.social.core.identity.model.Identity invitingIdentity) voidconfirm(org.exoplatform.social.core.relationship.model.Relationship relationship) voiddelete(org.exoplatform.social.core.relationship.model.Relationship existingRelationship) voiddeny(org.exoplatform.social.core.identity.model.Identity invitedIdentity, org.exoplatform.social.core.identity.model.Identity invitingIdentity) voiddeny(org.exoplatform.social.core.relationship.model.Relationship relationship) List<org.exoplatform.social.core.identity.model.Identity> findRelationships(org.exoplatform.social.core.identity.model.Identity ownerIdentity, org.exoplatform.social.core.relationship.model.Relationship.Type relationshipType) org.exoplatform.social.core.relationship.model.Relationshiporg.exoplatform.social.core.relationship.model.Relationshipget(org.exoplatform.social.core.identity.model.Identity identity1, org.exoplatform.social.core.identity.model.Identity identity2) List<org.exoplatform.social.core.relationship.model.Relationship> getAll(org.exoplatform.social.core.identity.model.Identity identity) List<org.exoplatform.social.core.relationship.model.Relationship> getAll(org.exoplatform.social.core.identity.model.Identity identity, List<org.exoplatform.social.core.identity.model.Identity> identities) List<org.exoplatform.social.core.relationship.model.Relationship> getAll(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type, List<org.exoplatform.social.core.identity.model.Identity> identities) List<org.exoplatform.social.core.relationship.model.Relationship> getAllRelationships(org.exoplatform.social.core.identity.model.Identity identity) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getAllWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity) List<org.exoplatform.social.core.relationship.model.Relationship> getConfirmed(org.exoplatform.social.core.identity.model.Identity identity) List<org.exoplatform.social.core.relationship.model.Relationship> getConfirmed(org.exoplatform.social.core.identity.model.Identity identity, List<org.exoplatform.social.core.identity.model.Identity> identities) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getConnections(org.exoplatform.social.core.identity.model.Identity identity) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getConnectionsByFilter(org.exoplatform.social.core.identity.model.Identity existingIdentity, org.exoplatform.social.core.profile.ProfileFilter profileFilter) intgetConnectionsInCommonCount(org.exoplatform.social.core.identity.model.Identity currentUserIdentity, org.exoplatform.social.core.identity.model.Identity identity) org.exoplatform.social.core.relationship.model.Relationship.TypegetConnectionStatus(org.exoplatform.social.core.identity.model.Identity fromIdentity, org.exoplatform.social.core.identity.model.Identity toIdentity) List<org.exoplatform.social.core.relationship.model.Relationship> getContacts(org.exoplatform.social.core.identity.model.Identity identity) List<org.exoplatform.social.core.relationship.model.Relationship> getContacts(org.exoplatform.social.core.identity.model.Identity currIdentity, List<org.exoplatform.social.core.identity.model.Identity> identities) List<org.exoplatform.social.core.identity.model.Identity> getIdentities(org.exoplatform.social.core.identity.model.Identity id) List<org.exoplatform.social.core.relationship.model.Relationship> getIncoming(org.exoplatform.social.core.identity.model.Identity receiver) List<org.exoplatform.social.core.relationship.model.Relationship> getIncoming(org.exoplatform.social.core.identity.model.Identity receiver, List<org.exoplatform.social.core.identity.model.Identity> identities) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getIncomingByFilter(org.exoplatform.social.core.identity.model.Identity existingIdentity, org.exoplatform.social.core.profile.ProfileFilter profileFilter) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getIncomingWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity) List<org.exoplatform.social.core.identity.model.Identity> getLastConnections(org.exoplatform.social.core.identity.model.Identity identity, int limit) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getOutgoing(org.exoplatform.social.core.identity.model.Identity existingIdentity) org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getOutgoingByFilter(org.exoplatform.social.core.identity.model.Identity existingIdentity, org.exoplatform.social.core.profile.ProfileFilter profileFilter) List<org.exoplatform.social.core.relationship.model.Relationship> getPending(org.exoplatform.social.core.identity.model.Identity sender) List<org.exoplatform.social.core.relationship.model.Relationship> getPending(org.exoplatform.social.core.identity.model.Identity sender, List<org.exoplatform.social.core.identity.model.Identity> identities) List<org.exoplatform.social.core.relationship.model.Relationship> getPendingRelationships(org.exoplatform.social.core.identity.model.Identity identity) List<org.exoplatform.social.core.relationship.model.Relationship> getPendingRelationships(org.exoplatform.social.core.identity.model.Identity identity, boolean toConfirm) List<org.exoplatform.social.core.relationship.model.Relationship> getPendingRelationships(org.exoplatform.social.core.identity.model.Identity currIdentity, List<org.exoplatform.social.core.identity.model.Identity> identities, boolean toConfirm) protected List<org.exoplatform.social.core.relationship.model.Relationship> getReceiver(org.exoplatform.social.core.identity.model.Identity receiver, org.exoplatform.social.core.relationship.model.Relationship.Type type, List<org.exoplatform.social.core.identity.model.Identity> identities) Get relationships by identity and status from cache or activityStorageorg.exoplatform.social.core.relationship.model.RelationshipgetRelationship(org.exoplatform.social.core.identity.model.Identity sender, org.exoplatform.social.core.identity.model.Identity receiver) org.exoplatform.social.core.relationship.model.Relationshipprotected List<org.exoplatform.social.core.relationship.model.Relationship> getRelationships(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type, List<org.exoplatform.social.core.identity.model.Identity> identities) Get relationships by identity and status from cache or activityStorageList<org.exoplatform.social.core.relationship.model.Relationship> List<org.exoplatform.social.core.relationship.model.Relationship> getRelationshipsByStatus(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type, int offset, int limit) intgetRelationshipsCountByStatus(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type) org.exoplatform.social.core.relationship.model.Relationship.TypegetRelationshipStatus(org.exoplatform.social.core.relationship.model.Relationship rel, org.exoplatform.social.core.identity.model.Identity id) protected List<org.exoplatform.social.core.relationship.model.Relationship> getSender(org.exoplatform.social.core.identity.model.Identity sender, org.exoplatform.social.core.relationship.model.Relationship.Type type, List<org.exoplatform.social.core.identity.model.Identity> identities) Get relationships by identity and status and identities from activityStorageorg.exoplatform.social.core.relationship.model.Relationship.TypegetStatus(org.exoplatform.social.core.identity.model.Identity identity1, org.exoplatform.social.core.identity.model.Identity identity2) getSuggestions(org.exoplatform.social.core.identity.model.Identity identity, int offset, int limit) getSuggestions(org.exoplatform.social.core.identity.model.Identity identity, int maxConnections, int maxConnectionsToLoad, int maxSuggestions) org.exoplatform.social.core.relationship.model.Relationshipignore(org.exoplatform.social.core.identity.model.Identity sender, org.exoplatform.social.core.identity.model.Identity receiver) voidignore(org.exoplatform.social.core.relationship.model.Relationship relationship) org.exoplatform.social.core.relationship.model.Relationshipinvite(org.exoplatform.social.core.identity.model.Identity sender, org.exoplatform.social.core.identity.model.Identity receiver) org.exoplatform.social.core.relationship.model.RelationshipinviteToConnect(org.exoplatform.social.core.identity.model.Identity invitingIdentity, org.exoplatform.social.core.identity.model.Identity invitedIdentity) voidregisterListener(org.exoplatform.social.core.relationship.RelationshipListener listener) Registers a RelationshipLister.voidremove(org.exoplatform.social.core.relationship.model.Relationship relationship) voidunregisterListener(org.exoplatform.social.core.relationship.RelationshipListener listener) Unregisters a RelationshipLister.
-
Field Details
-
OFFSET
protected static final int OFFSETThe default offset when get list identities with connection list access.- Since:
- 1.2.0-Beta3
- See Also:
-
LIMIT
protected static final int LIMITThe default limit when get list identities with connection list access.- Since:
- 1.2.0-Beta3
- See Also:
-
-
Constructor Details
-
RelationshipManagerImpl
public RelationshipManagerImpl(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.storage.api.IdentityStorage identityStorage, org.exoplatform.social.core.storage.api.RelationshipStorage relationshipStorage)
-
-
Method Details
-
inviteToConnect
public org.exoplatform.social.core.relationship.model.Relationship inviteToConnect(org.exoplatform.social.core.identity.model.Identity invitingIdentity, org.exoplatform.social.core.identity.model.Identity invitedIdentity) - Specified by:
inviteToConnectin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
confirm
public org.exoplatform.social.core.relationship.model.Relationship confirm(org.exoplatform.social.core.identity.model.Identity invitedIdentity, org.exoplatform.social.core.identity.model.Identity invitingIdentity) - Specified by:
confirmin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
deny
public void deny(org.exoplatform.social.core.identity.model.Identity invitedIdentity, org.exoplatform.social.core.identity.model.Identity invitingIdentity) - Specified by:
denyin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
ignore
public org.exoplatform.social.core.relationship.model.Relationship ignore(org.exoplatform.social.core.identity.model.Identity sender, org.exoplatform.social.core.identity.model.Identity receiver) - Specified by:
ignorein interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
delete
public void delete(org.exoplatform.social.core.relationship.model.Relationship existingRelationship) - Specified by:
deletein interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
findRelationships
public List<org.exoplatform.social.core.identity.model.Identity> findRelationships(org.exoplatform.social.core.identity.model.Identity ownerIdentity, org.exoplatform.social.core.relationship.model.Relationship.Type relationshipType) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
findRelationshipsin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
get
public org.exoplatform.social.core.relationship.model.Relationship get(org.exoplatform.social.core.identity.model.Identity identity1, org.exoplatform.social.core.identity.model.Identity identity2) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
get
- Specified by:
getin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getAll
public List<org.exoplatform.social.core.relationship.model.Relationship> getAll(org.exoplatform.social.core.identity.model.Identity identity) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getAllin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getAll
public List<org.exoplatform.social.core.relationship.model.Relationship> getAll(org.exoplatform.social.core.identity.model.Identity identity, List<org.exoplatform.social.core.identity.model.Identity> identities) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getAllin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getAll
public List<org.exoplatform.social.core.relationship.model.Relationship> getAll(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type, List<org.exoplatform.social.core.identity.model.Identity> identities) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getAllin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getAllRelationships
public List<org.exoplatform.social.core.relationship.model.Relationship> getAllRelationships(org.exoplatform.social.core.identity.model.Identity identity) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getAllRelationshipsin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getAllWithListAccess
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getAllWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity) - Specified by:
getAllWithListAccessin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getConfirmed
public List<org.exoplatform.social.core.relationship.model.Relationship> getConfirmed(org.exoplatform.social.core.identity.model.Identity identity) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getConfirmedin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getConfirmed
public List<org.exoplatform.social.core.relationship.model.Relationship> getConfirmed(org.exoplatform.social.core.identity.model.Identity identity, List<org.exoplatform.social.core.identity.model.Identity> identities) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getConfirmedin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getConnections
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getConnections(org.exoplatform.social.core.identity.model.Identity identity) - Specified by:
getConnectionsin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getConnectionsByFilter
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getConnectionsByFilter(org.exoplatform.social.core.identity.model.Identity existingIdentity, org.exoplatform.social.core.profile.ProfileFilter profileFilter) - Specified by:
getConnectionsByFilterin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getConnectionsInCommonCount
public int getConnectionsInCommonCount(org.exoplatform.social.core.identity.model.Identity currentUserIdentity, org.exoplatform.social.core.identity.model.Identity identity) - Specified by:
getConnectionsInCommonCountin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getConnectionStatus
public org.exoplatform.social.core.relationship.model.Relationship.Type getConnectionStatus(org.exoplatform.social.core.identity.model.Identity fromIdentity, org.exoplatform.social.core.identity.model.Identity toIdentity) throws Exception - Specified by:
getConnectionStatusin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
Exception
-
getContacts
public List<org.exoplatform.social.core.relationship.model.Relationship> getContacts(org.exoplatform.social.core.identity.model.Identity identity) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getContactsin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getContacts
public List<org.exoplatform.social.core.relationship.model.Relationship> getContacts(org.exoplatform.social.core.identity.model.Identity currIdentity, List<org.exoplatform.social.core.identity.model.Identity> identities) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getContactsin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getIdentities
public List<org.exoplatform.social.core.identity.model.Identity> getIdentities(org.exoplatform.social.core.identity.model.Identity id) throws Exception - Specified by:
getIdentitiesin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
Exception
-
getIncoming
public List<org.exoplatform.social.core.relationship.model.Relationship> getIncoming(org.exoplatform.social.core.identity.model.Identity receiver) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getIncomingin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getIncoming
public List<org.exoplatform.social.core.relationship.model.Relationship> getIncoming(org.exoplatform.social.core.identity.model.Identity receiver, List<org.exoplatform.social.core.identity.model.Identity> identities) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getIncomingin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getIncomingByFilter
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getIncomingByFilter(org.exoplatform.social.core.identity.model.Identity existingIdentity, org.exoplatform.social.core.profile.ProfileFilter profileFilter) - Specified by:
getIncomingByFilterin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getIncomingWithListAccess
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getIncomingWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity) - Specified by:
getIncomingWithListAccessin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getLastConnections
public List<org.exoplatform.social.core.identity.model.Identity> getLastConnections(org.exoplatform.social.core.identity.model.Identity identity, int limit) - Specified by:
getLastConnectionsin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getOutgoing
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getOutgoing(org.exoplatform.social.core.identity.model.Identity existingIdentity) - Specified by:
getOutgoingin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getOutgoingByFilter
public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getOutgoingByFilter(org.exoplatform.social.core.identity.model.Identity existingIdentity, org.exoplatform.social.core.profile.ProfileFilter profileFilter) - Specified by:
getOutgoingByFilterin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getPending
public List<org.exoplatform.social.core.relationship.model.Relationship> getPending(org.exoplatform.social.core.identity.model.Identity sender) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getPendingin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getPending
public List<org.exoplatform.social.core.relationship.model.Relationship> getPending(org.exoplatform.social.core.identity.model.Identity sender, List<org.exoplatform.social.core.identity.model.Identity> identities) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getPendingin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getPendingRelationships
public List<org.exoplatform.social.core.relationship.model.Relationship> getPendingRelationships(org.exoplatform.social.core.identity.model.Identity identity) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getPendingRelationshipsin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getPendingRelationships
public List<org.exoplatform.social.core.relationship.model.Relationship> getPendingRelationships(org.exoplatform.social.core.identity.model.Identity identity, boolean toConfirm) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getPendingRelationshipsin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getPendingRelationships
public List<org.exoplatform.social.core.relationship.model.Relationship> getPendingRelationships(org.exoplatform.social.core.identity.model.Identity currIdentity, List<org.exoplatform.social.core.identity.model.Identity> identities, boolean toConfirm) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getPendingRelationshipsin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getRelationship
public org.exoplatform.social.core.relationship.model.Relationship getRelationship(org.exoplatform.social.core.identity.model.Identity sender, org.exoplatform.social.core.identity.model.Identity receiver) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getRelationshipin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getRelationshipById
public org.exoplatform.social.core.relationship.model.Relationship getRelationshipById(String id) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getRelationshipByIdin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getRelationshipsByIdentityId
public List<org.exoplatform.social.core.relationship.model.Relationship> getRelationshipsByIdentityId(String id) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getRelationshipsByIdentityIdin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getRelationshipsByStatus
public List<org.exoplatform.social.core.relationship.model.Relationship> getRelationshipsByStatus(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type, int offset, int limit) - Specified by:
getRelationshipsByStatusin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getRelationshipsCountByStatus
public int getRelationshipsCountByStatus(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type) - Specified by:
getRelationshipsCountByStatusin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getRelationshipStatus
public org.exoplatform.social.core.relationship.model.Relationship.Type getRelationshipStatus(org.exoplatform.social.core.relationship.model.Relationship rel, org.exoplatform.social.core.identity.model.Identity id) - Specified by:
getRelationshipStatusin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getStatus
public org.exoplatform.social.core.relationship.model.Relationship.Type getStatus(org.exoplatform.social.core.identity.model.Identity identity1, org.exoplatform.social.core.identity.model.Identity identity2) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
getStatusin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
confirm
public void confirm(org.exoplatform.social.core.relationship.model.Relationship relationship) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
confirmin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
deny
public void deny(org.exoplatform.social.core.relationship.model.Relationship relationship) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
denyin interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getSuggestions
public Map<org.exoplatform.social.core.identity.model.Identity,Integer> getSuggestions(org.exoplatform.social.core.identity.model.Identity identity, int offset, int limit) - Specified by:
getSuggestionsin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
getSuggestions
public Map<org.exoplatform.social.core.identity.model.Identity,Integer> getSuggestions(org.exoplatform.social.core.identity.model.Identity identity, int maxConnections, int maxConnectionsToLoad, int maxSuggestions) - Specified by:
getSuggestionsin interfaceorg.exoplatform.social.core.manager.RelationshipManager
-
ignore
public void ignore(org.exoplatform.social.core.relationship.model.Relationship relationship) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
ignorein interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
invite
public org.exoplatform.social.core.relationship.model.Relationship invite(org.exoplatform.social.core.identity.model.Identity sender, org.exoplatform.social.core.identity.model.Identity receiver) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
invitein interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
remove
public void remove(org.exoplatform.social.core.relationship.model.Relationship relationship) throws org.exoplatform.social.core.storage.RelationshipStorageException - Specified by:
removein interfaceorg.exoplatform.social.core.manager.RelationshipManager- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
addListenerPlugin
public void addListenerPlugin(org.exoplatform.social.core.relationship.RelationshipListenerPlugin plugin) Adds a RelationshipListenerPlugin.- Parameters:
plugin-RelationshipListenerPlugin
-
registerListener
public void registerListener(org.exoplatform.social.core.relationship.RelationshipListener listener) Registers a RelationshipLister.- Parameters:
listener-RelationshipListener
-
unregisterListener
public void unregisterListener(org.exoplatform.social.core.relationship.RelationshipListener listener) Unregisters a RelationshipLister.- Parameters:
listener-RelationshipListener
-
getReceiver
protected List<org.exoplatform.social.core.relationship.model.Relationship> getReceiver(org.exoplatform.social.core.identity.model.Identity receiver, org.exoplatform.social.core.relationship.model.Relationship.Type type, List<org.exoplatform.social.core.identity.model.Identity> identities) throws org.exoplatform.social.core.storage.RelationshipStorageException Get relationships by identity and status from cache or activityStorage- Parameters:
receiver-identities-- Returns:
- list of relationship
- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getRelationships
protected List<org.exoplatform.social.core.relationship.model.Relationship> getRelationships(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.relationship.model.Relationship.Type type, List<org.exoplatform.social.core.identity.model.Identity> identities) throws org.exoplatform.social.core.storage.RelationshipStorageException Get relationships by identity and status from cache or activityStorage- Parameters:
identity-identities-- Returns:
- list of relationship
- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-
getSender
protected List<org.exoplatform.social.core.relationship.model.Relationship> getSender(org.exoplatform.social.core.identity.model.Identity sender, org.exoplatform.social.core.relationship.model.Relationship.Type type, List<org.exoplatform.social.core.identity.model.Identity> identities) throws org.exoplatform.social.core.storage.RelationshipStorageException Get relationships by identity and status and identities from activityStorage- Parameters:
sender-- Returns:
- list of relationship
- Throws:
org.exoplatform.social.core.storage.RelationshipStorageException
-