com.ptc.windchill.cadx.wsoption
Class WsConfigSpecEditUtilities

java.lang.Object
  extended bycom.ptc.windchill.cadx.wsoption.WsConfigSpecEditUtilities

public class WsConfigSpecEditUtilities
extends Object

Provides generic operations for editing part and doc config spec of a workapce.

Supported API: false

Extendable: false


Field Summary
static String BASELINE1_BUTTON_SELECTED
          

Supported API: false
static String BASELINE2_BUTTON_SELECTED
          

Supported API: false
static String CHOICE_TO_SAVE_CONFIG_SPEC_TO_WORKSPACE
           
private static String CLASSNAME
           
private  EPMDocConfigSpec currentDocConfigSpec
           
private  WTPartConfigSpec currentPartConfigSpec
           
static String DOC_CONFIG_SPEC_OID
           
private  boolean docPanelActive
           
static String EDIT_CONFIG_SPEC_PAGE_TITLE
           
static String EDIT_ONLY_CONFIG_SPEC
           
static String EDIT_WORKSPACE_CONFIG_SPEC_HELP_SUFFIX
           
static String EDIT_WORKSPACE_CONFIG_SPEC_TABS_ACTION
           
static String EDIT_WORKSPACE_OPTIONS_HELP_SUFFIX
           
static String EDIT_WORKSPACE_OPTIONS_TABS_ACTION
           
static String EFFECTIVITY_BUTTON_SELECTED
          

Supported API: false
(package private) static boolean enableEffectivityForDocuments
           
private  Properties formData
           
static String INVOKED_FROM_CHECKOUTDOWNLOAD_PAGE
           
private  String newBaselineNumber
           
private  String newConfigurationItemName
           
private  EPMDocConfigSpec newDocConfigSpec
           
private  String newEffectiveDate
           
private  String newEffectiveUnit
           
private  String newEffectivityContextName
           
private  String newEffectivityViewName
           
private  String newLifeCycleStateName
           
private  WTPartConfigSpec newPartConfigSpec
           
private  String newStandardConfigSpecViewName
           
static String PART_CONFIG_SPEC_OID
           
static String[] PickerOperations
           
static List PickerOperationsList
           
static String[][] PickerQueryAndTypeLists
           
static Class[] PickerSelectedObjectDataTypes
           
static String REFERER_SPECIFIED_PAGE_TITLE
           
private static String RESOURCE
           
static String STANDARD_BUTTON_SELECTED
          

Supported API: false
private  HTTPState theHTTPState
           
private  String validationMessageKey
           
private static boolean VERBOSE
           
 
Constructor Summary
WsConfigSpecEditUtilities(String action, HTTPState aHTTPState, EPMWorkspace workspace)
          

Supported API: false
 
Method Summary
static boolean containedInPickerOperationsList(String pickerOperation)
           
static Properties createQueryPropertiesForEditConfigSpec(Properties parameters)
          Create a parameters Propeties object for all the key/value pairs to be appended to the URL as query string.
static Properties createQueryPropertiesForGeneralOptionPage(Properties parameters)
           
protected  EffContext findEffectiveContext(String contextName)
           
private  String formatDate(Date date, Locale locale)
           
 String getCurrentBaselineNumber()
          

Supported API: false
 ConfigurationItem getCurrentConfigurationItem()
           
 String getCurrentConfigurationItemName()
          

Supported API: false
 String getCurrentConfigurationItemTypeValue()
          

Supported API: false
 EffContext getCurrentEffectiveContext()
           
 String getCurrentEffectiveDate(Locale locale)
          

Supported API: false
 String getCurrentEffectiveUnit()
          

Supported API: false
 String getCurrentEffectivityContextName()
           
 String getCurrentEffectivityViewName()
          

Supported API: false
 String getCurrentLifeCycleStateName()
          

Supported API: false
 String getCurrentStandardConfigSpecViewName()
          

Supported API: false
private  Timestamp getDefaultTimestamp()
           
 String getDisplayIdentity(Object obj)
           
 EffContext getEffectiveContext()
           
static EffContext getEffectiveContextFrom(Object obj)
           
 String getEffectiveContextOID()
           
 String getEffectiveContextOID(EffContext effContext)
           
private static boolean getEnableEffectivityForDocuments()
           
private  Properties getFormData()
          Get form data, only once (for performance reasons).
private  String getFormDataValue(String formDataName)
          Get the value from the form data for the specified form data name
private  String getFormOrQueryDataParamValue(String paramKey)
           
 String getHelpContext()
          Return help context key based editOnlyConficSpec flag.
 Vector getLifeCycleStateNameVector()
          creates a vector of lifecycle state names from the enumerated type State

Supported API: false
private  Locale getLocale()
           
static String getPickerQuery(String pickerOperation)
           
static String getPickerTypeList(String pickerOperation)
           
 String getRefererSpecifiedPageTitle()
          If the referer page has explicitly indicated the page title to be used, get that title.
static EPMDocConfigSpec getSessionOnlyDocConfigSpec(HTTPState a_HTTPState)
           
static EPMDocConfigSpec getSessionOnlyOrWorkspaceDocConfigSpec(HTTPState a_HTTPState)
          For the FormData of specified HTTPState object, check whether 'session only' EPMDocConfigSpec oid is found in the FormData key mappings.
static EPMDocConfigSpec getSessionOnlyOrWorkspaceDocConfigSpec(HTTPState a_HTTPState, EPMWorkspace a_EPMWorkspace)
           
static WTPartConfigSpec getSessionOnlyOrWorkspacePartConfigSpec(HTTPState a_HTTPState)
          For the FormData of specified HTTPState object, check whether 'session only' WTPartConfigSpec oid is found in the FormData key mappings.
static WTPartConfigSpec getSessionOnlyOrWorkspacePartConfigSpec(HTTPState a_HTTPState, EPMWorkspace a_EPMWorkspace)
           
static WTPartConfigSpec getSessionOnlyPartConfigSpec(HTTPState a_HTTPState)
           
private static ConfigSpec getThisSessionOnlyConfigSpec(Properties a_FormData, String configSpecOidKey)
          For the specified FormData object, look for a key mapping for the specified configSpecOidKey.
 String getValidationMessageKey()
          Get the error message code based upon the last call to the validatexxxxxxPanelData method.
 Vector getViewNameVector()
          searches the database for all views and creates a vector of the same.
private  void handleException(Exception e)
           
static int indexOfPickerOperationsList(String pickerOperation)
           
private  void init(HTTPState aHTTPState, EPMWorkspace workspace)
          perform all the common initialization here
private  void initWorkspaceFields(EPMWorkspace workspace)
           
 boolean isBaselineActive()
          returns whether baseline (as well as beaseline for item) button is active for the config spec of the part or doc

Supported API: false
 boolean isDocPanelActive()
          indicates whether the doc config spec for workspace tab is the active tab.
static boolean isDocPanelActive(String action)
          For the specified action, indicates whether the doc config spec for workspace tab is the active tab.
 boolean isEditOnlyConfigSpec()
          Check to see whether user has indicated that only edit config spec operation is requested.
private  boolean isEffectiveDateValid(String dateString)
           
private  boolean isEffectiveUnitValid(String unit)
           
 boolean isEffectivityActive()
          returns whether effectivity button is active for the config spec of the part or doc

Supported API: false
static boolean isExpectedPickerDataType(String pickerOperation, Object data)
           
 boolean isInvokedFromCheckoutDownloadPage()
           
 boolean isStandardActive()
          returns whether standard button is active for the config spec of the part or doc

Supported API: false
 boolean modifyBaselineConfigSpec()
          Creates a baseline-based config spec for parts/documents.
 ConfigSpec modifyConfigSpec(String buttonSelected)
          This method modifies the config spec (doc or part) depending upon the valid values entered in the panel and the radio button selection to indicate which type of config spec is to be made active.
 boolean modifyEffectivityConfigSpec()
          Creates an effectivity-based config spec for parts/documents.
 boolean modifyStandardConfigSpec()
          creates a new standard or lifecycle-based config spec for parts/documents.
static void redirectToEditWsConfigSpecOptionsPage(HTTPState a_HTTPState, EPMWorkspace a_EPMWorkspace, Properties onLoadFormState, Properties hiddenProperties, String refUrl)
          Re-direct to the Edit Workspace Config Spec Options page.
static void redirectToGeneralWsPrefOptionsPage(HTTPState a_HTTPState, EPMWorkspace a_EPMWorkspace, Properties onLoadFormState, Properties hiddenProperties, String refUrl)
           
 void refreshWorkspace(EPMWorkspace workspace)
           
 void setDocPanelActive(boolean docPanelActive)
          

Supported API: false
 void setDocPanelActive(String action)
          Based upon the specified action, set whether doc config spec tab is the current tab

Supported API: false
 void setNewBaselineNumber(String newBaselineNumber)
          

Supported API: false
 void setNewConfigurationItemName(String newConfigurationItemName)
          

Supported API: false
 void setNewEffectiveDate(String newEffectiveDate)
          

Supported API: false
 void setNewEffectiveUnit(String newEffectiveUnit)
          

Supported API: false
 void setNewEffectivityContextName(String newName)
           
 void setNewEffectivityViewName(String newEffectivityViewName)
          

Supported API: false
 void setNewLifeCycleStateName(String newLifeCycleStateName)
          

Supported API: false
 void setNewStandardConfigSpecViewName(String newStandardConfigSpecViewName)
          

Supported API: false
 boolean validateBaselineForItemPanelData()
          validates the data related to "Baseline For Item" button in the panel to set WTPartBaselineConfigSpec for parts and BaselineConfigSpec for documents.
 boolean validateBaselinePanelData()
          validates the data related to "Baseline" button in the panel to set WTPartBaselineConfigSpec for parts and BaselineConfigSpec for documents

Supported API: false
 boolean validateEffectivityPanelData()
          validates the data related to "Effectivity" button in the panel to set WTPartEffectivityConfigSpec for parts and EffectivityConfigSpec for documents.
 boolean validateStandardPanelData()
          validates the data related to "Standard" button in the panel to set WTPartStandardConfigSpec for parts and LifeCycleConfigSpec for documents.
 boolean wantChoiceToSaveCSToWs()
          Check to see whether the referer page has indicated that user should have a choice to save the config spec change to the workspace or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

STANDARD_BUTTON_SELECTED

public static final String STANDARD_BUTTON_SELECTED


Supported API: false

See Also:
Constant Field Values

BASELINE1_BUTTON_SELECTED

public static final String BASELINE1_BUTTON_SELECTED


Supported API: false

See Also:
Constant Field Values

BASELINE2_BUTTON_SELECTED

public static final String BASELINE2_BUTTON_SELECTED


Supported API: false

See Also:
Constant Field Values

EFFECTIVITY_BUTTON_SELECTED

public static final String EFFECTIVITY_BUTTON_SELECTED


Supported API: false

See Also:
Constant Field Values

docPanelActive

private boolean docPanelActive

newStandardConfigSpecViewName

private String newStandardConfigSpecViewName

newLifeCycleStateName

private String newLifeCycleStateName

newBaselineNumber

private String newBaselineNumber

newEffectivityViewName

private String newEffectivityViewName

newEffectiveDate

private String newEffectiveDate

newConfigurationItemName

private String newConfigurationItemName

newEffectivityContextName

private String newEffectivityContextName

currentPartConfigSpec

private WTPartConfigSpec currentPartConfigSpec

currentDocConfigSpec

private EPMDocConfigSpec currentDocConfigSpec

newPartConfigSpec

private WTPartConfigSpec newPartConfigSpec

newDocConfigSpec

private EPMDocConfigSpec newDocConfigSpec

validationMessageKey

private String validationMessageKey

theHTTPState

private HTTPState theHTTPState

formData

private Properties formData

newEffectiveUnit

private String newEffectiveUnit

VERBOSE

private static boolean VERBOSE

enableEffectivityForDocuments

static boolean enableEffectivityForDocuments

PART_CONFIG_SPEC_OID

public static final String PART_CONFIG_SPEC_OID
See Also:
Constant Field Values

DOC_CONFIG_SPEC_OID

public static final String DOC_CONFIG_SPEC_OID
See Also:
Constant Field Values

PickerOperations

public static final String[] PickerOperations

PickerOperationsList

public static final List PickerOperationsList

PickerSelectedObjectDataTypes

public static final Class[] PickerSelectedObjectDataTypes

PickerQueryAndTypeLists

public static final String[][] PickerQueryAndTypeLists

CHOICE_TO_SAVE_CONFIG_SPEC_TO_WORKSPACE

public static final String CHOICE_TO_SAVE_CONFIG_SPEC_TO_WORKSPACE
See Also:
Constant Field Values

INVOKED_FROM_CHECKOUTDOWNLOAD_PAGE

public static final String INVOKED_FROM_CHECKOUTDOWNLOAD_PAGE
See Also:
Constant Field Values

EDIT_ONLY_CONFIG_SPEC

public static final String EDIT_ONLY_CONFIG_SPEC
See Also:
Constant Field Values

EDIT_WORKSPACE_OPTIONS_TABS_ACTION

public static final String EDIT_WORKSPACE_OPTIONS_TABS_ACTION
See Also:
Constant Field Values

EDIT_WORKSPACE_CONFIG_SPEC_TABS_ACTION

public static final String EDIT_WORKSPACE_CONFIG_SPEC_TABS_ACTION
See Also:
Constant Field Values

EDIT_CONFIG_SPEC_PAGE_TITLE

public static final String EDIT_CONFIG_SPEC_PAGE_TITLE
See Also:
Constant Field Values

REFERER_SPECIFIED_PAGE_TITLE

public static final String REFERER_SPECIFIED_PAGE_TITLE
See Also:
Constant Field Values

EDIT_WORKSPACE_OPTIONS_HELP_SUFFIX

public static final String EDIT_WORKSPACE_OPTIONS_HELP_SUFFIX
See Also:
Constant Field Values

EDIT_WORKSPACE_CONFIG_SPEC_HELP_SUFFIX

public static final String EDIT_WORKSPACE_CONFIG_SPEC_HELP_SUFFIX
See Also:
Constant Field Values
Constructor Detail

WsConfigSpecEditUtilities

public WsConfigSpecEditUtilities(String action,
                                 HTTPState aHTTPState,
                                 EPMWorkspace workspace)


Supported API: false

Parameters:
action - specifies the action as represented in the action property of the page.
aHTTPState -
workspace - current workspace object
Method Detail

modifyConfigSpec

public ConfigSpec modifyConfigSpec(String buttonSelected)
                            throws WTException
This method modifies the config spec (doc or part) depending upon the valid values entered in the panel and the radio button selection to indicate which type of config spec is to be made active.

Supported API: false

Parameters:
buttonSelected - indicates as which radio button has been selected by user for the config spec
Returns:
ConfigSpec
Throws:
WTException

modifyStandardConfigSpec

public boolean modifyStandardConfigSpec()
creates a new standard or lifecycle-based config spec for parts/documents. Returns true if operation was successful.

Supported API: false

Returns:
boolean

modifyBaselineConfigSpec

public boolean modifyBaselineConfigSpec()
Creates a baseline-based config spec for parts/documents. Returns true if operation was successful.

Supported API: false

Returns:
boolean

modifyEffectivityConfigSpec

public boolean modifyEffectivityConfigSpec()
Creates an effectivity-based config spec for parts/documents. Returns true if operation was successful.

Supported API: false

Returns:
boolean

setDocPanelActive

public void setDocPanelActive(boolean docPanelActive)


Supported API: false

Parameters:
docPanelActive -

setDocPanelActive

public void setDocPanelActive(String action)
Based upon the specified action, set whether doc config spec tab is the current tab

Supported API: false

Parameters:
action - represents the action as passed through the action=xxxx property of the page action.

setNewStandardConfigSpecViewName

public void setNewStandardConfigSpecViewName(String newStandardConfigSpecViewName)


Supported API: false

Parameters:
newStandardConfigSpecViewName -

setNewLifeCycleStateName

public void setNewLifeCycleStateName(String newLifeCycleStateName)


Supported API: false

Parameters:
newLifeCycleStateName -

setNewBaselineNumber

public void setNewBaselineNumber(String newBaselineNumber)


Supported API: false

Parameters:
newBaselineNumber -

setNewEffectivityViewName

public void setNewEffectivityViewName(String newEffectivityViewName)


Supported API: false

Parameters:
newEffectivityViewName -

setNewEffectiveDate

public void setNewEffectiveDate(String newEffectiveDate)


Supported API: false

Parameters:
newEffectiveDate -

setNewConfigurationItemName

public void setNewConfigurationItemName(String newConfigurationItemName)


Supported API: false

Parameters:
newConfigurationItemName -

validateStandardPanelData

public boolean validateStandardPanelData()
validates the data related to "Standard" button in the panel to set WTPartStandardConfigSpec for parts and LifeCycleConfigSpec for documents.

Supported API: false

Returns:
boolean

validateBaselinePanelData

public boolean validateBaselinePanelData()
validates the data related to "Baseline" button in the panel to set WTPartBaselineConfigSpec for parts and BaselineConfigSpec for documents

Supported API: false

Returns:
boolean

validateBaselineForItemPanelData

public boolean validateBaselineForItemPanelData()
validates the data related to "Baseline For Item" button in the panel to set WTPartBaselineConfigSpec for parts and BaselineConfigSpec for documents. This is similar to the validateBaselinePanelData method except that the validation error message could be different here.

Supported API: false

Returns:
boolean

validateEffectivityPanelData

public boolean validateEffectivityPanelData()
validates the data related to "Effectivity" button in the panel to set WTPartEffectivityConfigSpec for parts and EffectivityConfigSpec for documents.

Supported API: false

Returns:
boolean

getViewNameVector

public Vector getViewNameVector()
searches the database for all views and creates a vector of the same.

Supported API: false

Returns:
Vector

getLifeCycleStateNameVector

public Vector getLifeCycleStateNameVector()
creates a vector of lifecycle state names from the enumerated type State

Supported API: false

Returns:
Vector

isDocPanelActive

public boolean isDocPanelActive()
indicates whether the doc config spec for workspace tab is the active tab.

Supported API: false

Returns:
boolean

isDocPanelActive

public static boolean isDocPanelActive(String action)
For the specified action, indicates whether the doc config spec for workspace tab is the active tab.

Supported API: false

Parameters:
action -
Returns:
boolean

isStandardActive

public boolean isStandardActive()
returns whether standard button is active for the config spec of the part or doc

Supported API: false

Returns:
boolean

isBaselineActive

public boolean isBaselineActive()
returns whether baseline (as well as beaseline for item) button is active for the config spec of the part or doc

Supported API: false

Returns:
boolean

isEffectivityActive

public boolean isEffectivityActive()
returns whether effectivity button is active for the config spec of the part or doc

Supported API: false

Returns:
boolean

getCurrentStandardConfigSpecViewName

public String getCurrentStandardConfigSpecViewName()


Supported API: false

Returns:
String

getCurrentLifeCycleStateName

public String getCurrentLifeCycleStateName()


Supported API: false

Returns:
String

getCurrentBaselineNumber

public String getCurrentBaselineNumber()


Supported API: false

Returns:
String

getCurrentEffectivityViewName

public String getCurrentEffectivityViewName()


Supported API: false

Returns:
String

getCurrentEffectiveDate

public String getCurrentEffectiveDate(Locale locale)


Supported API: false

Parameters:
locale -
Returns:
String

getCurrentConfigurationItemName

public String getCurrentConfigurationItemName()


Supported API: false

Returns:
String

getCurrentConfigurationItemTypeValue

public String getCurrentConfigurationItemTypeValue()


Supported API: false

Returns:
String

getValidationMessageKey

public String getValidationMessageKey()
Get the error message code based upon the last call to the validatexxxxxxPanelData method. For example, if the last call was for the validateEffectivityPanelData() method, message code for any error message would be retrieved by this call.

Supported API: false

Returns:
String

init

private void init(HTTPState aHTTPState,
                  EPMWorkspace workspace)
perform all the common initialization here


handleException

private void handleException(Exception e)

getEnableEffectivityForDocuments

private static boolean getEnableEffectivityForDocuments()

formatDate

private String formatDate(Date date,
                          Locale locale)

getCurrentConfigurationItem

public ConfigurationItem getCurrentConfigurationItem()

getCurrentEffectiveContext

public EffContext getCurrentEffectiveContext()

getCurrentEffectivityContextName

public String getCurrentEffectivityContextName()

setNewEffectivityContextName

public void setNewEffectivityContextName(String newName)

getEffectiveContextOID

public String getEffectiveContextOID()

getEffectiveContextOID

public String getEffectiveContextOID(EffContext effContext)

getCurrentEffectiveUnit

public String getCurrentEffectiveUnit()


Supported API: false

Returns:
String

setNewEffectiveUnit

public void setNewEffectiveUnit(String newEffectiveUnit)


Supported API: false

Parameters:
newEffectiveUnit -

initWorkspaceFields

private void initWorkspaceFields(EPMWorkspace workspace)

refreshWorkspace

public void refreshWorkspace(EPMWorkspace workspace)

isEffectiveDateValid

private boolean isEffectiveDateValid(String dateString)

isEffectiveUnitValid

private boolean isEffectiveUnitValid(String unit)

getFormDataValue

private String getFormDataValue(String formDataName)
Get the value from the form data for the specified form data name


getFormData

private Properties getFormData()
Get form data, only once (for performance reasons).


getLocale

private Locale getLocale()

wantChoiceToSaveCSToWs

public boolean wantChoiceToSaveCSToWs()
Check to see whether the referer page has indicated that user should have a choice to save the config spec change to the workspace or not. For example, Checkout page might want to change the config spec just for that user's session and not persist that to the workspace. It would indicate that kind of request through session cookie while submitting for this page.


isEditOnlyConfigSpec

public boolean isEditOnlyConfigSpec()
Check to see whether user has indicated that only edit config spec operation is requested. For example, it might be indicated in the referer page that the Edit General Options page should not be shown to the user.


getRefererSpecifiedPageTitle

public String getRefererSpecifiedPageTitle()
If the referer page has explicitly indicated the page title to be used, get that title.


getFormOrQueryDataParamValue

private String getFormOrQueryDataParamValue(String paramKey)

getSessionOnlyOrWorkspacePartConfigSpec

public static WTPartConfigSpec getSessionOnlyOrWorkspacePartConfigSpec(HTTPState a_HTTPState)
For the FormData of specified HTTPState object, check whether 'session only' WTPartConfigSpec oid is found in the FormData key mappings. If found, return the WTPartConfigSpec for this oid. Else, return the WTPartConfigSpec object for the current workspace.


getSessionOnlyOrWorkspacePartConfigSpec

public static WTPartConfigSpec getSessionOnlyOrWorkspacePartConfigSpec(HTTPState a_HTTPState,
                                                                       EPMWorkspace a_EPMWorkspace)

getSessionOnlyPartConfigSpec

public static WTPartConfigSpec getSessionOnlyPartConfigSpec(HTTPState a_HTTPState)

getSessionOnlyOrWorkspaceDocConfigSpec

public static EPMDocConfigSpec getSessionOnlyOrWorkspaceDocConfigSpec(HTTPState a_HTTPState)
For the FormData of specified HTTPState object, check whether 'session only' EPMDocConfigSpec oid is found in the FormData key mappings. If found, return the EPMDocConfigSpec for this oid. Else, return the EPMDocConfigSpec object for the current workspace.


getSessionOnlyOrWorkspaceDocConfigSpec

public static EPMDocConfigSpec getSessionOnlyOrWorkspaceDocConfigSpec(HTTPState a_HTTPState,
                                                                      EPMWorkspace a_EPMWorkspace)

getSessionOnlyDocConfigSpec

public static EPMDocConfigSpec getSessionOnlyDocConfigSpec(HTTPState a_HTTPState)

getThisSessionOnlyConfigSpec

private static ConfigSpec getThisSessionOnlyConfigSpec(Properties a_FormData,
                                                       String configSpecOidKey)
For the specified FormData object, look for a key mapping for the specified configSpecOidKey. Return the object representation for this oid. This method would be used by the referer page to find out 'for this session only' changed config spec.


redirectToEditWsConfigSpecOptionsPage

public static void redirectToEditWsConfigSpecOptionsPage(HTTPState a_HTTPState,
                                                         EPMWorkspace a_EPMWorkspace,
                                                         Properties onLoadFormState,
                                                         Properties hiddenProperties,
                                                         String refUrl)
Re-direct to the Edit Workspace Config Spec Options page. This method is a convenience method to be used by the launching page to re-direct to the Edit Config Spec page. For example, the Checkout page's task delegate could call this method for going to the Edit Config Spec page. Save the required state information so that the referer page could be rendered with proper state once control comes back to it. For example, when user is done with the Edit Config Spec operation and control goes back to the Checkout page, the Checkout page's state would need to be re-set to it's prior state. The refUrl argument represents the URL of the launching page where control would go back after user is done with the Edit Config Spec operation.


createQueryPropertiesForEditConfigSpec

public static Properties createQueryPropertiesForEditConfigSpec(Properties parameters)
Create a parameters Propeties object for all the key/value pairs to be appended to the URL as query string.


getHelpContext

public String getHelpContext()
Return help context key based editOnlyConficSpec flag. The key's format is:

if editOnlyConficSpec is set to true.

if editOnlyConficSpec is set to false.


redirectToGeneralWsPrefOptionsPage

public static void redirectToGeneralWsPrefOptionsPage(HTTPState a_HTTPState,
                                                      EPMWorkspace a_EPMWorkspace,
                                                      Properties onLoadFormState,
                                                      Properties hiddenProperties,
                                                      String refUrl)

createQueryPropertiesForGeneralOptionPage

public static Properties createQueryPropertiesForGeneralOptionPage(Properties parameters)

isInvokedFromCheckoutDownloadPage

public boolean isInvokedFromCheckoutDownloadPage()

getEffectiveContext

public EffContext getEffectiveContext()
                               throws WTException
Throws:
WTException

findEffectiveContext

protected EffContext findEffectiveContext(String contextName)
                                   throws WTException
Throws:
WTException

getDisplayIdentity

public String getDisplayIdentity(Object obj)

containedInPickerOperationsList

public static boolean containedInPickerOperationsList(String pickerOperation)

indexOfPickerOperationsList

public static int indexOfPickerOperationsList(String pickerOperation)

getPickerQuery

public static String getPickerQuery(String pickerOperation)

getPickerTypeList

public static String getPickerTypeList(String pickerOperation)

isExpectedPickerDataType

public static boolean isExpectedPickerDataType(String pickerOperation,
                                               Object data)

getEffectiveContextFrom

public static EffContext getEffectiveContextFrom(Object obj)

getDefaultTimestamp

private Timestamp getDefaultTimestamp()