public class GenericMimetypeRenamePatch extends AbstractPatch
This patch will only work fully if the content URL data has been fully normalized. It supports renaming to existing, currently-used mimetypes as well as to mimetypes that have not been used before.
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, patchService, searchService, tenantAdminService, transactionHelper, transactionService| Constructor and Description |
|---|
GenericMimetypeRenamePatch() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
applyInternal()
This method does the work.
|
protected void |
checkProperties()
Check that the schema version properties have been set appropriately.
|
void |
setMimetypeDAO(MimetypeDAO mimetypeDAO) |
void |
setMimetypeMappings(Map<String,String> mimetypeMappings) |
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setPatchDAO(PatchDAO patchDAO) |
void |
setReindex(boolean reindex) |
void |
setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper) |
applies, apply, applyAsync, 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, toStringpublic void setMimetypeDAO(MimetypeDAO mimetypeDAO)
public void setPatchDAO(PatchDAO patchDAO)
public void setReindex(boolean reindex)
public void setNodeDAO(NodeDAO nodeDAO)
nodeDAO - the nodeDAO to setpublic void setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
retryingTransactionHelper - the retryingTransactionHelper to setprotected void checkProperties()
AbstractPatchcheckProperties in class AbstractPatchprotected String applyInternal() throws Exception
AbstractPatchapplyInternal in class AbstractPatchException - anything can be thrown. This must be used for all failures.AbstractPatch.apply()Copyright © 2005–2018 Alfresco Software. All rights reserved.