Package io.meeds.social.observe.service
Interface ObserverService
public interface ObserverService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(ObserverPlugin observerPlugin) Add a newObserverPluginfor a given Object Typedefault voidcreateObserver(long identityId, String objectType, String objectId) voidcreateObserver(long identityId, String objectType, String objectId, String parentObjectId) voiddeleteObserver(long identityId, String objectType, String objectId) getObservedObjects(long identityId, long offset, long limit) getObserverIdentityIds(String objectType, String objectId) booleanisObservable(long identityId, String objectType, String objectId) booleanisObserved(long identityId, String objectType, String objectId) voidremovePlugin(String objectType) Removes aObserverPluginidentified by its objectType
-
Field Details
-
OBSERVATION_SAVED_EVENT_NAME
- See Also:
-
OBSERVATION_DELETED_EVENT_NAME
- See Also:
-
-
Method Details
-
addPlugin
Add a newObserverPluginfor a given Object Type- Parameters:
observerPlugin-ObserverPlugin
-
removePlugin
Removes aObserverPluginidentified 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:
IllegalAccessExceptionorg.exoplatform.commons.ObjectAlreadyExistsExceptionorg.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:
IllegalAccessExceptionorg.exoplatform.commons.ObjectAlreadyExistsExceptionorg.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
-
isObservable
-
getObservedObjects
-
getObserverIdentityIds
-