Class RelationshipPublisher
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.common.lifecycle.AbstractListenerPlugin
org.exoplatform.social.core.relationship.RelationshipListenerPlugin
org.exoplatform.social.core.application.RelationshipPublisher
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,org.exoplatform.social.common.lifecycle.LifeCycleListener<org.exoplatform.social.core.relationship.RelationshipEvent>,org.exoplatform.social.core.relationship.RelationshipListener
public class RelationshipPublisher
extends org.exoplatform.social.core.relationship.RelationshipListenerPlugin
Publish a status update in activity streams of 2 confirmed relations.
- Version:
- $Revision$
- Author:
- Patrice Lamarque
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionRelationshipPublisher(org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.core.manager.IdentityManager identityManager) -
Method Summary
Methods inherited from class org.exoplatform.social.core.relationship.RelationshipListenerPlugin
ignoredMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.social.common.lifecycle.LifeCycleListener
getDescription, getName, setDescription, setNameMethods inherited from interface org.exoplatform.social.core.relationship.RelationshipListener
denied, requested
-
Field Details
-
USER_RELATION_CONFIRMED
- See Also:
-
SENDER_PARAM
- See Also:
-
RECEIVER_PARAM
- See Also:
-
RELATIONSHIP_UUID_PARAM
- See Also:
-
RELATIONSHIP_ACTIVITY_TYPE
- See Also:
-
NUMBER_OF_CONNECTIONS
- See Also:
-
USER_ACTIVITIES_FOR_RELATIONSHIP
- See Also:
-
USER_COMMENTS_ACTIVITY_FOR_RELATIONSHIP
- See Also:
-
USER_DISPLAY_NAME_PARAM
- See Also:
-
-
Constructor Details
-
RelationshipPublisher
public RelationshipPublisher(org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.core.manager.IdentityManager identityManager)
-
-
Method Details
-
confirmed
public void confirmed(org.exoplatform.social.core.relationship.RelationshipEvent event) Publish an activity on both user's stream to indicate their new connection- Specified by:
confirmedin interfaceorg.exoplatform.social.core.relationship.RelationshipListener- Overrides:
confirmedin classorg.exoplatform.social.core.relationship.RelationshipListenerPlugin
-
removed
public void removed(org.exoplatform.social.core.relationship.RelationshipEvent event) - Specified by:
removedin interfaceorg.exoplatform.social.core.relationship.RelationshipListener- Overrides:
removedin classorg.exoplatform.social.core.relationship.RelationshipListenerPlugin
-