|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.admin.patch.PatchServiceImpl
public class PatchServiceImpl
Manages patches applied against the repository.
Patches are injected into this class and any attempted applications are recorded for later auditing.
Constructor Summary | |
---|---|
PatchServiceImpl()
|
Method Summary | |
---|---|
boolean |
applyOutstandingPatches()
Apply all outstanding patches that are relevant to the repo. |
java.util.List |
getPatches(java.util.Date fromDate,
java.util.Date toDate)
Retrieves all applied patches between two specific times. |
void |
registerPatch(Patch patch)
Registers a patch with the service that executes them. |
void |
setAppliedPatchDAO(AppliedPatchDAO appliedPatchDAO)
|
void |
setDescriptorService(DescriptorService descriptorService)
|
void |
setRuleService(RuleService ruleService)
|
void |
setTransactionService(TransactionServiceImpl transactionService)
|
boolean |
validatePatches()
Does some up-front validation on the patches, specifically to see if they all apply to the current server version and not some future version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatchServiceImpl()
Method Detail |
---|
public void setDescriptorService(DescriptorService descriptorService)
public void setTransactionService(TransactionServiceImpl transactionService)
public void setAppliedPatchDAO(AppliedPatchDAO appliedPatchDAO)
public void setRuleService(RuleService ruleService)
public void registerPatch(Patch patch)
PatchService
registerPatch
in interface PatchService
patch
- the patch to registerpublic boolean validatePatches()
PatchService
validatePatches
in interface PatchService
public boolean applyOutstandingPatches()
PatchService
applyOutstandingPatches
in interface PatchService
public java.util.List getPatches(java.util.Date fromDate, java.util.Date toDate)
PatchService
getPatches
in interface PatchService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |