public class HookExecutionHistory extends Object
AecuInstallHook invocation.| Constructor and Description |
|---|
HookExecutionHistory(javax.jcr.Session session,
String groovyScriptPath)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasBeenExecutedBefore()
Returns if the script has been executed before.
|
static void |
selfCheck(org.apache.sling.api.resource.ResourceResolver resolver)
Self test of history.
|
void |
setExecuted()
Sets on the history node to the current date.
|
public HookExecutionHistory(javax.jcr.Session session,
String groovyScriptPath)
throws de.valtech.aecu.api.service.AecuException
session - a session with write permissons on .groovyScriptPath - the groovy script to instantiate the execution history for.de.valtech.aecu.api.service.AecuException - in case the call to JcrUtils.getOrCreateByPath fails.public boolean hasBeenExecutedBefore()
public void setExecuted()
throws de.valtech.aecu.api.service.AecuException
de.valtech.aecu.api.service.AecuException - in case the property could not be saved.public static void selfCheck(org.apache.sling.api.resource.ResourceResolver resolver)
throws de.valtech.aecu.api.service.AecuException
resolver - resource resolverde.valtech.aecu.api.service.AecuException - check failedCopyright © 2019. All rights reserved.