|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.wsoption.WsConfigSpecEditUtilities
Provides generic operations for editing part and doc config spec of a
workapce.
Supported API: false
Extendable: false
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 |
private static final String RESOURCE
private static final String CLASSNAME
public static final String STANDARD_BUTTON_SELECTED
public static final String BASELINE1_BUTTON_SELECTED
public static final String BASELINE2_BUTTON_SELECTED
public static final String EFFECTIVITY_BUTTON_SELECTED
private boolean docPanelActive
private String newStandardConfigSpecViewName
private String newLifeCycleStateName
private String newBaselineNumber
private String newEffectivityViewName
private String newEffectiveDate
private String newConfigurationItemName
private String newEffectivityContextName
private WTPartConfigSpec currentPartConfigSpec
private EPMDocConfigSpec currentDocConfigSpec
private WTPartConfigSpec newPartConfigSpec
private EPMDocConfigSpec newDocConfigSpec
private String validationMessageKey
private HTTPState theHTTPState
private Properties formData
private String newEffectiveUnit
private static boolean VERBOSE
static boolean enableEffectivityForDocuments
public static final String PART_CONFIG_SPEC_OID
public static final String DOC_CONFIG_SPEC_OID
public static final String[] PickerOperations
public static final List PickerOperationsList
public static final Class[] PickerSelectedObjectDataTypes
public static final String[][] PickerQueryAndTypeLists
public static final String CHOICE_TO_SAVE_CONFIG_SPEC_TO_WORKSPACE
public static final String INVOKED_FROM_CHECKOUTDOWNLOAD_PAGE
public static final String EDIT_ONLY_CONFIG_SPEC
public static final String EDIT_WORKSPACE_OPTIONS_TABS_ACTION
public static final String EDIT_WORKSPACE_CONFIG_SPEC_TABS_ACTION
public static final String EDIT_CONFIG_SPEC_PAGE_TITLE
public static final String REFERER_SPECIFIED_PAGE_TITLE
public static final String EDIT_WORKSPACE_OPTIONS_HELP_SUFFIX
public static final String EDIT_WORKSPACE_CONFIG_SPEC_HELP_SUFFIX
Constructor Detail |
public WsConfigSpecEditUtilities(String action, HTTPState aHTTPState, EPMWorkspace workspace)
action
- specifies the action as represented in the action property of the page.aHTTPState
- workspace
- current workspace objectMethod Detail |
public ConfigSpec modifyConfigSpec(String buttonSelected) throws WTException
buttonSelected
- indicates as which radio button has been selected by user for the config spec
WTException
public boolean modifyStandardConfigSpec()
public boolean modifyBaselineConfigSpec()
public boolean modifyEffectivityConfigSpec()
public void setDocPanelActive(boolean docPanelActive)
docPanelActive
- public void setDocPanelActive(String action)
action
- represents the action as passed through the action=xxxx property of the page action.public void setNewStandardConfigSpecViewName(String newStandardConfigSpecViewName)
newStandardConfigSpecViewName
- public void setNewLifeCycleStateName(String newLifeCycleStateName)
newLifeCycleStateName
- public void setNewBaselineNumber(String newBaselineNumber)
newBaselineNumber
- public void setNewEffectivityViewName(String newEffectivityViewName)
newEffectivityViewName
- public void setNewEffectiveDate(String newEffectiveDate)
newEffectiveDate
- public void setNewConfigurationItemName(String newConfigurationItemName)
newConfigurationItemName
- public boolean validateStandardPanelData()
public boolean validateBaselinePanelData()
public boolean validateBaselineForItemPanelData()
public boolean validateEffectivityPanelData()
public Vector getViewNameVector()
public Vector getLifeCycleStateNameVector()
public boolean isDocPanelActive()
public static boolean isDocPanelActive(String action)
action
-
public boolean isStandardActive()
public boolean isBaselineActive()
public boolean isEffectivityActive()
public String getCurrentStandardConfigSpecViewName()
public String getCurrentLifeCycleStateName()
public String getCurrentBaselineNumber()
public String getCurrentEffectivityViewName()
public String getCurrentEffectiveDate(Locale locale)
locale
-
public String getCurrentConfigurationItemName()
public String getCurrentConfigurationItemTypeValue()
public String getValidationMessageKey()
private void init(HTTPState aHTTPState, EPMWorkspace workspace)
private void handleException(Exception e)
private static boolean getEnableEffectivityForDocuments()
private String formatDate(Date date, Locale locale)
public ConfigurationItem getCurrentConfigurationItem()
public EffContext getCurrentEffectiveContext()
public String getCurrentEffectivityContextName()
public void setNewEffectivityContextName(String newName)
public String getEffectiveContextOID()
public String getEffectiveContextOID(EffContext effContext)
public String getCurrentEffectiveUnit()
public void setNewEffectiveUnit(String newEffectiveUnit)
newEffectiveUnit
- private void initWorkspaceFields(EPMWorkspace workspace)
public void refreshWorkspace(EPMWorkspace workspace)
private boolean isEffectiveDateValid(String dateString)
private boolean isEffectiveUnitValid(String unit)
private String getFormDataValue(String formDataName)
private Properties getFormData()
private Locale getLocale()
public boolean wantChoiceToSaveCSToWs()
public boolean isEditOnlyConfigSpec()
public String getRefererSpecifiedPageTitle()
private String getFormOrQueryDataParamValue(String paramKey)
public static WTPartConfigSpec getSessionOnlyOrWorkspacePartConfigSpec(HTTPState a_HTTPState)
public static WTPartConfigSpec getSessionOnlyOrWorkspacePartConfigSpec(HTTPState a_HTTPState, EPMWorkspace a_EPMWorkspace)
public static WTPartConfigSpec getSessionOnlyPartConfigSpec(HTTPState a_HTTPState)
public static EPMDocConfigSpec getSessionOnlyOrWorkspaceDocConfigSpec(HTTPState a_HTTPState)
public static EPMDocConfigSpec getSessionOnlyOrWorkspaceDocConfigSpec(HTTPState a_HTTPState, EPMWorkspace a_EPMWorkspace)
public static EPMDocConfigSpec getSessionOnlyDocConfigSpec(HTTPState a_HTTPState)
private static ConfigSpec getThisSessionOnlyConfigSpec(Properties a_FormData, String configSpecOidKey)
public static void redirectToEditWsConfigSpecOptionsPage(HTTPState a_HTTPState, EPMWorkspace a_EPMWorkspace, Properties onLoadFormState, Properties hiddenProperties, String refUrl)
public static Properties createQueryPropertiesForEditConfigSpec(Properties parameters)
public String getHelpContext()
public static void redirectToGeneralWsPrefOptionsPage(HTTPState a_HTTPState, EPMWorkspace a_EPMWorkspace, Properties onLoadFormState, Properties hiddenProperties, String refUrl)
public static Properties createQueryPropertiesForGeneralOptionPage(Properties parameters)
public boolean isInvokedFromCheckoutDownloadPage()
public EffContext getEffectiveContext() throws WTException
WTException
protected EffContext findEffectiveContext(String contextName) throws WTException
WTException
public String getDisplayIdentity(Object obj)
public static boolean containedInPickerOperationsList(String pickerOperation)
public static int indexOfPickerOperationsList(String pickerOperation)
public static String getPickerQuery(String pickerOperation)
public static String getPickerTypeList(String pickerOperation)
public static boolean isExpectedPickerDataType(String pickerOperation, Object data)
public static EffContext getEffectiveContextFrom(Object obj)
private Timestamp getDefaultTimestamp()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |