|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--kom.gateway.KomData | +--kom.gateway.Build.KOMquery
KOMquery allows the users of KOM2000 to specify an evaluation type query without having to specify the raw HTML text. This class has two basic modes--as a real querywizard-type mode and a simpler mode. Real query-wizard mode allows the user to post messages in multiple forums, creating new forums with specified members and to set different types of accessiblity to the query (see the query specification for more information. The simpler mode does not allow the user to specifify a forum explicitly; this must be specified by the programmer by setLocations or an equivalent method. If Pid is not set, the user is only allowed to log in. When Pid is set the user cannot go back to the login screen in the query. See below for different cases.
KOMquery in query-wizard mode user not logged in --> query-wizard step 1 --> query-wizard step 2 (login screen) user logged in --> query-wizard step 2
To generate an HTML representation of this class, certain forms must be present in the KOM database.
Lifecycle of KOMquery:
Pid Author reference Ploc Key for identification Cname Subject of query Pdate Last change date Bintro Query introductory text Psecret CHECKED for a closed query. Not defined for an open query Pstep Current step in wizard Paltmax Maximum number of alternatives (5 is default) Balt*: Query alternatives, containing Balttext, Query in plaintext Pscalemax Maximum number of value alternatives (5 is default) Bscale*: Query scale, containing Bscaletext, Name of the alternative Plogin User login name Ploginpw User password Popenness Who are allowed to answer (anyone, specified, password) Brespondents*: Contains who are allowed to reply if specified or password. Prespemail, Email address, "" means anyone Ppw, Query password for respondent Ploc*: Contains forums where the query will be posted, Pnewloccat Category reference Cnewlocname Name of new group Pnewlocshort Short name of the group Cnewmembermail* Members in the new group
Field Summary | |
private int |
MAXSTEP
Number of steps in query-guide |
Fields inherited from class kom.gateway.KomData |
ADDKEYANY,
ADDKEYFIRST,
ADDKEYLAST |
Fields inherited from class java.util.Hashtable |
count,
ENTRIES,
entrySet,
KEYS,
keySet,
loadFactor,
modCount,
serialVersionUID,
table,
threshold,
values,
VALUES |
Constructor Summary | |
(package private) |
Build.KOMquery()
Constructs a KOMquery with Paltmax and Pscalemax set to five. |
(package private) |
Build.KOMquery(boolean wizardMode)
Constructs a KOMquery with the mode specified. |
(package private) |
Build.KOMquery(Build.KOMquery query)
Clones a KOMquery. |
(package private) |
Build.KOMquery(java.lang.String userRef,
java.lang.String queryRef)
Constructs a KOMquery by fetching it from the query database. |
Method Summary | |
(package private) int |
addAlternatives(int n)
Adds empty alternatives to this query. |
(package private) int |
addScaleValues(int n)
Adds empty scale values to this query. |
private void |
dispCategories(java.lang.String frm,
boolean open)
Outputs a SELECT form for choosing category |
private void |
dispForm()
Outputs an HTML version of the resulting query form. |
private void |
dispFormContent()
Outputs an HTML version of the contents of the resulting queryform (this is not really an HTML form). |
void |
dispnormal()
Outputs an HTML version of the query to the output buffer defined in classes above. |
void |
dispPreview()
Shows a preview of the query form |
(package private) java.lang.String[] |
getLocations()
Gets references to forums where the query will be posted. |
(package private) int |
getStep()
Gets the current step in the Query-guide. |
(package private) boolean |
isLocation(java.lang.String locationRef)
Tests if a forum is already in list of publishing forums for this query. |
(package private) int |
nextStep()
Advances to the next step in the Query-guide. |
void |
normal()
Outputs an HTML version of the query to the output buffer defined in classes above. |
(package private) int |
previousStep()
Goes back to the previous step in the Query-guide. |
boolean |
publish()
Publishes a query in the Kom database--currently not implemented. |
boolean |
remove()
Removes this query from the query database. |
(package private) int |
setAlternatives(java.lang.String[] queryNames)
Sets the alternatives in this query. |
(package private) int |
setLocations(java.lang.String[] locationRefs)
Sets the publishing locations for this query. |
(package private) int |
setScaleValues(java.lang.String[] scaleValues)
Sets the scale values for this query. |
(package private) int |
setStep(int n)
Sets the current step in the Query-guide. |
java.lang.String |
store()
Stores this query in the query database. |
(package private) int |
trimAlternatives()
Removes empty alternatives, also sets number of alternatives to reflect the number of filled-in alternatives. |
(package private) int |
trimScaleValues()
Removes empty scale values, also sets number of scale values to reflect the number of filled-in scale values. |
Methods inherited from class kom.gateway.KomData |
add,
create,
debugLog,
display,
disppriv,
errorLog,
get,
getAllData,
getBDATA,
getCDATA,
getData,
getElem,
getKeyList,
getKeys,
getName,
getPDATA,
getStringValues,
getStringVector,
getValues,
init,
isEmpty,
mayput,
publish,
put,
put,
putBDATA,
putCDATA,
putData,
putfirst,
putid,
putlast,
putPDATA,
putValue,
qput,
remove,
setName,
setValue,
toString |
Methods inherited from class java.util.Hashtable |
clear,
clone,
contains,
containsKey,
containsValue,
elements,
entrySet,
equals,
get,
hashCode,
isEmpty,
keys,
keySet,
put,
putAll,
readObject,
rehash,
remove,
size,
values,
writeObject |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int MAXSTEP
Constructor Detail |
Build.KOMquery()
Build.KOMquery(boolean wizardMode)
wizardMode
- Determines which mode the KOMquery will have. True means
that the user will be able to specify multiple posting forums and more.Build.KOMquery(Build.KOMquery query)
query
- Object to be cloned.Build.KOMquery(java.lang.String userRef, java.lang.String queryRef)
userRef
- User referencequeryRef
- Query referenceMethod Detail |
public java.lang.String store()
public boolean remove()
public void normal()
public void dispnormal()
private void dispCategories(java.lang.String frm, boolean open)
frm
- Template idopen
- Open query if trueprivate void dispForm()
private void dispFormContent()
public void dispPreview()
public boolean publish()
int setAlternatives(java.lang.String[] queryNames)
queryNames
- Names of alternatives.int setLocations(java.lang.String[] locationRefs)
locationRefs
- Array of location references, for example {"/2/3/"}.java.lang.String[] getLocations()
boolean isLocation(java.lang.String locationRef)
locationRef
- Forum reference.int addAlternatives(int n)
n
- Number of alternatives that should be added.int trimAlternatives()
int setScaleValues(java.lang.String[] scaleValues)
scaleValues
- Text describing the scale value.
For example: bad, average, good.int addScaleValues(int n)
n
- Number of scale values that should be added.int trimScaleValues()
int nextStep()
int previousStep()
int setStep(int n)
int getStep()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |