Package io.meeds.social.observe.service
Class ObserverServiceImpl
java.lang.Object
io.meeds.social.observe.service.ObserverServiceImpl
- All Implemented Interfaces:
io.meeds.social.observe.service.ObserverService
public class ObserverServiceImpl
extends Object
implements io.meeds.social.observe.service.ObserverService
-
Field Summary
Fields inherited from interface io.meeds.social.observe.service.ObserverService
OBSERVATION_DELETED_EVENT_NAME, OBSERVATION_SAVED_EVENT_NAME -
Constructor Summary
ConstructorsConstructorDescriptionObserverServiceImpl(ObserverStorage observerStorage, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlugin(io.meeds.social.observe.plugin.ObserverPlugin observerPlugin) voidcreateObserver(long identityId, String objectType, String objectId, String parentObjectId) voiddeleteObserver(long identityId, String objectType, String objectId) List<io.meeds.social.observe.model.ObserverObject> 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.social.observe.service.ObserverService
createObserver
-
Constructor Details
-
ObserverServiceImpl
public ObserverServiceImpl(ObserverStorage observerStorage, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
addPlugin
public void addPlugin(io.meeds.social.observe.plugin.ObserverPlugin observerPlugin) - Specified by:
addPluginin interfaceio.meeds.social.observe.service.ObserverService
-
removePlugin
- Specified by:
removePluginin interfaceio.meeds.social.observe.service.ObserverService
-
getObservedObjects
public List<io.meeds.social.observe.model.ObserverObject> getObservedObjects(long identityId, long offset, long limit) - Specified by:
getObservedObjectsin interfaceio.meeds.social.observe.service.ObserverService
-
getObserverIdentityIds
- Specified by:
getObserverIdentityIdsin interfaceio.meeds.social.observe.service.ObserverService
-
createObserver
public void createObserver(long identityId, String objectType, String objectId, String parentObjectId) throws IllegalAccessException, org.exoplatform.commons.ObjectAlreadyExistsException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
createObserverin interfaceio.meeds.social.observe.service.ObserverService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.ObjectAlreadyExistsExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
deleteObserver
public void deleteObserver(long identityId, String objectType, String objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
deleteObserverin interfaceio.meeds.social.observe.service.ObserverService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
isObserved
- Specified by:
isObservedin interfaceio.meeds.social.observe.service.ObserverService
-
isObservable
- Specified by:
isObservablein interfaceio.meeds.social.observe.service.ObserverService
-