public class CopiedFromAspectPatch extends AbstractPatch
working copies
and copies
.
Formerly, when a document was copied, it was given a cm:source property on the
cm:copiedfrom aspect - a d:noderef property. During checkout, the
working copy was given the cm:workingcopy aspect and the cm:copiedfrom
aspect was assumed to be present. However, the ordinality of the cm:copiedfrom's
cm:source property didn't match up with the checkin-checkout 1:1 relationship.
This patch works in two parts:
cm:copiedfromapplicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, searchService, tenantAdminService, transactionHelper, transactionService
Constructor and Description |
---|
CopiedFromAspectPatch() |
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 |
setBatchMaxQueryRange(int batchMaxQueryRange) |
void |
setBatchSize(int batchSize) |
void |
setBatchThreads(int batchThreads) |
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setPatchDAO(PatchDAO patchDAO) |
void |
setRuleService(RuleService ruleService) |
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, toString
public void setPatchDAO(PatchDAO patchDAO)
patchDAO
- additional queriespublic void setNodeDAO(NodeDAO nodeDAO)
nodeDAO
- provides query supportpublic void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService
- type and aspect resolutionpublic void setBehaviourFilter(BehaviourFilter behaviourFilter)
behaviourFilter
- used to switch off cm:auditable behaviourpublic void setRuleService(RuleService ruleService)
ruleService
- used to disable rulespublic void setBatchThreads(int batchThreads)
batchThreads
- the number of threads that will write child association changespublic void setBatchSize(int batchSize)
batchSize
- the number of child associations that will be modified per transactionpublic void setBatchMaxQueryRange(int batchMaxQueryRange)
batchMaxQueryRange
- the largest ID range that the work provider can query for.
Lower this if the DB resultset retrieval causes memory issues
prior to the query limit
being
applied.protected void checkProperties()
AbstractPatch
checkProperties
in class AbstractPatch
protected java.lang.String applyInternal() throws java.lang.Exception
AbstractPatch
applyInternal
in class AbstractPatch
java.lang.Exception
- anything can be thrown. This must be used for all failures.AbstractPatch.apply()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.