Class AbstractMetadataItemListener<S,D>

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<S,D>
org.exoplatform.social.core.listeners.AbstractMetadataItemListener<S,D>
Type Parameters:
S - Listener source object
D - Listener data object
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.listener.ListenerBase<S,D>
Direct Known Subclasses:
MetadataItemAdded, MetadataItemDeleted, MetadataItemModified, MetadataItemShared

public abstract class AbstractMetadataItemListener<S,D> extends org.exoplatform.services.listener.Listener<S,D>
Metadata Item listeners that will be triggered once a metadata is added/delete/updated/shared
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractMetadataItemListener(org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.social.core.storage.api.ActivityStorage activityStorage, org.exoplatform.social.core.storage.api.SpaceStorage spaceStorage, org.exoplatform.commons.search.index.IndexingService indexingService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    handleMetadataDeletion(org.exoplatform.social.metadata.model.MetadataItem metadataItem)
     
    protected void
    handleMetadataModification(String objectType, String objectId)
     
    protected void
    handleMetadataModification(org.exoplatform.social.metadata.model.MetadataItem metadataItem)
     
    protected boolean
    isActivityEvent(String objectType)
     
    protected boolean
    isSpaceEvent(String objectType)
     

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.exoplatform.services.listener.ListenerBase

    getName, onEvent
  • Constructor Details

    • AbstractMetadataItemListener

      protected AbstractMetadataItemListener(org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.social.core.storage.api.ActivityStorage activityStorage, org.exoplatform.social.core.storage.api.SpaceStorage spaceStorage, org.exoplatform.commons.search.index.IndexingService indexingService)
  • Method Details

    • handleMetadataModification

      protected void handleMetadataModification(org.exoplatform.social.metadata.model.MetadataItem metadataItem)
    • handleMetadataDeletion

      protected void handleMetadataDeletion(org.exoplatform.social.metadata.model.MetadataItem metadataItem)
    • handleMetadataModification

      protected void handleMetadataModification(String objectType, String objectId)
    • isActivityEvent

      protected boolean isActivityEvent(String objectType)
    • isSpaceEvent

      protected boolean isSpaceEvent(String objectType)