01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.romaframework.aspect.flow;
18:
19: import org.romaframework.core.aspect.Aspect;
20:
21: /**
22: * Flow Aspect behavior interface.
23: *
24: * @author Luca Garulli (luca.garulli@assetdata.it)
25: */
26: public interface FlowAspect extends Aspect {
27:
28: public static final String ASPECT_NAME = "flow";
29:
30: /**
31: * Follow the application flow moving forward.
32: *
33: * @param iCurrentObject
34: * Current object
35: * @param iNextClass
36: * Next class of object to display
37: * @param iPosition
38: * Position where to display the object
39: * @param iSetBack
40: * true if the next object need to be setted the go-back object, false otherwise.
41: */
42: public void forward(Object iCurrentObject,
43: Class<? extends Object> iNextClass, String iPosition,
44: boolean iSetBack);
45:
46: /**
47: * Follow the application flow moving forward.
48: *
49: * @param iCurrentObject
50: * Current object
51: * @param iNextClass
52: * Next object to display
53: * @param iPosition
54: * Position where to display the object
55: * @param iSetBack
56: * true if the next object need to be setted the go-back object, false otherwise.
57: */
58: public void forward(Object iCurrentObject, Object iNextObject,
59: String iPosition, boolean iSetBack);
60: }
|