Package org.alfresco.repo.admin.patch
Class SamplePatch
- java.lang.Object
-
- org.alfresco.repo.admin.patch.AbstractPatch
-
- org.alfresco.repo.admin.patch.SamplePatch
-
- All Implemented Interfaces:
Patch,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationEventPublisherAware
public class SamplePatch extends AbstractPatch
-
-
Field Summary
Fields Modifier and Type Field Description static StringMSG_FAILUREstatic StringMSG_SUCCESS-
Fields inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, patchService, searchService, tenantAdminService, transactionHelper, transactionService
-
-
Constructor Summary
Constructors Constructor Description SamplePatch()Default constructor for Spring config
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringapplyInternal()Does nothingvoidinit()Overrides the base class version to do nothing, i.e.-
Methods inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applies, apply, applyAsync, checkProperties, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, 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
-
-
-
-
Field Detail
-
MSG_SUCCESS
public static final String MSG_SUCCESS
- See Also:
- Constant Field Values
-
MSG_FAILURE
public static final String MSG_FAILURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init()
Overrides the base class version to do nothing, i.e. it does not self-register- Overrides:
initin classAbstractPatch
-
applyInternal
protected String applyInternal() throws Exception
Does nothing- Specified by:
applyInternalin classAbstractPatch- Returns:
- Returns a success or failure message dependent on the constructor used
- Throws:
Exception- anything can be thrown. This must be used for all failures.- See Also:
AbstractPatch.apply()
-
-