Class CustomEmailMappingServiceImpl
- java.lang.Object
-
- org.springframework.extensions.surf.util.AbstractLifecycleBean
-
- org.alfresco.module.org_alfresco_module_rm.email.CustomEmailMappingServiceImpl
-
- All Implemented Interfaces:
EventListener
,CustomEmailMappingService
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationListener
public class CustomEmailMappingServiceImpl extends org.springframework.extensions.surf.util.AbstractLifecycleBean implements CustomEmailMappingService
Custom Email Mapping Service
-
-
Constructor Summary
Constructors Constructor Description CustomEmailMappingServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCustomMapping(String from, String to)
Add custom mappingvoid
deleteCustomMapping(String from, String to)
Delete custom mappingSet<CustomMapping>
getCustomMappings()
Get the list of custom mappingsList<String>
getEmailMappingKeys()
Gets the list of email mapping keysprotected void
onBootstrap(org.springframework.context.ApplicationEvent event)
protected void
onShutdown(org.springframework.context.ApplicationEvent arg0)
void
registerEMailMappingKey(String emailMappingKey)
Registers an email mapping key with the existing list of email mapping keysvoid
setContentService(ContentService contentService)
void
setEmailMappingKeys(List<String> emailMappingKeys)
void
setExtracter(RFC822MetadataExtracter extractor)
void
setNamespacePrefixResolver(NamespacePrefixResolver nspr)
void
setNodeService(NodeService nodeService)
void
setTransactionService(TransactionService transactionService)
-
-
-
Method Detail
-
setNamespacePrefixResolver
public void setNamespacePrefixResolver(NamespacePrefixResolver nspr)
- Parameters:
nspr
- namespace service
-
setExtracter
public void setExtracter(RFC822MetadataExtracter extractor)
- Parameters:
extractor
- extractor component
-
setNodeService
public void setNodeService(NodeService nodeService)
- Parameters:
nodeService
- node service
-
setContentService
public void setContentService(ContentService contentService)
- Parameters:
contentService
- content service
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
- Parameters:
transactionService
- transaction service
-
setEmailMappingKeys
public void setEmailMappingKeys(List<String> emailMappingKeys)
- Parameters:
emailMappingKeys
- email mapping keys
-
getCustomMappings
public Set<CustomMapping> getCustomMappings()
Description copied from interface:CustomEmailMappingService
Get the list of custom mappings- Specified by:
getCustomMappings
in interfaceCustomEmailMappingService
- Returns:
Set
<CustomMapping
>- See Also:
CustomEmailMappingService.getCustomMappings()
-
addCustomMapping
public void addCustomMapping(String from, String to)
Description copied from interface:CustomEmailMappingService
Add custom mapping- Specified by:
addCustomMapping
in interfaceCustomEmailMappingService
- See Also:
CustomEmailMappingService.addCustomMapping(java.lang.String, java.lang.String)
-
deleteCustomMapping
public void deleteCustomMapping(String from, String to)
Description copied from interface:CustomEmailMappingService
Delete custom mapping- Specified by:
deleteCustomMapping
in interfaceCustomEmailMappingService
- See Also:
CustomEmailMappingService.deleteCustomMapping(java.lang.String, java.lang.String)
-
getEmailMappingKeys
public List<String> getEmailMappingKeys()
Description copied from interface:CustomEmailMappingService
Gets the list of email mapping keys- Specified by:
getEmailMappingKeys
in interfaceCustomEmailMappingService
- Returns:
- Email mapping keys
- See Also:
CustomEmailMappingService.getEmailMappingKeys()
-
registerEMailMappingKey
public void registerEMailMappingKey(String emailMappingKey)
Description copied from interface:CustomEmailMappingService
Registers an email mapping key with the existing list of email mapping keys- Specified by:
registerEMailMappingKey
in interfaceCustomEmailMappingService
- Parameters:
emailMappingKey
- emailMappingKey to register- See Also:
CustomEmailMappingService.registerEMailMappingKey(java.lang.String)
-
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event)
- Specified by:
onBootstrap
in classorg.springframework.extensions.surf.util.AbstractLifecycleBean
- See Also:
AbstractLifecycleBean.onBootstrap(org.springframework.context.ApplicationEvent)
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent arg0)
- Specified by:
onShutdown
in classorg.springframework.extensions.surf.util.AbstractLifecycleBean
- See Also:
AbstractLifecycleBean.onShutdown(org.springframework.context.ApplicationEvent)
-
-