Class ActivityManagerImpl

java.lang.Object
org.exoplatform.social.core.manager.ActivityManagerImpl
All Implemented Interfaces:
org.exoplatform.social.core.manager.ActivityManager

public class ActivityManagerImpl extends Object implements org.exoplatform.social.core.manager.ActivityManager
Class ActivityManagerImpl implements ActivityManager without caching.
Since:
Nov 24, 2010, 1.2.0-GA
Author:
vien_levan, hoatle (hoatlevan at gmail dot com)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.exoplatform.social.core.activity.ActivityLifeCycle
     
    protected org.exoplatform.social.core.storage.api.ActivityStorage
    The activityStorage.
    static final String
    exo property for editing activity permission
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     
    protected org.exoplatform.social.core.manager.IdentityManager
    identityManager to get identity for saving and getting activities
    static final String
     
    static final String
     
    protected org.exoplatform.social.core.manager.RelationshipManager
     
    static final String
     
    static final String
     
    protected org.exoplatform.social.core.space.spi.SpaceService
    spaceService
    static final String
     

    Fields inherited from interface org.exoplatform.social.core.manager.ActivityManager

    SHARED_ACTIVITY_ID_PARAM
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActivityManagerImpl(org.exoplatform.social.core.storage.api.ActivityStorage activityStorage, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.portal.config.UserACL userACL, org.exoplatform.container.xml.InitParams params)
     
    ActivityManagerImpl(org.exoplatform.social.core.storage.api.ActivityStorage activityStorage, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.RelationshipManager relationshipManager, org.exoplatform.portal.config.UserACL userACL, org.exoplatform.container.xml.InitParams params)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addActivityEventListener(org.exoplatform.social.core.activity.ActivityListenerPlugin activityListenerPlugin)
     
    void
    addActivityListener(org.exoplatform.social.core.activity.ActivityListener listener)
     
    void
    addActivityTypePlugin(org.exoplatform.social.core.ActivityTypePlugin plugin)
     
    void
    addProcessor(org.exoplatform.social.core.ActivityProcessor processor)
    void
    addProcessorPlugin(org.exoplatform.social.core.BaseActivityProcessorPlugin plugin)
    void
    addSystemActivityDefinition(org.exoplatform.social.core.activity.ActivitySystemTypePlugin activitySystemTypePlugin)
    boolean
    canPinActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity identity)
    boolean
    canPostActivityInStream(org.exoplatform.services.security.Identity viewer, org.exoplatform.social.core.identity.model.Identity streamOwner)
     
    void
    deleteActivity(String activityId)
    void
    deleteActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
    void
    deleteComment(String activityId, String commentId)
    void
    deleteComment(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, org.exoplatform.social.core.activity.model.ExoSocialActivity existingComment)
    void
    deleteLike(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity identity)
    List<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivities(List<String> activityIdList)
     
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivitiesByFilterWithListAccess(org.exoplatform.social.core.identity.model.Identity viewerIdentity, org.exoplatform.social.core.activity.ActivityFilter activityFilter)
     
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity)
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity, String... activityTypes)
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivitiesOfConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity)
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivitiesOfSpaceWithListAccess(org.exoplatform.social.core.identity.model.Identity existingSpaceIdentity)
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivitiesOfUserSpacesWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity)
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity)
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity ownerIdentity, org.exoplatform.social.core.identity.model.Identity viewerIdentity)
    org.exoplatform.social.core.activity.model.ExoSocialActivity
    getActivity(String activityId)
    getActivityCategoryIds(long spaceId)
     
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getActivityFeedWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity)
    org.exoplatform.social.core.identity.model.Identity
     
    getActivityTitle(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
     
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
     
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getCommentsWithListAccess(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getCommentsWithListAccess(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, boolean loadSubComments)
    org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getCommentsWithListAccess(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, boolean loadSubComments, boolean sortDescending)
    int
     
    org.exoplatform.social.core.activity.model.ExoSocialActivity
    getParentActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
    List<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getSubComments(org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
    org.exoplatform.social.core.activity.model.ExoSocialActivity
    hideActivity(String activityId)
     
    void
     
    boolean
    isActivityDeletable(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.services.security.Identity viewer)
     
    boolean
    isActivityEditable(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.services.security.Identity viewer)
     
    boolean
     
    boolean
    isActivityManageable(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.services.security.Identity identity)
     
    boolean
     
    boolean
    isActivityViewable(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.services.security.Identity viewer)
     
    boolean
    isAutomaticActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
     
    boolean
     
    boolean
    isNotificationEnabled(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
     
    boolean
    isNotificationEnabled(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, String username)
     
    org.exoplatform.social.core.activity.model.ExoSocialActivity
    pinActivity(String activityId, String userIdentityId)
    void
    removeActivityListener(org.exoplatform.social.core.activity.ActivityListener listener)
     
    void
    saveActivityNoReturn(org.exoplatform.social.core.activity.model.ExoSocialActivity newActivity)
    void
    saveActivityNoReturn(org.exoplatform.social.core.identity.model.Identity streamOwner, org.exoplatform.social.core.activity.model.ExoSocialActivity newActivity)
    void
    saveComment(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
    void
    saveLike(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, org.exoplatform.social.core.identity.model.Identity identity)
    List<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    shareActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activityTemplate, String activityId, List<String> targetSpaces, org.exoplatform.services.security.Identity viewer)
     
    List<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    shareActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activityTemplate, org.exoplatform.social.core.activity.model.ActivityShareAction activityShareAction, org.exoplatform.services.security.Identity viewer)
     
    org.exoplatform.social.core.activity.model.ExoSocialActivity
    unpinActivity(String activityId)
    void
    updateActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
    void
    updateActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, boolean broadcast)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.exoplatform.social.core.manager.ActivityManager

    getActivityTitle
  • Field Details

    • activityStorage

      protected org.exoplatform.social.core.storage.api.ActivityStorage activityStorage
      The activityStorage.
    • identityManager

      protected org.exoplatform.social.core.manager.IdentityManager identityManager
      identityManager to get identity for saving and getting activities
    • relationshipManager

      protected org.exoplatform.social.core.manager.RelationshipManager relationshipManager
    • spaceService

      protected org.exoplatform.social.core.space.spi.SpaceService spaceService
      spaceService
    • activityLifeCycle

      protected org.exoplatform.social.core.activity.ActivityLifeCycle activityLifeCycle
    • ENABLE_EDIT_ACTIVITY

      public static final String ENABLE_EDIT_ACTIVITY
      exo property for editing activity permission
      See Also:
    • ENABLE_EDIT_COMMENT

      public static final String ENABLE_EDIT_COMMENT
      See Also:
    • ENABLE_USER_COMPOSER

      public static final String ENABLE_USER_COMPOSER
      See Also:
    • ENABLE_MANAGER_EDIT_ACTIVITY

      public static final String ENABLE_MANAGER_EDIT_ACTIVITY
      See Also:
    • ENABLE_MANAGER_EDIT_COMMENT

      public static final String ENABLE_MANAGER_EDIT_COMMENT
      See Also:
    • MANDATORY_ACTIVITY_ID

      public static final String MANDATORY_ACTIVITY_ID
      See Also:
    • MANDATORY_USER_IDENTITY_ID

      public static final String MANDATORY_USER_IDENTITY_ID
      See Also:
    • SEPARATOR_REGEX

      public static final String SEPARATOR_REGEX
      See Also:
    • ID

      public static final String ID
      See Also:
    • STORAGE

      public static final String STORAGE
      See Also:
    • FILE

      public static final String FILE
      See Also:
    • REMOVABLE

      public static final String REMOVABLE
      See Also:
  • Constructor Details

    • ActivityManagerImpl

      public ActivityManagerImpl(org.exoplatform.social.core.storage.api.ActivityStorage activityStorage, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.RelationshipManager relationshipManager, org.exoplatform.portal.config.UserACL userACL, org.exoplatform.container.xml.InitParams params)
    • ActivityManagerImpl

      public ActivityManagerImpl(org.exoplatform.social.core.storage.api.ActivityStorage activityStorage, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.portal.config.UserACL userACL, org.exoplatform.container.xml.InitParams params)
  • Method Details

    • saveActivityNoReturn

      public void saveActivityNoReturn(org.exoplatform.social.core.identity.model.Identity streamOwner, org.exoplatform.social.core.activity.model.ExoSocialActivity newActivity)
      Specified by:
      saveActivityNoReturn in interface org.exoplatform.social.core.manager.ActivityManager
    • saveActivityNoReturn

      public void saveActivityNoReturn(org.exoplatform.social.core.activity.model.ExoSocialActivity newActivity)
      Specified by:
      saveActivityNoReturn in interface org.exoplatform.social.core.manager.ActivityManager
    • shareActivity

      public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> shareActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activityTemplate, String activityId, List<String> targetSpaces, org.exoplatform.services.security.Identity viewer) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Specified by:
      shareActivity in interface org.exoplatform.social.core.manager.ActivityManager
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • shareActivity

      public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> shareActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activityTemplate, org.exoplatform.social.core.activity.model.ActivityShareAction activityShareAction, org.exoplatform.services.security.Identity viewer) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Specified by:
      shareActivity in interface org.exoplatform.social.core.manager.ActivityManager
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getActivity

      public org.exoplatform.social.core.activity.model.ExoSocialActivity getActivity(String activityId)
      Specified by:
      getActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivityTitle

      public String getActivityTitle(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
      Specified by:
      getActivityTitle in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivityCategoryIds

      public List<Long> getActivityCategoryIds(long spaceId)
      Specified by:
      getActivityCategoryIds in interface org.exoplatform.social.core.manager.ActivityManager
    • getParentActivity

      public org.exoplatform.social.core.activity.model.ExoSocialActivity getParentActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
      Specified by:
      getParentActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivityStreamOwnerIdentity

      public org.exoplatform.social.core.identity.model.Identity getActivityStreamOwnerIdentity(String activityId)
      Specified by:
      getActivityStreamOwnerIdentity in interface org.exoplatform.social.core.manager.ActivityManager
    • getSubComments

      public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getSubComments(org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
      Specified by:
      getSubComments in interface org.exoplatform.social.core.manager.ActivityManager
    • updateActivity

      public void updateActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
      Specified by:
      updateActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • updateActivity

      public void updateActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, boolean broadcast)
      Specified by:
      updateActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • deleteActivity

      public void deleteActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
      Specified by:
      deleteActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • deleteActivity

      public void deleteActivity(String activityId)
      Specified by:
      deleteActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • hideActivity

      public org.exoplatform.social.core.activity.model.ExoSocialActivity hideActivity(String activityId)
      Specified by:
      hideActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • saveComment

      public void saveComment(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
      Specified by:
      saveComment in interface org.exoplatform.social.core.manager.ActivityManager
    • getCommentsWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getCommentsWithListAccess(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, boolean loadSubComments, boolean sortDescending)
      Specified by:
      getCommentsWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • getCommentsWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getCommentsWithListAccess(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, boolean loadSubComments)
      Specified by:
      getCommentsWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • getCommentsWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getCommentsWithListAccess(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity)
      Specified by:
      getCommentsWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • deleteComment

      public void deleteComment(String activityId, String commentId)
      Specified by:
      deleteComment in interface org.exoplatform.social.core.manager.ActivityManager
    • deleteComment

      public void deleteComment(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, org.exoplatform.social.core.activity.model.ExoSocialActivity existingComment)
      Specified by:
      deleteComment in interface org.exoplatform.social.core.manager.ActivityManager
    • saveLike

      public void saveLike(org.exoplatform.social.core.activity.model.ExoSocialActivity existingActivity, org.exoplatform.social.core.identity.model.Identity identity)
      Specified by:
      saveLike in interface org.exoplatform.social.core.manager.ActivityManager
    • deleteLike

      public void deleteLike(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity identity)
      Specified by:
      deleteLike in interface org.exoplatform.social.core.manager.ActivityManager
    • pinActivity

      public org.exoplatform.social.core.activity.model.ExoSocialActivity pinActivity(String activityId, String userIdentityId)
      Specified by:
      pinActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • unpinActivity

      public org.exoplatform.social.core.activity.model.ExoSocialActivity unpinActivity(String activityId)
      Specified by:
      unpinActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • canPinActivity

      public boolean canPinActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.social.core.identity.model.Identity identity)
      Specified by:
      canPinActivity in interface org.exoplatform.social.core.manager.ActivityManager
    • addActivityEventListener

      public void addActivityEventListener(org.exoplatform.social.core.activity.ActivityListenerPlugin activityListenerPlugin)
      Specified by:
      addActivityEventListener in interface org.exoplatform.social.core.manager.ActivityManager
    • addActivityListener

      public void addActivityListener(org.exoplatform.social.core.activity.ActivityListener listener)
      Specified by:
      addActivityListener in interface org.exoplatform.social.core.manager.ActivityManager
    • removeActivityListener

      public void removeActivityListener(org.exoplatform.social.core.activity.ActivityListener listener)
      Specified by:
      removeActivityListener in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivitiesWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity)
      Specified by:
      getActivitiesWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivitiesWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesWithListAccess(org.exoplatform.social.core.identity.model.Identity ownerIdentity, org.exoplatform.social.core.identity.model.Identity viewerIdentity)
      Specified by:
      getActivitiesWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivitiesByFilterWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesByFilterWithListAccess(org.exoplatform.social.core.identity.model.Identity viewerIdentity, org.exoplatform.social.core.activity.ActivityFilter activityFilter) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Specified by:
      getActivitiesByFilterWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • getActivitiesOfConnectionsWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesOfConnectionsWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity)
      Specified by:
      getActivitiesOfConnectionsWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivitiesOfUserSpacesWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesOfUserSpacesWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity)
      Specified by:
      getActivitiesOfUserSpacesWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivitiesOfSpaceWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesOfSpaceWithListAccess(org.exoplatform.social.core.identity.model.Identity existingSpaceIdentity)
      Specified by:
      getActivitiesOfSpaceWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivityFeedWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivityFeedWithListAccess(org.exoplatform.social.core.identity.model.Identity existingIdentity)
      Specified by:
      getActivityFeedWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivitiesByPoster

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity)
      Specified by:
      getActivitiesByPoster in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivitiesByPoster

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivitiesByPoster(org.exoplatform.social.core.identity.model.Identity posterIdentity, String... activityTypes)
      Specified by:
      getActivitiesByPoster in interface org.exoplatform.social.core.manager.ActivityManager
    • addProcessor

      public void addProcessor(org.exoplatform.social.core.ActivityProcessor processor)
      Specified by:
      addProcessor in interface org.exoplatform.social.core.manager.ActivityManager
    • addProcessorPlugin

      public void addProcessorPlugin(org.exoplatform.social.core.BaseActivityProcessorPlugin plugin)
      Specified by:
      addProcessorPlugin in interface org.exoplatform.social.core.manager.ActivityManager
    • addActivityTypePlugin

      public void addActivityTypePlugin(org.exoplatform.social.core.ActivityTypePlugin plugin)
      Specified by:
      addActivityTypePlugin in interface org.exoplatform.social.core.manager.ActivityManager
    • addSystemActivityDefinition

      public void addSystemActivityDefinition(org.exoplatform.social.core.activity.ActivitySystemTypePlugin activitySystemTypePlugin)
      Specified by:
      addSystemActivityDefinition in interface org.exoplatform.social.core.manager.ActivityManager
    • isEnableUserComposer

      public boolean isEnableUserComposer()
      Specified by:
      isEnableUserComposer in interface org.exoplatform.social.core.manager.ActivityManager
    • initActivityTypes

      public void initActivityTypes()
    • getAllActivitiesWithListAccess

      public org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getAllActivitiesWithListAccess()
      Specified by:
      getAllActivitiesWithListAccess in interface org.exoplatform.social.core.manager.ActivityManager
    • getMaxUploadSize

      public int getMaxUploadSize()
      Specified by:
      getMaxUploadSize in interface org.exoplatform.social.core.manager.ActivityManager
    • getActivities

      public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivities(List<String> activityIdList)
      Specified by:
      getActivities in interface org.exoplatform.social.core.manager.ActivityManager
    • isActivityExists

      public boolean isActivityExists(String activityId)
      Specified by:
      isActivityExists in interface org.exoplatform.social.core.manager.ActivityManager
    • isActivityViewable

      public boolean isActivityViewable(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.services.security.Identity viewer)
      Specified by:
      isActivityViewable in interface org.exoplatform.social.core.manager.ActivityManager
    • isActivityEditable

      public boolean isActivityEditable(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.services.security.Identity viewer)
      Specified by:
      isActivityEditable in interface org.exoplatform.social.core.manager.ActivityManager
    • isActivityDeletable

      public boolean isActivityDeletable(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.services.security.Identity viewer)
      Specified by:
      isActivityDeletable in interface org.exoplatform.social.core.manager.ActivityManager
    • isActivityManageable

      public boolean isActivityManageable(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.services.security.Identity identity)
      Specified by:
      isActivityManageable in interface org.exoplatform.social.core.manager.ActivityManager
    • isActivityTypeEnabled

      public boolean isActivityTypeEnabled(String activityType)
      Specified by:
      isActivityTypeEnabled in interface org.exoplatform.social.core.manager.ActivityManager
    • isNotificationEnabled

      public boolean isNotificationEnabled(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
      Specified by:
      isNotificationEnabled in interface org.exoplatform.social.core.manager.ActivityManager
    • isNotificationEnabled

      public boolean isNotificationEnabled(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, String username)
      Specified by:
      isNotificationEnabled in interface org.exoplatform.social.core.manager.ActivityManager
    • canPostActivityInStream

      public boolean canPostActivityInStream(org.exoplatform.services.security.Identity viewer, org.exoplatform.social.core.identity.model.Identity streamOwner)
      Specified by:
      canPostActivityInStream in interface org.exoplatform.social.core.manager.ActivityManager
    • isAutomaticActivity

      public boolean isAutomaticActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)