org.alfresco.repo.admin.patch
Class SamplePatch

java.lang.Object
  extended by org.alfresco.repo.admin.patch.AbstractPatch
      extended by org.alfresco.repo.admin.patch.SamplePatch
All Implemented Interfaces:
Patch, org.springframework.context.ApplicationEventPublisherAware

public class SamplePatch
extends AbstractPatch


Field Summary
static java.lang.String MSG_FAILURE
           
static java.lang.String MSG_SUCCESS
           
 
Fields inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, searchService, tenantAdminService, transactionHelper, transactionService
 
Constructor Summary
SamplePatch()
          Default constructor for Spring config
 
Method Summary
protected  java.lang.String applyInternal()
          Does nothing
 void init()
          Overrides the base class version to do nothing, i.e.
 
Methods inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applies, apply, checkProperties, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, isForce, reportProgress, requiresTransaction, setAlternatives, setApplicationEventPublisher, setApplyToTenants, setAuthenticationContext, setDependsOn, setDescription, setFixesFromSchema, setFixesToSchema, setForce, setId, setNamespaceService, setNodeService, setPatchService, setRequiresTransaction, setSearchService, setTargetSchema, setTenantAdminService, setTransactionService, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MSG_SUCCESS

public static final java.lang.String MSG_SUCCESS
See Also:
Constant Field Values

MSG_FAILURE

public static final java.lang.String MSG_FAILURE
See Also:
Constant Field Values
Constructor Detail

SamplePatch

public SamplePatch()
Default constructor for Spring config

Method Detail

init

public void init()
Overrides the base class version to do nothing, i.e. it does not self-register

Overrides:
init in class AbstractPatch

applyInternal

protected java.lang.String applyInternal()
                                  throws java.lang.Exception
Does nothing

Specified by:
applyInternal in class AbstractPatch
Returns:
Returns a success or failure message dependent on the constructor used
Throws:
java.lang.Exception - anything can be thrown. This must be used for all failures.
See Also:
AbstractPatch.apply()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.