org.alfresco.repo.admin.patch.impl
Class GenericEMailTemplateUpdatePatch
java.lang.Object
org.alfresco.repo.admin.patch.AbstractPatch
org.alfresco.repo.admin.patch.impl.GenericEMailTemplateUpdatePatch
- All Implemented Interfaces:
- Patch, org.springframework.context.ApplicationEventPublisherAware
- Direct Known Subclasses:
- ActivitiesTemplatesUpdatePatch, AddDutchEmailTemplatesPatch, UpdateFollowingEmailTemplatesPatch, UpdateWorkflowNotificationTemplatesPatch
public abstract class GenericEMailTemplateUpdatePatch
- extends AbstractPatch
Helper generic patch useful when updating email templates.
| Methods inherited from class org.alfresco.repo.admin.patch.AbstractPatch |
applies, apply, applyInternal, checkProperties, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, init, isForce, reportProgress, requiresTransaction, setAlternatives, setApplicationEventPublisher, setApplyToTenants, setAuthenticationContext, setDependsOn, setDescription, setFixesFromSchema, setFixesToSchema, setForce, setId, setNamespaceService, setNodeService, setPatchService, setRequiresTransaction, setSearchService, setTargetSchema, setTenantAdminService, setTransactionService, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
contentService
protected ContentService contentService
- Content service
fileFolderService
protected FileFolderService fileFolderService
- File folder service
GenericEMailTemplateUpdatePatch
public GenericEMailTemplateUpdatePatch()
setContentService
public void setContentService(ContentService contentService)
- Parameters:
contentService - content service
setFileFolderService
public void setFileFolderService(FileFolderService fileFolderService)
- Parameters:
fileFolderService - file folder service
setCreateSiblingIfMissing
public void setCreateSiblingIfMissing(boolean createSiblingIfMissing)
- Parameters:
createSiblingIfMissing -
setUpdateBaseFile
public void setUpdateBaseFile(boolean updateBaseFile)
- Parameters:
updateBaseFile -
updateTemplates
protected void updateTemplates()
throws java.lang.Exception
- Throws:
java.lang.Exception
getBaseTemplate
protected abstract org.alfresco.service.cmr.repository.NodeRef getBaseTemplate()
getPath
protected abstract java.lang.String getPath()
getBaseFileName
protected abstract java.lang.String getBaseFileName()
getLocales
protected abstract java.lang.String[] getLocales()
getSiblingFiles
protected java.util.List getSiblingFiles()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.