public class QNamePatch extends AbstractPatch
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, patchService, searchService, tenantAdminService, transactionHelper, transactionService
Constructor and Description |
---|
QNamePatch() |
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 |
setNodeDAO(NodeDAO nodeDAO) |
void |
setPatchDAO(PatchDAO patchDAO) |
void |
setQnameAfter(String qnameStringAfter)
Sets the new QName value to be used.
|
void |
setQnameBefore(String qnameStringBefore)
Sets the QName to be patched.
|
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setReindexClass(String reindexClass)
Sets a value for the class to 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, toString
public void setQnameDAO(QNameDAO qnameDAO)
qnameDAO
- the qnameDAO to setpublic void setPatchDAO(PatchDAO patchDAO)
patchDAO
- the patchDAO to setpublic void setNodeDAO(NodeDAO nodeDAO)
nodeDAO
- the nodeDAO to setpublic void setRetryingTransactionHelper(RetryingTransactionHelper retryingTransactionHelper)
retryingTransactionHelper
- the retryingTransactionHelper to setpublic void setQnameBefore(String qnameStringBefore)
qnameStringBefore
- the long-form QName to be patched from. {namespaceURI}localNamepublic void setQnameAfter(String qnameStringAfter)
qnameStringAfter
- the long-form QName to be patched to. {namespaceURI}localNamepublic void setReindexClass(String reindexClass)
reindexClass
- "TYPE" or "ASPECT" or not set.protected void checkProperties()
AbstractPatch
checkProperties
in class AbstractPatch
protected String applyInternal() throws Exception
AbstractPatch
applyInternal
in class AbstractPatch
Exception
- anything can be thrown. This must be used for all failures.AbstractPatch.apply()
Copyright © 2005–2017 Alfresco Software. All rights reserved.