Package org.ametys.core.observation
Interface Observer
- All Known Subinterfaces:
AsyncObserver
- All Known Implementing Classes:
AbstractCacheObserver
,AbstractCommentObserver
,AbstractContentObserver
,AbstractContentObserver
,AbstractConvertMinisiteEventObserver
,AbstractInitializeProjectObserver
,AbstractInvalidateZoneItemCacheOnWallObserver
,AbstractJobOfferObserver
,AbstractLiveSolrObserver
,AbstractMemberMailNotifierObserver
,AbstractMemberObserver
,AbstractODFObserver
,AbstractPageSubscriptionObserver
,AbstractRemoveMemberMailNotifierObserver
,AbstractSendNotificationObserver
,AbstractSiteCacheObserver
,AbstractSolrContentAsyncObserver
,AbstractSolrContentAsyncObserver
,AbstractSolrContentObserver
,AbstractSolrContentObserver
,AbstractSolrIndexResourceObserver
,AbstractSolrObserver
,AbstractSolrODFObserver
,AbstractSolrOnSiteConfModifiedObserver
,AbstractSolrOrgUnitObserver
,AbstractSynchronizeObserver
,AbstractSynchronizePageObserver
,AbstractTagObserver
,AbstractUGCContentObserver
,AbstractWorkspacesEventsObserver
,AbstractZoneItemCacheObserver
,AbstractZoneItemCacheOnContentObserver
,AbstractZoneItemCacheOnZoneItemObserver
,AddEventOnCalendarEventUpdatedObserver
,AddEventOnMemberAddedObserver
,AddEventOnMinisiteModificationObserver
,AddEventOnNewsPublishedObserver
,AddEventOnResourceUpdatedObserver
,AddEventOnTaskUpdatedObserver
,AddEventOnThreadUpdatedObserver
,AddEventOnWallContentAddedObserver
,AddMemberMailNotifierObserver
,ClearLevelCacheObserver
,ClearODFPageCacheObserver
,CMISTreeFactory
,ContentAttachmentsSolrObserver
,ContentCommentsObserver
,ContentDeletedObserver
,ContentOrphanStatusPart1Observer
,ContentOrphanStatusPart2Observer
,ContentPrivacyObserver
,ContentValidatedObserver
,ConvertContentValidatedEvent2MinisitePageEventObserver
,ConvertPageEvent2MinisitePageEventObserver
,CourseDeletedObserver
,FileThumbnailObserver
,IndexArchivedContentObserver
,IndexContentObserver
,IndexMemberObserver
,IndexSynchronizedContentObserver
,InitializeProjectSitemapObserver
,InvalidateCacheOnContentCommentedObserver
,InvalidateCacheOnContentDeletionObserver
,InvalidateCacheOnContentPageModificationObserver
,InvalidateCacheOnContentPageModificationObserver
,InvalidateCacheOnContentReactionObserver
,InvalidateCacheOnContentUnpublishObserver
,InvalidateCacheOnContentValidationObserver
,InvalidateCacheOnContentValidationObserver
,InvalidateCacheOnContentValidationOrTaggingObserver
,InvalidateCacheOnContentValidationOrUnpublishingObserver
,InvalidateCacheOnMemberUpdatedObserver
,InvalidateCacheOnOrgunitChangedObserver
,InvalidateCacheOnPageDeletionObserver
,InvalidateCacheOnPageMinorChangeObserver
,InvalidateCacheOnPageModificationObserver
,InvalidateCacheOnPageMoveObserver
,InvalidateCacheOnQueryChangesObserver
,InvalidateCacheOnResourceUpdateObserver
,InvalidateCacheOnRobotsChangeObserver
,InvalidateCacheOnSitemapACLUpdateObserver
,InvalidateCacheOnSurveyReInitializedObserver
,InvalidateCacheOnZoneItemAdditionObserver
,InvalidateCacheOnZoneItemDeletionObserver
,InvalidateFlipbookCacheOnResourceUpdateObserver
,InvalidateODFRootPageCacheOnPageDeleteObserver
,InvalidatePageCacheExplorerObserver
,InvalidatePageElementCacheObserver
,InvalidatePageElementCacheOnPageACLUpdateListener
,InvalidatePageElementCacheOnSiteChangeObserver
,InvalidateSiteCacheObserver
,InvalidateSitemapSaxerCacheObserver
,InvalidateZoneItemCacheOnContentCommentedObserver
,InvalidateZoneItemCacheOnContentModificationObserver
,InvalidateZoneItemCacheOnContentModificationObserver
,InvalidateZoneItemCacheOnContentModificationObserver
,InvalidateZoneItemCacheOnContentReactionObserver
,InvalidateZoneItemCacheOnContentTaggedObserver
,InvalidateZoneItemCacheOnContentValidationObserver
,InvalidateZoneItemCacheOnContentValidationObserver
,InvalidateZoneItemCacheOnContentValidationObserver
,InvalidateZoneItemCacheOnMemberModificationObserver
,InvalidateZoneItemCacheOnMemberUpdatedObserver
,InvalidateZoneItemCacheOnRootUpdatedObserver
,InvalidateZoneItemCacheOnServiceModificationObserver
,InvalidateZoneItemCacheOnViewParametersModifiedObserver
,InvalidateZoneItemCacheOnWallContentCommentedObserver
,InvalidateZoneItemCacheOnWallContentObserver
,InvalidateZoneItemCacheOnZoneItemModifiedObserver
,InvalidateZoneItemCacheOnZoneItemMoveObserver
,InvalidTagCloudCacheOnContentModification
,InvalidTagCloudCacheOnServiceModification
,InvalidTagCloudCacheOnSiteModification
,JcrDataMigrationEndedObserver
,MemberAddedObserver
,MemberRemovedObserver
,MemberValidatedObserver
,MigrationAdministratorNotificator
,ModifiedJobOfferObserver
,ModifyingJobOfferObserver
,ODFCartUserPreferencesObserver
,PageAttachmentsSolrObserver
,PageDAO
,PageSubscriptionDeletePageObserver
,PageSubscriptionExplorerObserver
,PageSubscriptionValidateContentObserver
,ProfileAssignmentStorageObserver
,ProjectAddedObserver
,ProjectDeletedObserver
,ProjectDeletedObserver
,ProjectEventObserver
,ProjectManager
,QueryDeletedObserver
,ReloadSolrCacheForAclUpdatedObserver
,RemoteProgramDeletedObserver
,RemoveMemberMailManagersNotifierObserver
,RemoveMemberMailNotifierObserver
,RemoveSearchServiceInstanceObserver
,ResourceDeletedObserver
,ResourcesMailNotifierObserver
,SendMailToContributorCommentListener
,SendMailToVisitorCommentListener
,SetReadAccessOnSiteAddedObserver
,SetReadAccessOnSitemapAddedObserver
,ShareableFieldCourseObserver
,SharedContentValidationObserver
,SolrContentDeletedObserver
,SolrContentDeletedObserver
,SolrContentModifiedObserver
,SolrContentModifiedObserver
,SolrContentRootPageDeletedObserver
,SolrContentRootPageDeletedObserver
,SolrContentRootPageUpdatedObserver
,SolrContentRootPageUpdatedObserver
,SolrContentUnpublishedObserver
,SolrContentUnpublishedObserver
,SolrContentUnpublishedPart1Observer
,SolrContentUnpublishedPart2Observer
,SolrContentValidatedObserver
,SolrContentValidatedObserver
,SolrContentValidatedObserver
,SolrContentValidatedPart1Observer
,SolrContentValidatedPart2Observer
,SolrIndexProjectResourceObserver
,SolrIndexResourceObserver
,SolrIndexWebResourceObserver
,SolrLiveContentValidatedOrTaggedObserver
,SolrOdfContentModifiedObserver
,SolrOnSiteConfModifiedPart1Observer
,SolrOnSiteConfModifiedPart2Observer
,SolrOrgUnitChangedPart1Observer
,SolrOrgUnitChangedPart2Observer
,SolrPageChangePart1Observer
,SolrPageChangePart2Observer
,SolrPageContentModifiedObserver
,SolrPageDataUpdateObserver
,SolrPageDeletionObserver
,SolrPageMovePart1Observer
,SolrPageMovePart2Observer
,SolrPageRenameObserver
,SolrProjectDeletedObserver
,SolrSiteAddedObserver
,SolrSiteDeletionObserver
,SolrSitemapDeletionObserver
,SolrUnindexResourceObserver
,SynchronizeACLObserver
,SynchronizeArchivesSiteAdditionObserver
,SynchronizeArchivesSiteChangeObserver
,SynchronizeArchivesSiteDeletionObserver
,SynchronizeContentAdditionObserver
,SynchronizeContentCommentedObserver
,SynchronizeContentDeletionObserver
,SynchronizeContentPrivacyChangeObserver
,SynchronizeContentReactionObserver
,SynchronizeContentTaggedObserver
,SynchronizeContentUnpublishObserver
,SynchronizeContentValidationObserver
,SynchronizedContentTranslatedObserver
,SynchronizePageAttachmentsObserver
,SynchronizePageChangeObserver
,SynchronizePageDataUpdateObserver
,SynchronizePageDeletionObserver
,SynchronizePageMoveObserver
,SynchronizePageRenameObserver
,SynchronizeRobotsChangeObserver
,SynchronizeServiceModificationObserver
,SynchronizeSiteAdditionObserver
,SynchronizeSiteChangeObserver
,SynchronizeSitemapAdditionObserver
,SynchronizeSitemapChangeObserver
,SynchronizeSiteMoveObserver
,SynchronizeSiteOrSitemapDeletionObserver
,SynchronizeUserPopulationsObserver
,TagAddedObserver
,TagAutopostingSiteParameterObserverPart1
,TagAutopostingSiteParameterObserverPart2
,TagDeletedObserver
,TagUpdatedObserver
,TaskMailNotifierObserver
,ThreadsMailNotifierObserver
,UGCContentRefusedObserver
,UGCContentValidatedObserver
,UnindexContentObserver
,UnindexProgramObserver
,UnindexUnarchivedContentObserver
,UserContentCacheObserver
,UserContentCollectionSynchronizedObserver
,UserPageCacheObserver
,XMLResourceBundleFactory
public interface Observer
Observer for consuming events.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Maximum priority.static final int
Minimum priority. -
Method Summary
Modifier and TypeMethodDescriptionint
getPriority
(Event event) Retrieves the priority to observe this event.
This can be used to process a supported event before others observers.void
Observes an event.boolean
Checks if the event is supported.
-
Field Details
-
MIN_PRIORITY
Minimum priority.- See Also:
-
MAX_PRIORITY
Maximum priority.- See Also:
-
-
Method Details
-
supports
Checks if the event is supported. If true, the observe(Event) method will be called.- Parameters:
event
- the event.- Returns:
true
for observing this event,false
otherwise.
-
getPriority
Retrieves the priority to observe this event.
This can be used to process a supported event before others observers.- Parameters:
event
- the event.- Returns:
- the priority where 0 the max priority and Integer.MAX_VALUE the min priority.
-
observe
Observes an event.- Parameters:
event
- the event.transientVars
- transientVars passed from one Observer to another when processing a single Event. This may allow optimizations between observers.- Throws:
Exception
- if an error occurs. All exceptions will be logged but not propagated, as the observation mechanism should never fail.
-