Interface ObserverService


public interface ObserverService
  • Field Details

  • Method Details

    • addPlugin

      void addPlugin(ObserverPlugin observerPlugin)
      Add a new ObserverPlugin for a given Object Type
      Parameters:
      observerPlugin - ObserverPlugin
    • removePlugin

      void removePlugin(String objectType)
      Removes a ObserverPlugin identified by its objectType
      Parameters:
      objectType - Object type
    • createObserver

      default void createObserver(long identityId, String objectType, String objectId) throws IllegalAccessException, org.exoplatform.commons.ObjectAlreadyExistsException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.ObjectAlreadyExistsException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • createObserver

      void createObserver(long identityId, String objectType, String objectId, String parentObjectId) throws IllegalAccessException, org.exoplatform.commons.ObjectAlreadyExistsException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.ObjectAlreadyExistsException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • deleteObserver

      void deleteObserver(long identityId, String objectType, String objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • isObserved

      boolean isObserved(long identityId, String objectType, String objectId)
    • isObservable

      boolean isObservable(long identityId, String objectType, String objectId)
    • getObservedObjects

      List<ObserverObject> getObservedObjects(long identityId, long offset, long limit)
    • getObserverIdentityIds

      List<Long> getObserverIdentityIds(String objectType, String objectId)