CONGO AppServer

Class registrants

java.lang.Object
  extended byregistrants

public class registrants
extends java.lang.Object

an XMLRPC class to handle registrant specific calls.

Version:
$Id: registrants.java,v 1.92 2005/02/17 09:43:58 points Exp $
Author:
Dave Belfer Shevett - dbs@stonekeep.com

Constructor Summary
registrants()
           
 
Method Summary
 java.lang.Object browseRegistrants(int skipcount, int numrows, int cid, java.lang.String regtype, java.lang.String status)
          Browse registrants based on some simple criteria.
 int clearNotification(java.util.Hashtable histinfo)
          Clear the notification flag on a specific registrant's history.
 int createHistory(java.util.Hashtable histinfo)
          Create a history entry for a registrant.
 java.lang.Object createLocation(java.util.Hashtable locinfo)
          Create a new Location entry for a registrant.
 java.lang.Object createRegistrant(java.util.Hashtable reginfo)
          Create a new registrant
 java.lang.Object delLocation(int regID, java.lang.String loctype, java.lang.String locname)
          Delete a location entry from a registrant.
 java.lang.Object editLocation(java.util.Hashtable locinfo)
          Edit a Location entry for a registrant.
 java.lang.Object getAllHistorybyActivity(int rid, int cid, java.lang.String actCode)
           
 java.lang.Object getAllLocationByID(int regID)
          Return a list of all the Location information for a specific registrant.
 java.lang.Object getAllLocationName()
          Return a list of locations that can be set.
 java.lang.Object getAllLocationType()
          Return a list of location types.
static java.lang.Object getAllProperties(int regID)
          Retrieve a list of properties that can be set for a specific registrant.
static java.lang.Object getAllProperties(int regID, int cidID)
          Retrieve a list of properties that can be set for a registrant for a specific conference ID.
static java.lang.Object getHistory(int rid, int cid)
          Return an array of hashes describing the history of a registrant as pertains to a specific conference.
static java.lang.Object getHistorybyActivity(int rid, int cid, java.lang.String actCode)
          Searches the history of a registrant for specific activity, within a cetrain conference.
static java.lang.Object getHistoryByID(int tid)
           
static java.lang.Object getLocationByID(int regID, java.lang.String loctype, java.lang.String locname)
          Retrieve a Location object based on registrant, location type, and name;
If locname is blank, just retrieve the first entry marked as primary.
 java.lang.Object getMatchNotices(int cid, java.lang.String fname, java.lang.String lname, java.lang.String bname)
           
 java.lang.Object getRegistrantbyHandle(java.lang.String regHandle)
          Return a Registrant hash referenced by Registrant 'handle' (eg 'badgename')
static java.lang.Object getRegistrantbyID(int regID)
          Return a Registrant referenced by Registrant ID
 java.lang.Object getRegistrantList(int cid)
          Returns an array of hashes listing all registrants subscribed to a specified conference.
static java.lang.Object getRegistrantProperty(int regID, int confID, java.lang.String propertyname)
          Return a property associated with a specific registrant.
 java.lang.Object getRegistrantsByField(java.lang.String company, java.lang.String lastname, java.lang.String firstname, java.lang.String handle)
          Returns an array of hashes listing all registrants who match substrings within specified fields.
 java.lang.Object getRegistrantsByLocation(java.lang.String search, java.lang.String type, int exact)
          Returns an array of hashes listing all registrants who match substrings within specified location fields.
 java.lang.Object getRegistrantsBySearch(java.lang.String search, int extra)
          Returns an array of hashes listing all registrants who match substrings within specified fields.
 java.util.Hashtable getState(int regID, int confID)
          Get the full state of a registrant in one call.
 java.lang.Object getSubscriptions(int regID)
          Return a list of conferences a registrant is subscribed to
 java.lang.Object getTransactionList(java.lang.String colname, int searchval)
          Returns an array of hashes showing the result of a transaction lookup.
static boolean isBadged(int regID, int confID)
          Check to see if a registrant is badged
static boolean isCheckedin(int regID, int confID)
          Check to see if a registrant is checkedin
static boolean isRegistered(int regID, int confID)
          Check to see if a registrant is actually registered for a conference, by checking for a REGISTERED entry in the history table for them.
static boolean isSubscribed(int regID, int confID)
          Check to see if a registrant is subscribed to a specific conference.
 java.lang.Object setBadgename(int regID, java.lang.String newval)
          Set the badge name for a registrant.
 java.lang.Object setCompany(int regID, java.lang.String newval)
          Set the company name for a registrant.
 java.lang.Object setFirstname(int regID, java.lang.String newval)
          Set the first name for a registrant.
 java.lang.Object setLastname(int regID, java.lang.String newval)
          Set the last name for a registrant.
 java.lang.Object setPassword(int regID, java.lang.String newval)
          Set the password for a registrant.
 java.lang.Object setRegistrantProperty(int rid, int cid, java.lang.String newproperty, java.lang.String newvalue)
          Sets a specific property for a registrant.
 boolean subscribe(int regID, int confID)
          Subscribe a registrant to a conference.
 boolean transferRegistrant(int fromId, int toId, int cid)
          Transfer a registration.
 boolean unsubscribe(int regID, int confID)
          UnSubscribe a registrant to a conference.
 int voidRegistration(int regID, int cid, java.lang.String comment)
          Void a registrant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

registrants

public registrants()
Method Detail

getHistorybyActivity

public static java.lang.Object getHistorybyActivity(int rid,
                                                    int cid,
                                                    java.lang.String actCode)
Searches the history of a registrant for specific activity, within a cetrain conference.

Parameters:
rid - the Registrant ID to search for
cid - the Conference to search for
actCode - the Activity code to search for
Returns:
Hashtable containing:
    Integer histRID - 0 if there is no match
    String histOperator - Reg ID of the operator who created this history entry
    String histActcode - Activity code. See the registrants.createHistory() javadoc for details
    String histArg1 - Arg1 for this activity
    String histArg2 - Arg2 for this activity
    String histComment - Comments

getAllHistorybyActivity

public java.lang.Object getAllHistorybyActivity(int rid,
                                                int cid,
                                                java.lang.String actCode)

getMatchNotices

public java.lang.Object getMatchNotices(int cid,
                                        java.lang.String fname,
                                        java.lang.String lname,
                                        java.lang.String bname)

getRegistrantProperty

public static java.lang.Object getRegistrantProperty(int regID,
                                                     int confID,
                                                     java.lang.String propertyname)
Return a property associated with a specific registrant.

Parameters:
regID - the Registrant ID to look up
confID - the Conference ID to reference
propertyname - which property to check
Returns:
Hashtable containing:
    String propval - The value retrieved. If propval is empty, then no such property is set.

getRegistrantbyID

public static java.lang.Object getRegistrantbyID(int regID)
Return a Registrant referenced by Registrant ID

Parameters:
regID - the Registrant ID to search for
Returns:
Hashtable containing:
    Integer regRID - 0 if there is no match
    String regLastname - Registrants last name
    String regFirstname - Registrants first name
    String regBadgename - Name as it is to appear on the badge
    String regPassword - Password used for web signin
    String regCompany - Registrants company entry

delLocation

public java.lang.Object delLocation(int regID,
                                    java.lang.String loctype,
                                    java.lang.String locname)
Delete a location entry from a registrant. Remove a location entry from a given registrant, based on registrant ID, location type, and location name.

Parameters:
regID - - the Registrant ID to modify
loctype - - the location type (MAIL,PHONE,SNAIL, etc)
locname - - the name of the particular location (HOME, WORK, etc)
Returns:
Hashtable containing:
    String errorstring - Should show an error if something doesn't work. At the moment it always returns 'None'

getLocationByID

public static java.lang.Object getLocationByID(int regID,
                                               java.lang.String loctype,
                                               java.lang.String locname)
Retrieve a Location object based on registrant, location type, and name;
If locname is blank, just retrieve the first entry marked as primary.

Parameters:
regID - The registrant to search for
loctype - The location type (MAIL, PHONE, SNAIL, etc)
locname - The location tag name (HOME, WORK, OTHER)
Returns:
Hashtable containing:
    Integer locrid - Registrant ID (-1 if there is no match)
    String loctype - Location type (PHONE, MAIL, etc)
    String locname - Location name (HOME, WORK, CELL) (note 'ANY' means match the first entry that matches 'type')
    String locdata - Data for the type. For addresses, it is a series of fields seperated by //
    String locaddressee - How should the person be addressed at this location? "Mr."
    Integer locprimary - Is this the 'primary' entry for [loc_type | loc_name] ? (1=yes, 0=no)

getAllProperties

public static java.lang.Object getAllProperties(int regID)
Retrieve a list of properties that can be set for a specific registrant. Information is retrieved by combining data from the system properties available to all registrants combined with the ones set for the particular registrant. If a registrant doesnt have a certain property, it defaults to blank. This is handy when fetching a list of available properties and their current value.
Note that this method returns a Hashtable of Hashes. One entry in the hashtable for each property returned.

Parameters:
regID - the Registrant ID to retrieve
Returns:
Hashtable containing:
    Integer rowcount - The number of rows returned
    Hashtable rowdata - The Hashtable containing rows for each property. See below

Structure of rowdata:
    String pname - Property name
    String pvalue - Property value
    Integer pcid - Conference ID
    String ptype - Property type (boolean,string,float,numeric,date)

getAllProperties

public static java.lang.Object getAllProperties(int regID,
                                                int cidID)
Retrieve a list of properties that can be set for a registrant for a specific conference ID.


getAllLocationByID

public java.lang.Object getAllLocationByID(int regID)
Return a list of all the Location information for a specific registrant. Note that this method returns a Hashtable of Hashes. One entry in the hashtable for each property returned.

Parameters:
regID - the Registrant ID to retrieve
Returns:
Hashtable containing:
    Integer rowcount - The number of rows returned
    Hashtable rowdata - The Hashtable containing rows for each location. See below

Structure of rowdata:
    Integer locrid - registrant ID String loctype - Location type (PHONE, MAIL, etc)
    String locname - Location name (HOME, WORK, CELL)
    String locdata - Data for the type. For addresses, it is a series of fields seperated by //
    String locaddressee - How should the person be addressed at this location? "Mr."
    Integer locprimary - Is this the 'primary' entry for [loc_type | loc_name] ? (1=yes, 0=no)

getAllLocationName

public java.lang.Object getAllLocationName()
Return a list of locations that can be set.

Returns:
Hashtable containing:
    Integer rowcount - The number of rows returned
    Hashtable rowdata - The Hashtable containing rows for each location. See below

Structure of rowdata:
    String locname - Location name (HOME, WORK, CELL, etc)

getAllLocationType

public java.lang.Object getAllLocationType()
Return a list of location types.

Returns:
Hashtable containing:
    Integer rowcount - The number of rows returned
    Hashtable rowdata - The Hashtable containing rows for each type. See below

Structure of rowdata:
    String loctype - Location type (PHONE, MAIL, etc)

getRegistrantbyHandle

public java.lang.Object getRegistrantbyHandle(java.lang.String regHandle)
Return a Registrant hash referenced by Registrant 'handle' (eg 'badgename')

Parameters:
regHandle - The handle or badge name to look for
Returns:
Hashtable containing:
    Integer regRID - THe ID of the found registrant. -1 is returned if there is no match
    String regLastname - Lastname
    String regFirstname - Firstname
    String regBadgename - Badgename
    String regPassword - Password
    String regCompany - Company

createRegistrant

public java.lang.Object createRegistrant(java.util.Hashtable reginfo)
Create a new registrant

Parameters:
reginfo - Hashtable containing:
    String lastname
    String firstname
    String email
    String badgename
    String password
    String company
Returns:
Hashtable containing:
    If the createRegistrant() is successful:
      Integer regRID - new registrant ID just created
      Integer errorCode - 0
      String errorString - 'Success'
    If the createRegistrant() fails:
      Integer regRID - -1
      String regLastname - Lastname of existing registrant
      String regFirstname - Firstname of existing registrant
      String regBadgename - Badgename of existing registrant
      String regPassword - Password of existing registrant
      String regCompany - Company of existing registrant
      String errorString - The error message why the creation failed
      String errorCode - The code of the failure, see below
      Error codes:
        1 - SQL error looking up original data
        2 - User already exists
        3 - Problem creating the master registrant
        4 - Create worked, but location add failed

isSubscribed

public static boolean isSubscribed(int regID,
                                   int confID)
Check to see if a registrant is subscribed to a specific conference. A subscription means that the registrant is associated with this particular conference. This doesn't necessarily mean they are -registered-. Use isRegistered for that.

Parameters:
regID - The registrant ID to check
confID - The conference ID to check
Returns:
TRUE if they are subscribed, FALSE if not.

isRegistered

public static boolean isRegistered(int regID,
                                   int confID)
Check to see if a registrant is actually registered for a conference, by checking for a REGISTERED entry in the history table for them.

Parameters:
regID - The registrant ID to check
confID - The conference ID to look them up in
Returns:
TRUE if they are registered, FALSE if not.

isCheckedin

public static boolean isCheckedin(int regID,
                                  int confID)
Check to see if a registrant is checkedin

Parameters:
regID - The registrant ID to check
confID - The conference ID to look them up in
Returns:
TRUE if they are checkedin, FALSE if not.

isBadged

public static boolean isBadged(int regID,
                               int confID)
Check to see if a registrant is badged

Parameters:
regID - The registrant ID to check
confID - The conference ID to look them up in
Returns:
TRUE if they are badged, FALSE if not.

subscribe

public boolean subscribe(int regID,
                         int confID)
Subscribe a registrant to a conference. Associated a specific registrant with a conference. This should be done before any other functions are performed on the registrant referring to this conference.

Parameters:
regID - Registrant ID to subscribe
confID - The conference to subscribe them to
Returns:
Always returns boolean 'false' - This should be fixed.

getState

public java.util.Hashtable getState(int regID,
                                    int confID)
Get the full state of a registrant in one call. This function returns the entire state of the registrant based on a single conference, all in one hashtable. This is much faster than calling individual isRegistered and isBadged calls to get their state.

Parameters:
regID - Registrant ID to look up
confID - The conference to check on.
Returns:
Hashtable containing:
    state_rid - Registrant ID (0 = failed)
    state_regtype - Registrant type
    state_registered - boolean - Are they registered?
    state_badged - boolean - Are they badged?
    state_checkedin - boolean - Are they checked in?

unsubscribe

public boolean unsubscribe(int regID,
                           int confID)
UnSubscribe a registrant to a conference. Disassociate a specific registrant from a conference. This should rarely need to be done, perhaps only if the registrant were connected in error.

Parameters:
regID - Registrant ID to subscribe
confID - The conference to subscribe them to
Returns:
Always returns boolean 'false' - This should be fixed.

transferRegistrant

public boolean transferRegistrant(int fromId,
                                  int toId,
                                  int cid)
Transfer a registration.

Parameters:
fromId - reg ID to transfer from
toId - reg ID to transfer to
cid - Conference ID

getSubscriptions

public java.lang.Object getSubscriptions(int regID)
Return a list of conferences a registrant is subscribed to

Parameters:
regID - the Registrant ID to retrieve
Returns:
Hashtable containing:
    rowcount - The number of rows returned
    rowdata - The Hashtable containing rows for each location. See below

Structure of rowdata:
statcid - Conference ID
statname - Name of the conference
statlocation - Location
statregistered - Are they registered? (true/false)
statbadged - Are they badged? (true/false)
statcheckedin - Have they checked in? (true/false)

createLocation

public java.lang.Object createLocation(java.util.Hashtable locinfo)
Create a new Location entry for a registrant.

Parameters:
locinfo - A hashtable containing:
    Integer rid - The registrant ID for the location data.
    String type - Location type
    String name - Location name
    Integer primary - Is this the primary locaiton? (1=yes, 0=no)
    String data - Location data (seperated by // marks)
    String addressee - How should messages to this entry be addressed?
Returns:
A hashtable containing:
    Integer ErrorCode - Always 0. This should be fixed
    String ErrorString - Always empty. This should be fixed

editLocation

public java.lang.Object editLocation(java.util.Hashtable locinfo)
Edit a Location entry for a registrant. Modify an existing Location entry for a registrant. The record to update is matched on the registrant ID, the type, and the name. If the specified record does not exist, nothing happens.

Parameters:
locinfo - A hashtable containing:
    Integer rid - The registrant ID for the location data.
    String type - Location type
    String name - Location name
    Integer primary - Is this the primary locaiton? (1=yes, 0=no)
    String data - Location data (seperated by // marks)
    String addressee - How should messages to this entry be addressed?
Returns:
A hashtable containing:
    Integer ErrorCode - Always 0. This should be fixed
    String ErrorString - Always empty. This should be fixed

getRegistrantList

public java.lang.Object getRegistrantList(int cid)
Returns an array of hashes listing all registrants subscribed to a specified conference. This is a handy method to return all the registrants in a conference. The resulting hashtable will contain -all- of the registrant names and numbers, so be careful.

Parameters:
cid - The conference ID to list.
Returns:
A hashtable containing:
    Integer rowcount - The number of rows returned Hashtable rowdata - A array of hashes containing all the information (See below)
Structure of rowdata hash entries:
    Integer regRID - The registrant ID
    String regFirstname - First name
    String regLastname - Last name
    String regCompany - Company

getRegistrantsByField

public java.lang.Object getRegistrantsByField(java.lang.String company,
                                              java.lang.String lastname,
                                              java.lang.String firstname,
                                              java.lang.String handle)
Returns an array of hashes listing all registrants who match substrings within specified fields.


getRegistrantsBySearch

public java.lang.Object getRegistrantsBySearch(java.lang.String search,
                                               int extra)
Returns an array of hashes listing all registrants who match substrings within specified fields. Do a generalized search of registrant information. This is a generic tool used for looking up a registrant. Unless the 'extra' flag is set, just the reg_master table will be searched (first name, last name, company, handle)

Parameters:
search - Text to be searched for
extra - Should other tables be searched as well? (takes longer)
Returns:
A Hashtable containing:
    rowcount - How many rows matched.
    rowdata - Results of the lookup
Structure of rowdata:
    Integer regRID - Registrant ID
    String regFirstname - First name
    String regLastname - Last name
    String regCompany - Company name
    String regBadgename - Handle
    String regPassword - Password
    String regType - Current registration type

getRegistrantsByLocation

public java.lang.Object getRegistrantsByLocation(java.lang.String search,
                                                 java.lang.String type,
                                                 int exact)
Returns an array of hashes listing all registrants who match substrings within specified location fields. Do a generalized search of registrant information. This is a generic tool used for looking up a registrant by location fields. Unless a specific type is give, all location fields will be used. If exact is set to true, only an exact text match will return.

Parameters:
search - Text to be searched for
type - 'ALL', or particular location 'type'.
exact - If true, only match on exact/full text.
Returns:
A Hashtable containing:
    rowcount - How many rows matched.
    rowdata - Results of the lookup
Structure of rowdata:
    Integer regRID - Registrant ID
    String regFirstname - First name
    String regLastname - Last name
    String regCompany - Company name
    String regBadgename - Handle
    String regPassword - Password
    String regType - Current registration type

getHistory

public static java.lang.Object getHistory(int rid,
                                          int cid)
Return an array of hashes describing the history of a registrant as pertains to a specific conference. Return all the history information for a registrant at a certain conference.

Parameters:
rid - Registrant ID
cid - Conference ID
Returns:
A hashtable containing:
    rowcount - The number of rows matching rowdata - Results of the lookup
Structure of rowdata:
    Integer histRID - Registrant ID (should all be the same)
    Integer histTID - Transaction ID
    Integer histCID - Conference ID
    String histActivity - Datestamp of the entry
    String histOperator - The login of the user making the change
    String histActcode - An activity code categorizing this entry
    String histArg1 - Argument 1 - this depends on the Actcode
    String histArg2 - Argument 2 - this depends on the Actcode
    String histComment - A freeform comment describing this entry

getHistoryByID

public static java.lang.Object getHistoryByID(int tid)

createHistory

public int createHistory(java.util.Hashtable histinfo)
Create a history entry for a registrant. History records are used to track activity for a user, and are associated with registrnats and conferences. A user on the system can look up history on a registrant, or registrant can use the web interface to view their own history.

Parameters:
histinfo - Hashtable (see below) Structure of hashtable passing in data:
    Integer hist_rid - Registrant ID
    Integer hist_cid - Conference ID
    String hist_operator - Name of the user / system making the entry (eg 'dave')
    String hist_arg1 - A generic field for arbitrary data
    String hist_arg2 - Another generic field for arbitrary data
    String hist_actcode - A value to identify this history entry.
    String hist_comment - A freeflow text field containing any additional data.
    The following definitions are used for the activity codes, and what is stored in each:
      hist_actcodehist_arg1hist_arg2hist_commentDescription
      BADGEDnullnullBadge printedA badge was printed
      CHANGEold valuenew valueWhat field or item changedA change to a registrant record, such as name or location
      CHECKEDINnullnullChecked inA registrant arrived at the event and checked in
      COMPregtypetype of compWHo is comping thisA free or 'comped' registration note. hist_tid should match regrequest and registration
      LABELnullnullLabel printedA label was pritned
      NEWREGnullnullAccount createdA registrant was added to the system
      NOTEnullnullThe note textA freeform note or comment
      NOTICEnullnullThe text to be displayedAn alert to be popped up on the terminal of the operator,
      NOTICE_ACKnullnullA comment by the operatorThe notice (a NOTICE entry) has been acknowledged, and can proceed
      REGREQUESTregtypepayment amountRegistrant requestedA new registrant request
      REGISTEREDregtypepayment amountRegistration completeA completed registration. hist_tid should match regrequest
      PROCESSEDnullnullTransaction completeA pending transaction has completed, see hist_tid for reference ID
      SUBnullnullSubcribedSubscribed registrant to conference 'hist_cid'
      UNSUBnullnullUnsubscribedUnsubscribed registrant from conference 'hist_cid'
Returns:
Integer History record identifier

clearNotification

public int clearNotification(java.util.Hashtable histinfo)
Clear the notification flag on a specific registrant's history. Using the [xxx] method, a registrant can be 'flagged' with a notification entry that will alert an operator that something needs to be done before this user can be processed.

Parameters:
histinfo - Hashtable (see below) Structure of hashtable passing in data:
    Integer hist_tid - Transaction ID to modify
    String hist_arg2 - Name of the user clearing the flag
Returns:
int Status of executed update [needs fleshing out]:

setRegistrantProperty

public java.lang.Object setRegistrantProperty(int rid,
                                              int cid,
                                              java.lang.String newproperty,
                                              java.lang.String newvalue)
Sets a specific property for a registrant. This method will set a property to a specific value for a registrant. Values set here may be referenced using the getRegistrantProperty method.

Parameters:
rid - Registrant ID
cid - Conference ID (if this is '0', this property is set for all events)
newproperty - The name of the property being set
newvalue - The value of this property. For true/false, use 0=false, 1=true
Returns:
int Always returns a '1' (This should probable be changed)

setPassword

public java.lang.Object setPassword(int regID,
                                    java.lang.String newval)
Set the password for a registrant. Set the password for a specified registrant. Passwords can be used for logging into webpages or other authentication that uses the registrant database for seeding.

Parameters:
regID - Registrant ID
newval - The new password
Returns:
Integer Always returns a '1' (This should probable be changed)

setLastname

public java.lang.Object setLastname(int regID,
                                    java.lang.String newval)
Set the last name for a registrant.

Parameters:
regID - Registrant ID
newval - The new lastname
Returns:
Integer Always returns a '1' (This should probable be changed)

setFirstname

public java.lang.Object setFirstname(int regID,
                                     java.lang.String newval)
Set the first name for a registrant.

Parameters:
regID - Registrant ID
newval - The new firstname
Returns:
Integer Always returns a '1' (This should probable be changed)

setCompany

public java.lang.Object setCompany(int regID,
                                   java.lang.String newval)
Set the company name for a registrant.

Parameters:
regID - Registrant ID
newval - The new company name
Returns:
Integer Always returns a '1' (This should probable be changed)

setBadgename

public java.lang.Object setBadgename(int regID,
                                     java.lang.String newval)
Set the badge name for a registrant. This is the actual text that is printed on the badge during the print process. This can be the same as the firstname / lastname, or contain nicknames or other information.

Parameters:
regID - Registrant ID
newval - The new badge name
Returns:
Integer Always returns a '1' (This should probable be changed)

getTransactionList

public java.lang.Object getTransactionList(java.lang.String colname,
                                           int searchval)
Returns an array of hashes showing the result of a transaction lookup.

Parameters:
colname - The name of the column to search. This can be hid, rid, tid, or ptype.
searchval - The text to search for within the specified column.
Returns:
Hashtable containing:
    Integer rowcount - The number of rows returned
    Hashtable rowdata - The Hashtable containing rows for each property. See below

Structure of rowdata:
    If an error occurred during processing:
      Integer faultCode - the value '100'
      String faultString - The text of the reason the method failed.
    If the lookup succeeded:
      Integer transhid - History ID (a unique identifier for a single entry in this history table)
      Integer transrid - Registrant ID
      Integer transtid - Transaction ID
      Float transamount - The amount of the transaction
      String transptype - Purchase type
      String transarg1 - Argument 1
      String transarg2 - Argument 2
      String transstatus - Status of this transaction
      String transcomment - Commnet
      String transdatestamp - Datestamp of last operation on this transaction
      String transoperator - Last operator to work with this record
      String transopcomment - Comments from the operator
      String transreason - Reason for transaction, NULL := Reg

browseRegistrants

public java.lang.Object browseRegistrants(int skipcount,
                                          int numrows,
                                          int cid,
                                          java.lang.String regtype,
                                          java.lang.String status)
Browse registrants based on some simple criteria.

Parameters:
skipcount - How many rows to 'skip' before returning data. Used when a client app needs to 'skip' forward or back groups of registratns.
numrows - The number of rows to return in the result.
cid - Conference ID to search in
regtype - What registration type
status - The 'status' of the registrant. This should be 'any', 'sub', 'reg', 'badged', or 'checkedin'.
Returns:
Hashtable containing:
    Integer rowcount - The number of rows returned
    Vector rowdata - A vector of hashes containing the results.

Structure of rowdata hash entries:
    If an error occurred during processing:
      Integer faultCode - the value '100'
      String faultString - The text of the reason the method failed.
    If there are rows returned...
      Integer browRID Integer browCID String browlastname String browfirstname String browbadgename String browcompany Boolean browsubscribed Boolean browregistered Boolean browcheckedin Boolean browbadged

voidRegistration

public int voidRegistration(int regID,
                            int cid,
                            java.lang.String comment)
Void a registrant

Parameters:
regID - Registrant ID
cid - Conference ID
comment - Comment on the void
Returns:
int 0 = success, 1 = failure

CONGO AppServer

Copyright © 2004 Stonekeep Consulting, Inc.