01: package org.araneaframework.core;
02:
03: import java.io.Serializable;
04: import java.util.Map;
05: import org.araneaframework.Service;
06: import org.araneaframework.Composite.CompositeService;
07: import org.araneaframework.Viewable.ViewableService;
08:
09: /**
10: * A Service Component.
11: */
12: public interface ApplicationService extends ApplicationComponent,
13: Service, CompositeService, ViewableService {
14:
15: /**
16: * A view model for a Service.
17: */
18: public interface ServiceViewModel extends
19: ApplicationComponent.ComponentViewModel, Serializable {
20: /**
21: * Can be used to custom data from the view.
22: */
23: public Map getData();
24: }
25:
26: //*******************************************************************
27: // CONSTANTS
28: //*******************************************************************
29: /**
30: * The attribute of the action id.
31: * @since 1.0.4
32: */
33: public static final String ACTION_HANDLER_ID_KEY = "araServiceActionHandler";
34: /** @since 1.0.4 */
35: public static final String ACTION_PARAMETER_KEY = "araServiceActionParameter";
36:
37: /**
38: * The key of the path of the action in the request.
39: *
40: * @since 1.1
41: */
42: public static final String ACTION_PATH_KEY = "araServiceActionPath";
43:
44: }
|