com.github.dynamicextensionsalfresco.actions.DummyActionExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations-runtime Show documentation
Show all versions of annotations-runtime Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.actions;
import org.alfresco.repo.action.executer.ActionExecuter;
import org.alfresco.service.cmr.action.Action;
import org.alfresco.service.cmr.action.ActionDefinition;
import org.alfresco.service.cmr.repository.NodeRef;
/**
* Dummy action definition we can use to populate the action list.
*
* @author Laurent Van der Linden
*/
class DummyActionExecutor implements ActionExecuter {
private final ActionDefinition actionDefinition;
DummyActionExecutor(final ActionDefinition actionDefinition) {
this.actionDefinition = actionDefinition;
}
@Override
public String getQueueName() {
return null;
}
@Override
public boolean getIgnoreLock() {
return false;
}
@Override
public boolean getTrackStatus() {
return false;
}
@Override
public ActionDefinition getActionDefinition() {
return actionDefinition;
}
@Override
public void execute(final Action action, final NodeRef actionedUponNodeRef) {
throw new IllegalStateException("this action implementation has been uninstalled");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy