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, searchService, tenantAdminService, transactionHelper, transactionService| Constructor and Description |
|---|
GenericMimetypeRenamePatch() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.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(java.util.Map mimetypeMappings) |
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setPatchDAO(PatchDAO patchDAO) |
void |
setReindex(boolean reindex) |
void |
setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper) |
applies, apply, 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, toStringpublic void setMimetypeDAO(MimetypeDAO mimetypeDAO)
public void setPatchDAO(PatchDAO patchDAO)
public void setMimetypeMappings(java.util.Map mimetypeMappings)
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 java.lang.String applyInternal()
throws java.lang.Exception
AbstractPatchapplyInternal in class AbstractPatchjava.lang.Exception - anything can be thrown. This must be used for all failures.AbstractPatch.apply()Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.