ca.bc.gov.webade.tags.beans
Class WebADETagUtils

java.lang.Object
  extended byca.bc.gov.webade.tags.beans.WebADETagUtils

public class WebADETagUtils
extends java.lang.Object

Author:
jross

Constructor Summary
WebADETagUtils()
           
 
Method Summary
static java.lang.String writeUserAgreementForm(java.lang.String agreementId, java.lang.String agreementText, java.lang.String path, java.lang.String params)
          Writes the user agreement form to a String and returns it.
static java.lang.String writeUserOrganizationForm(Organization[] orgs, java.lang.String byOrgParam, java.lang.String path, java.lang.String params)
          Writes the user default organization form to a String and returns it.
static java.lang.String writeUserOrganizationForm(Organization[] orgs, java.lang.String byOrgParam, java.lang.String path, java.lang.String params, Organization defaultOrg)
          Writes the user default organization form to a String and returns it.
static java.lang.String writeUserOrganizationForm(User user, java.lang.String byOrgParam, java.lang.String path, java.lang.String params)
          Deprecated.  
static java.lang.String writeUserOrganizationForm(WebADEUserPermissions user, java.lang.String byOrgParam, java.lang.String path, java.lang.String params)
          Writes the user default organization form to a String and returns it.
static java.lang.String writeUserOrganizationForm(WebADEUserPermissions user, java.lang.String byOrgParam, java.lang.String path, java.lang.String params, Organization defaultOrg)
          Writes the user default organization form to a String and returns it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebADETagUtils

public WebADETagUtils()
Method Detail

writeUserOrganizationForm

public static final java.lang.String writeUserOrganizationForm(WebADEUserPermissions user,
                                                               java.lang.String byOrgParam,
                                                               java.lang.String path,
                                                               java.lang.String params)
Writes the user default organization form to a String and returns it.

Parameters:
user - The user to select an organization for.
byOrgParam - The org param that indicates what set of organizations to allow the user to select from.
path - The path of the interrupted request.
params - The request params of the interrupted request.
Returns:
Returns the form html.

writeUserOrganizationForm

public static final java.lang.String writeUserOrganizationForm(WebADEUserPermissions user,
                                                               java.lang.String byOrgParam,
                                                               java.lang.String path,
                                                               java.lang.String params,
                                                               Organization defaultOrg)
Writes the user default organization form to a String and returns it.

Parameters:
user - The user to select an organization for.
byOrgParam - The org param that indicates what set of organizations to allow the user to select from.
path - The path of the interrupted request.
params - The request params of the interrupted request.
defaultOrg - The user's default organization in the WebADE datastore, or null if none is set.
Returns:
Returns the form html.

writeUserOrganizationForm

public static final java.lang.String writeUserOrganizationForm(User user,
                                                               java.lang.String byOrgParam,
                                                               java.lang.String path,
                                                               java.lang.String params)
Deprecated.  

Writes the user default organization form to a String and returns it.

Parameters:
user - The user to select an organization for.
byOrgParam - The org param that indicates what set of organizations to allow the user to select from.
path - The path of the interrupted request.
params - The request params of the interrupted request.
Returns:
Returns the form html.

writeUserOrganizationForm

public static final java.lang.String writeUserOrganizationForm(Organization[] orgs,
                                                               java.lang.String byOrgParam,
                                                               java.lang.String path,
                                                               java.lang.String params)
Writes the user default organization form to a String and returns it.

Parameters:
orgs - The organizations to select from.
byOrgParam - The org param that indicates what set of organizations to allow the user to select from.
path - The path of the interrupted request.
params - The request params of the interrupted request.
Returns:
Returns the form html.

writeUserOrganizationForm

public static final java.lang.String writeUserOrganizationForm(Organization[] orgs,
                                                               java.lang.String byOrgParam,
                                                               java.lang.String path,
                                                               java.lang.String params,
                                                               Organization defaultOrg)
Writes the user default organization form to a String and returns it.

Parameters:
orgs - The organizations to select from.
byOrgParam - The org param that indicates what set of organizations to allow the user to select from.
path - The path of the interrupted request.
params - The request params of the interrupted request.
defaultOrg - The user's default organization in the WebADE datastore, or null if none is set.
Returns:
Returns the form html.

writeUserAgreementForm

public static final java.lang.String writeUserAgreementForm(java.lang.String agreementId,
                                                            java.lang.String agreementText,
                                                            java.lang.String path,
                                                            java.lang.String params)
Writes the user agreement form to a String and returns it.

Parameters:
agreementId - The id of the target agreement.
agreementText - The agreement text.
path - The path of the interrupted request.
params - The request params of the interrupted request.
Returns:
Returns the form html.