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
-
Field Summary
FieldsFields 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 -
Method Summary
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 Details
-
MSG_SUCCESS
- See Also:
-
MSG_FAILURE
- See Also:
-
-
Constructor Details
-
SamplePatch
public SamplePatch()Default constructor for Spring config
-
-
Method Details
-
init
public void init()Overrides the base class version to do nothing, i.e. it does not self-register- Overrides:
initin classAbstractPatch
-
applyInternal
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:
-