Class GenericEMailTemplateUpdatePatch
- java.lang.Object
-
- org.alfresco.repo.admin.patch.AbstractPatch
-
- org.alfresco.repo.admin.patch.impl.GenericEMailTemplateUpdatePatch
-
- All Implemented Interfaces:
Patch,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationEventPublisherAware
- Direct Known Subclasses:
AddDutchEmailTemplatesPatch,UpdateFollowingEmailTemplatesPatch,UpdateWorkflowNotificationTemplatesPatch
public abstract class GenericEMailTemplateUpdatePatch extends AbstractPatch
Helper generic patch useful when updating email templates.- Author:
- Roy Wetherall
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentServicecontentServiceContent serviceprotected FileFolderServicefileFolderServiceFile folder service-
Fields inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, patchService, searchService, tenantAdminService, transactionHelper, transactionService
-
-
Constructor Summary
Constructors Constructor Description GenericEMailTemplateUpdatePatch()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetBaseFileName()protected abstract NodeRefgetBaseTemplate()protected abstract String[]getLocales()protected abstract StringgetPath()protected List<String>getSiblingFiles()voidsetContentService(ContentService contentService)voidsetCreateSiblingIfMissing(boolean createSiblingIfMissing)voidsetFileFolderService(FileFolderService fileFolderService)voidsetUpdateBaseFile(boolean updateBaseFile)protected voidupdateTemplates()-
Methods inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applies, apply, applyAsync, applyInternal, checkProperties, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, init, isDeferred, isForce, isIgnored, reportProgress, requiresTransaction, setAlternatives, setApplicationEventPublisher, setApplyToTenants, setAuthenticationContext, setDeferred, setDependsOn, setDescription, setFixesFromSchema, setFixesToSchema, setForce, setId, setIgnored, setNamespaceService, setNodeService, setPatchService, setRequiresTransaction, setSearchService, setTargetSchema, setTenantAdminService, setTransactionService, toString
-
-
-
-
Field Detail
-
contentService
protected ContentService contentService
Content service
-
fileFolderService
protected FileFolderService fileFolderService
File folder service
-
-
Method Detail
-
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- boolean
-
setUpdateBaseFile
public void setUpdateBaseFile(boolean updateBaseFile)
- Parameters:
updateBaseFile- boolean
-
getBaseTemplate
protected abstract NodeRef getBaseTemplate()
-
getPath
protected abstract String getPath()
-
getBaseFileName
protected abstract String getBaseFileName()
-
getLocales
protected abstract String[] getLocales()
-
-