01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.engines.call;
09:
10: //base classes
11: import java.math.BigDecimal;
12:
13: //project specific classes
14: import org.jfolder.common.entity.SystemEntityTag;
15: import org.jfolder.common.tagging.ConceptTagCharacteristic;
16:
17: //other classes
18:
19: public interface GovernorCall {
20:
21: public final static String GOVERNOR_CALL = "call";
22: public final static String GOVERNOR_DOCS = "docs";
23:
24: //
25: public boolean isCallRequest();
26:
27: public boolean isCallResponse();
28:
29: public void setCallAsRequest();
30:
31: public void setCallAsResponse();
32:
33: //
34: public String getServiceType();
35:
36: public String getCallName();
37:
38: public void setServiceType(String inServiceType);
39:
40: public void setCallName(String inCallName);
41:
42: //
43:
44: //
45: public int getArgumentCount();
46:
47: //
48: public BigDecimal getArgumentAsDecimal(int inIndex);
49:
50: public Boolean getArgumentAsBoolean(int inIndex);
51:
52: public String getArgumentAsLString(int inIndex);
53:
54: public SystemEntityTag getArgumentAsSEntity(int inIndex);
55:
56: public byte[] getArgumentAsBObject(int inIndex);
57:
58: //
59: public void addArgumentAsDecimal(BigDecimal inValue);
60:
61: public void addArgumentAsBoolean(Boolean inValue);
62:
63: public void addArgumentAsLString(String inValue);
64:
65: public void addArgumentAsBObject(byte inValue[]);
66:
67: //public void addArgumentAsSEntity(SystemEntityTag inValue);
68: //public ConceptTagCharacteristic getArguments();
69: public ConceptTagCharacteristic addPrepareArgumentAsSEntity();
70:
71: //
72: public String getCallSecret();
73:
74: public String getCallCredentials();
75:
76: //
77: public void setCallSecret(String inCallSecret);
78:
79: public void setCallCredentials(String inCallCredentials);
80:
81: }
|