mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Patch checkpoint.
Service descriptor changes including introduction of schema number. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2161 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,11 +40,20 @@ public interface Patch
|
||||
public String getDescription();
|
||||
|
||||
/**
|
||||
* @see PatchService#applyOutstandingPatches()
|
||||
* @see AbstractPatch#setApplyToVersion(String)
|
||||
* @return Returns the smallest schema number that this patch may be applied to
|
||||
*/
|
||||
public String getApplyToVersion();
|
||||
public int getFixesFromSchema();
|
||||
|
||||
/**
|
||||
* @return Returns the largest schema number that this patch may be applied to
|
||||
*/
|
||||
public int getFixesToSchema();
|
||||
|
||||
/**
|
||||
* @return Returns the schema number that this patch attempts to bring the repo up to
|
||||
*/
|
||||
public int getTargetSchema();
|
||||
|
||||
/**
|
||||
* Get patches that this patch depends on
|
||||
*
|
||||
@@ -52,6 +61,14 @@ public interface Patch
|
||||
*/
|
||||
public List<Patch> getDependsOn();
|
||||
|
||||
/**
|
||||
* Check if the patch is applicable to a given schema version.
|
||||
*
|
||||
* @param version a schema version number
|
||||
* @return Returns <code>(fixesFromVersion <= version <= fixesToVersion)</code>
|
||||
*/
|
||||
public boolean applies(int version);
|
||||
|
||||
/**
|
||||
* Applies the patch. Typically this will be within the bounds of a new
|
||||
* transaction.
|
||||
|
Reference in New Issue
Block a user