mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
103947: Merged 5.0.N (5.0.2) to HEAD-BUG-FIX (5.1/Cloud) 103926: Merged NESS/5.0.N-2015_03_23 (5.0.2) to 5.0.N (5.0.2) 103902: MNT-13205 - hide the cancel exception from the log, small refactoring of the exception logging git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@104034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -26,6 +26,7 @@ import org.alfresco.service.cmr.action.Action;
|
||||
import org.alfresco.service.cmr.action.ParameterConstraint;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.apache.commons.logging.Log;
|
||||
|
||||
/**
|
||||
* Runtime action service. This interface contains methods useful for integration with the action
|
||||
@@ -105,4 +106,16 @@ public interface RuntimeActionService
|
||||
* @param actionedUponNodeRef the actioned upon node reference
|
||||
*/
|
||||
public void directActionExecution(Action action, NodeRef actionedUponNodeRef);
|
||||
|
||||
/**
|
||||
* Optional logging of errors callback for the action executer
|
||||
* for the cases when the error might be ignored
|
||||
* or shown in a different manner for the action
|
||||
* @param action the action
|
||||
* @param logger the logger
|
||||
* @param t the exception thrown
|
||||
* @param message the proposed message that will be logged
|
||||
* @return true if it was handled, false for default handling
|
||||
*/
|
||||
public boolean onLogException(Action action, Log logger, Throwable t, String message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user