01: package org.concern.library.generic;
02:
03: import org.concern.controller.AbstractAsynchronousActivity;
04: import org.concern.controller.ActivityExecutionException;
05:
06: /**
07: * @author hengels
08: * @version $Revision: 576 $
09: */
10: public class FormClassNameActivity<S> extends
11: AbstractAsynchronousActivity<S> {
12: String formClassName;
13: boolean forwardable;
14: boolean forwardOnEscalation;
15:
16: public String getFormClassName() {
17: return formClassName;
18: }
19:
20: public void setFormClassName(String formClassName) {
21: this .formClassName = formClassName;
22: }
23:
24: public boolean isForwardable() {
25: return forwardable;
26: }
27:
28: public void setForwardable(boolean forwardable) {
29: this .forwardable = forwardable;
30: }
31:
32: public boolean isForwardOnEscalation() {
33: return forwardOnEscalation;
34: }
35:
36: public void setForwardOnEscalation(boolean forwardOnEscalation) {
37: this .forwardOnEscalation = forwardOnEscalation;
38: }
39:
40: public void enlist(S object) throws ActivityExecutionException {
41: }
42:
43: public void delist(S object) throws ActivityExecutionException {
44: }
45:
46: public void escalate(S subject) throws ActivityExecutionException {
47: if (forwardOnEscalation) {
48: try {
49: controller
50: .forward(controller.getLoader().idOf(subject),
51: getName());
52: } catch (Exception e) {
53: throw new ActivityExecutionException(e);
54: }
55: }
56: }
57: }
|