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 java.lang.StringgetBaseFileName()protected abstract org.alfresco.service.cmr.repository.NodeRefgetBaseTemplate()protected abstract java.lang.String[]getLocales()protected abstract java.lang.StringgetPath()protected java.util.List<java.lang.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
-
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<java.lang.String> getSiblingFiles()
-
-