Class FeedNotifierImpl
java.lang.Object
org.alfresco.repo.activities.feed.FeedNotifierImpl
- All Implemented Interfaces:
FeedNotifier,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class FeedNotifierImpl
extends Object
implements FeedNotifier, org.springframework.context.ApplicationContextAware
Implementation of the Activity Feed Notifier component
Note: currently implemented to email activities stored in JSON format
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPerform basic checks to ensure that the necessary dependencies were injected.voidexecute(int repeatIntervalMins) protected StringvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetBatchSize(int batchSize) voidsetFeedEmailTemplateLocation(RepositoryLocation feedEmailTemplateLocation) voidsetFileFolderService(FileFolderService fileFolderService) voidsetJobLockService(JobLockService jobLockService) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetNumThreads(int numThreads) voidsetPersonService(PersonService personService) voidsetRepoAdminService(RepoAdminService repoAdminService) voidsetSearchService(SearchService searchService) voidsetSysAdminParams(SysAdminParams sysAdminParams) voidsetTransactionService(TransactionService transactionService) voidsetUserNotifier(UserNotifier userNotifier)
-
Field Details
-
logger
protected static org.apache.commons.logging.Log logger
-
-
Constructor Details
-
FeedNotifierImpl
public FeedNotifierImpl()
-
-
Method Details
-
setNumThreads
public void setNumThreads(int numThreads) -
setBatchSize
public void setBatchSize(int batchSize) -
setUserNotifier
-
setFileFolderService
-
setSearchService
-
setNamespaceService
-
setPersonService
-
setNodeService
-
setJobLockService
-
setTransactionService
-
setSysAdminParams
-
setRepoAdminService
-
checkProperties
protected void checkProperties()Perform basic checks to ensure that the necessary dependencies were injected. -
execute
public void execute(int repeatIntervalMins) - Specified by:
executein interfaceFeedNotifier- Parameters:
repeatIntervalMins- system-wide job repeat interval (in minutes)
-
setFeedEmailTemplateLocation
-
getEmailTemplateRef
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-