public class QNamePatch extends AbstractPatch
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, searchService, tenantAdminService, transactionHelper, transactionService| Constructor and Description |
|---|
QNamePatch() |
| 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 |
setNodeDAO(NodeDAO nodeDAO) |
void |
setPatchDAO(PatchDAO patchDAO) |
void |
setQnameAfter(java.lang.String qnameStringAfter)
Sets the new QName value to be used.
|
void |
setQnameBefore(java.lang.String qnameStringBefore)
Sets the QName to be patched.
|
void |
setQnameDAO(QNameDAO qnameDAO) |
void |
setReindexClass(java.lang.String reindexClass)
Sets a value for the class to 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 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(java.lang.String qnameStringBefore)
qnameStringBefore - the long-form QName to be patched from. {namespaceURI}localNamepublic void setQnameAfter(java.lang.String qnameStringAfter)
qnameStringAfter - the long-form QName to be patched to. {namespaceURI}localNamepublic void setReindexClass(java.lang.String reindexClass)
reindexClass - "TYPE" or "ASPECT" or not set.protected 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.