Class AbstractListChangeItemTableViews
java.lang.Object
com.ptc.core.htmlcomp.tableview.AbstractConfigurableTable
com.ptc.core.htmlcomp.components.JCAConfigurableTable
com.ptc.windchill.enterprise.change2.tableViews.ChangeTableViews
com.ptc.windchill.enterprise.change2.tableViews.list.AbstractListChangeItemTableViews
- All Implemented Interfaces:
com.ptc.core.htmlcomp.components.JCAMappable,ConfigurableTable,com.ptc.core.htmlcomp.tableview.FreezableConfigurableTable,com.ptc.core.htmlcomp.tableview.RuntimeTableViewHolder
- Direct Known Subclasses:
ListChangeNoticesTableViews,ListChangeRequestsTableViews,ListProblemReportsTableViews,ListVariancesTableViews
Abstract class to support the view definitions of the Change tables which
appear under the change tab. This class currently supports the Problem
Reports, Change Requests and Change Notices tables however could be
subclasses to support additional tables. These table view classes would be
called by the listChangeItems.xml TAG.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ptc.core.htmlcomp.tableview.ConfigurableTable
ConfigurableTable.ContextTypeForCustomize -
Field Summary
Fields inherited from class com.ptc.windchill.enterprise.change2.tableViews.ChangeTableViews
ALL_VIEW, CADDOC_VIEW, CHOICE_VIEW, criteria, DOCUMENTS_VIEW, DYNAMICDOC_VIEW, NOTES_VIEW, OPTIONSET_VIEW, PARTS_VIEW, PROCESSPLAN_VIEW, REQUIREMENTS_VIEW, RESOURCE_VIEW, tableId, VARSPEC_VIEWFields inherited from class com.ptc.core.htmlcomp.tableview.AbstractConfigurableTable
ALL_REV_ITER_KEY, LATEST_REV_ITER_KEYFields inherited from interface com.ptc.core.htmlcomp.tableview.ConfigurableTable
TABLE_TITLE -
Method Summary
Modifier and TypeMethodDescriptionabstract Class<?>[]Method to get an Array of Class types for the table views.getDefaultColumns(String viewName) Abstract method to return columnIds for the view
Supported API: trueMethod to get the default column to sort on table views.protected abstract StringgetDefaultViewDescription(String viewName) Provide the description for the default view.protected StringgetGeneratedDefaultViewDescription(String type, String viewName) Provide the generated description for a specific view and type.protected StringgetGeneratedDefaultViewDescription(String type, String viewName, Class<?> primaryResourceClass, String primaryResource) Provide the generated description for a specific view and type.getGeneratedViewName(String type, String viewName) Provide the generated name for a specific view and type.abstract StringProvide a label that describes the table which these table views belong.Retrieve the locked columns for the table view.protected com.ptc.core.htmlcomp.tableview.TableViewCriterionCriteria for the non-resolved change objects.abstract StringProvide the out of the box active view name.getOOTBTableViews(String tableId, Locale locale) Sets the default table view and returns a list of out of the box table views.abstract StringgetOOTBViewName(String viewName) Provide the out of the box view name for the defined view name.Methods inherited from class com.ptc.windchill.enterprise.change2.tableViews.ChangeTableViews
createCommonTableViews, createTableView, createTableView, getChangeableClasses, getChangeableClassesSet, getChangeSpecialTableColumns, getCriteria, getInitialCriteria, getObjTypeKey, getTableId, getTableViewDescriptor, isColumnLocked, setCriteria, setDefaultSortColumnOrder, setTableIdMethods inherited from class com.ptc.core.htmlcomp.components.JCAConfigurableTable
getMessageSource, isFreezable, isMappingEnabledMethods inherited from class com.ptc.core.htmlcomp.tableview.AbstractConfigurableTable
getActionStatusAttrDef, getAdvRevisionAllCriterion, getAdvRevisionAttrDef, getAdvRevisionLatestCriterion, getAdvVersionAllCriterion, getAdvVersionAttrDef, getAdvVersionLatestCriterion, getAttributeOnlyClassTypes, getChangeStatusAttrDef, getContextProperties, getContextProperty, getLocalStatusAttrDef, getMessageStatusAttrDef, getNewOrganizationAttrDef, getOrganizationAttrDef, getRuntimeTableView, getSandboxStatusAttrDef, getServerStatusAttrDef, getStatusColumnsAttributeDefinitions, getStatusColumnsAttributeDefinitions, getStatusColumnsTableColumnDefinitions, getStatusColumnsTableColumnDefinitions, getViewResourceEntryKey, getWsContentStatusAttrDef, isDefaultSortingAscending, setContextProperties, setRuntimeTableView, showChooseItemTypesStep, showFilteringStep, showSetColumnsStep, showSetNameStep, showSortingStep, useBusinessFieldsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ptc.core.htmlcomp.tableview.ConfigurableTable
getAttributeOnlyClassTypes, getContextProperties, getContextProperty, getContextTypeForTableView, isDefaultSortingAscending, isLocalAttributesSupported, setContextProperties, showChooseItemTypesStep, showFilteringStep, showSetColumnsStep, showSetNameStep, showSortingStep, useBusinessFields
-
Method Details
-
getClassTypes
Method to get an Array of Class types for the table views.
Supported API: true- Specified by:
getClassTypesin interfaceConfigurableTable- Specified by:
getClassTypesin classChangeTableViews- Returns:
- Class[] Returns an Array of Class types for the table views.
-
getOOTBTableViews
Sets the default table view and returns a list of out of the box table views. The following views will be created:- All Open
- Created by Me
- Last 7 days
- Last 30 days
- Last 90 days
Supported API: true- Specified by:
getOOTBTableViewsin interfaceConfigurableTable- Specified by:
getOOTBTableViewsin classChangeTableViews- Parameters:
tableId- Passes in the table idlocale- Passes in the Locale- Returns:
- result Return a list of out of the box table views.
- Throws:
WTException- Error thrown during execution.
Supported API: true
-
getNonResolvedCriteria
protected com.ptc.core.htmlcomp.tableview.TableViewCriterion getNonResolvedCriteria() throws WTExceptionCriteria for the non-resolved change objects. By default, for Problem Reports, Change Requests and Change Notices the criteria will be to look for the "resolutionDate" as empty. Other objects (or different support) can be implemented by overloading this API.
Supported API: true- Returns:
- table view criterion
- Throws:
WTException
-
getOOTBActiveViewName
Provide the out of the box active view name.
Supported API: true- Specified by:
getOOTBActiveViewNamein interfaceConfigurableTable- Overrides:
getOOTBActiveViewNamein classChangeTableViews- Returns:
- String The active view name
-
getOOTBViewName
Provide the out of the box view name for the defined view name.
Supported API: true- Parameters:
viewName- The name of the view (for example "ALL_OPEN")- Returns:
- the string representing the view
- See Also:
-
getGeneratedViewName
Provide the generated name for a specific view and type. Will attempt to retrieve the view name from thelistResourceusing the form:<type>_<viewName>_NAME. If this resource does not exist it will look for a resource entry for:<viewName>_NAME. Finally if this is not resolved the view name will be returned as the fully qualified path to the resource bundlelistResourceplus theviewNameand the text_NAMEon the end.
Supported API: true- Parameters:
type- The text "type" to check for in the resource bundle. An example might beCHANGE_REQUEST.viewName- The name of the view to get the generated view name for. For exampleALL_OPEN.- Returns:
- the Generated view name string.
-
getDefaultSortColumn
Method to get the default column to sort on table views.
Supported API: true- Specified by:
getDefaultSortColumnin interfaceConfigurableTable- Overrides:
getDefaultSortColumnin classChangeTableViews- Returns:
- String Returns the default column to sort on table views.
-
getDefaultViewDescription
Provide the description for the default view.
Supported API: true- Overrides:
getDefaultViewDescriptionin classChangeTableViews- Parameters:
viewName- The locale for the description.- Returns:
- String The default description for the view.
-
getGeneratedDefaultViewDescription
Provide the generated description for a specific view and type. The view name is typically encoded at this point from the output ofgetGeneratedViewName( )so several operations are required to be perform on the view in order for the description to be determined correctly. The implementedgetDefaultViewDescription()should simply call this method by assigning thetypein any subclass.
Will attempt to retrieve the view description from thelistResourceusing the form:<type>_<short_viewName>_DESCRIPTION. If this resource does not exist it will look for a resource entry for:<viewName>_DESCRIPTION. Finally if this is not resolved the view description will be returned as the fully qualified path to the resource bundlelistResourceplus theviewNameand the text_DESCRIPTIONon the end.
Supported API: true- Parameters:
type- The text "type" to check for in the resource bundle. An example might beCHANGE_REQUEST.viewName- The name of the view to get the generated view description for.- Returns:
- the Generated view description string.
- See Also:
-
getGeneratedDefaultViewDescription
protected String getGeneratedDefaultViewDescription(String type, String viewName, Class<?> primaryResourceClass, String primaryResource) Provide the generated description for a specific view and type. The view name is typically encoded at this point from the output ofgetGeneratedViewName( )so several operations are required to be perform on the view in order for the description to be determined correctly. The implementedgetDefaultViewDescription()should simply call this method by assigning thetypein any subclass.
Will attempt to retrieve the view description from thelistResourceusing the form:<type>_<short_viewName>_DESCRIPTION. If this resource does not exist it will look for a resource entry for:<viewName>_DESCRIPTION. Finally if this is not resolved the view description will be returned as the fully qualified path to the resource bundlelistResourceplus theviewNameand the text_DESCRIPTIONon the end.
Supported API: true- Parameters:
type- The text "type" to check for in the resource bundle. An example might beCHANGE_REQUEST.viewName- The name of the view to get the generated view description for.primaryResourceClass- The primary resource classprimaryResource- The primary resource bundle location- Returns:
- the Generated view description string.
- See Also:
-
getLockedColumns
Retrieve the locked columns for the table view.
Supported API: true- Specified by:
getLockedColumnsin classChangeTableViews- Returns:
- Mapinvalid input: '<'String,Boolean> Ordered Map of column Ids and whether it is locked.
-
getDefaultColumns
Abstract method to return columnIds for the view
Supported API: true- Parameters:
locale- Passes in the viewName- Returns:
- List Returns a list of columnIds
-
getLabel
Provide a label that describes the table which these table views belong.
Supported API: true- Specified by:
getLabelin interfaceConfigurableTable- Specified by:
getLabelin classChangeTableViews- Parameters:
locale- Passes in the Locale- Returns:
- String Returns the label for the table views.
-