Interface DataDictionaryMapper
- All Known Implementing Classes:
DataDictionaryIndexMapper
public interface DataDictionaryMapper
Maps one Document type to other document Type.
This interface can be used to implement KNS to workflow document type
mapping relationships other than one-to-one.
- Author:
- mpk35
-
Method Summary
Modifier and TypeMethodDescriptiongetAllInactivationBlockingMetadatas(DataDictionaryIndex index, Class<?> blockedClass) Deprecated.Deprecated.getBusinessObjectEntry(DataDictionaryIndex index, String className) Deprecated.getBusinessObjectEntryForConcreteClass(DataDictionaryIndex index, String className) Deprecated.getDataObjectEntry(DataDictionaryIndex index, String className) getDataObjectEntryForConcreteClass(DataDictionaryIndex index, String className) This method gets the DataOjectEntry (or subclass) for a concrete classgetDictionaryObjectEntry(DataDictionaryIndex index, String className) getDocumentEntry(DataDictionaryIndex index, String documentTypeDDKey) Returns the KNS document entry for the given lookup key.getDocumentTypeName(DataDictionaryIndex index, String documentTypeName) Returns mapped document type based on the given document type.getImmutableViewById(UifDictionaryIndex index, String viewId) Gets a view instance from the pool or factory but does not replace the view, meant for view readonly access (not running the lifecycle but just checking configuration)getMaintenanceDocumentEntryForBusinessObjectClass(DataDictionaryIndex index, Class<?> businessObjectClass) Note: only MaintenanceDocuments are indexed by businessObject Class This is a special case that is referenced in one location.getViewById(UifDictionaryIndex index, String viewId) Returns the View entry identified by the given idgetViewByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Called to retrieve aViewinstance that is of the given type based on the index keygetViewIdByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Returns the view id for the view that matches the given view type and indexorg.springframework.beans.PropertyValuesgetViewPropertiesById(UifDictionaryIndex index, String viewId) Retrieves the configured property values for the view bean definition associated with the given idorg.springframework.beans.PropertyValuesgetViewPropertiesByType(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Retrieves the configured property values for the view bean definition associated with the given type and indexgetViewsForType(UifDictionaryIndex index, UifConstants.ViewType viewTypeName) Gets allViewprototypes configured for the given view type namebooleanviewByTypeExist(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Indicates whether aViewexists for the given view type and index information
-
Method Details
-
getBusinessObjectEntryForConcreteClass
@Deprecated BusinessObjectEntry getBusinessObjectEntryForConcreteClass(DataDictionaryIndex index, String className) Deprecated.This method gets the business object entry for a concrete class- Parameters:
className-- Returns:
- business object entry
-
getDataObjectEntryForConcreteClass
This method gets the DataOjectEntry (or subclass) for a concrete class- Parameters:
className-- Returns:
- the DataObjectEntry for the class or null if not found
-
getBusinessObjectClassNames
Deprecated.- Returns:
- List of businessObject classnames
-
getBusinessObjectEntry
Deprecated.- Parameters:
className-- Returns:
- BusinessObjectEntry for the named class, or null if none exists
-
getDataObjectEntry
- Parameters:
className-- Returns:
- DataObjectEntry for the named class, or null if none exists
-
getBusinessObjectEntries
Deprecated.- Returns:
- Map of (classname, BusinessObjectEntry) pairs
-
getDataObjectEntries
- Returns:
- Map of (classname, DataObjectEntry) pairs
-
getDictionaryObjectEntry
- Parameters:
className-- Returns:
- DataDictionaryEntryBase for the named class, or null if none exists
-
getDocumentEntry
Returns the KNS document entry for the given lookup key. The documentTypeDDKey is interpreted successively in the following ways until a mapping is found (or none if found):- KEW/workflow document type
- business object class name
- maintainable class name
- Parameters:
documentTypeDDKey- the KEW/workflow document type name- Returns:
- the KNS DocumentEntry if it exists
-
getMaintenanceDocumentEntryForBusinessObjectClass
MaintenanceDocumentEntry getMaintenanceDocumentEntryForBusinessObjectClass(DataDictionaryIndex index, Class<?> businessObjectClass) Note: only MaintenanceDocuments are indexed by businessObject Class This is a special case that is referenced in one location. Do we need another map for this stuff??- Parameters:
businessObjectClass-- Returns:
- DocumentEntry associated with the given Class, or null if there is none
-
getDocumentEntries
-
getAllInactivationBlockingMetadatas
Set<InactivationBlockingMetadata> getAllInactivationBlockingMetadatas(DataDictionaryIndex index, Class<?> blockedClass) -
getDocumentTypeName
Returns mapped document type based on the given document type.- Parameters:
index- data dictionary indexdocumentTypeName- document type name to check for- Returns:
- new document type or null if given documentType was not found.
-
getViewById
Returns the View entry identified by the given id- Parameters:
index- - the view dictionary indexviewId- - unique id for view- Returns:
- View instance associated with the id
-
getImmutableViewById
Gets a view instance from the pool or factory but does not replace the view, meant for view readonly access (not running the lifecycle but just checking configuration)- Parameters:
index- the view dictionary indexviewId- the unique id for the view- Returns:
- View instance with the given id
-
getViewByTypeIndex
View getViewByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Called to retrieve aViewinstance that is of the given type based on the index key- Parameters:
index- - the view dictionary indexviewTypeName- - type name for the viewindexKey- - Map of index key parameters, these are the parameters the indexer used to index the view initially and needs to identify an unique view instance- Returns:
- View instance that matches the given index
-
getViewIdByTypeIndex
String getViewIdByTypeIndex(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Returns the view id for the view that matches the given view type and index- Parameters:
index- the view dictionary indexviewTypeName- type name for the viewindexKey- Map of index key parameters, these are the parameters the indexer used to index the view initially and needs to identify an unique view instance- Returns:
- id for the view that matches the view type and index or null if a match is not found
-
viewByTypeExist
boolean viewByTypeExist(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Indicates whether aViewexists for the given view type and index information- Parameters:
index- - the view dictionary indexviewTypeName- - type name for the viewindexKey- - Map of index key parameters, these are the parameters the indexer used to index the view initially and needs to identify an unique view instance- Returns:
- boolean true if view exists, false if not
-
getViewsForType
Gets allViewprototypes configured for the given view type name- Parameters:
index- - the view dictionary indexviewTypeName- - view type name to retrieve- Returns:
- List<View> view prototypes with the given type name, or empty list
-
getViewPropertiesById
org.springframework.beans.PropertyValues getViewPropertiesById(UifDictionaryIndex index, String viewId) Retrieves the configured property values for the view bean definition associated with the given idSince constructing the View object can be expensive, when metadata only is needed this method can be used to retrieve the configured property values. Note this looks at the merged bean definition
- Parameters:
index- - the view dictionary indexviewId- - id for the view to retrieve- Returns:
- PropertyValues configured on the view bean definition, or null if view is not found
-
getViewPropertiesByType
org.springframework.beans.PropertyValues getViewPropertiesByType(UifDictionaryIndex index, UifConstants.ViewType viewTypeName, Map<String, String> indexKey) Retrieves the configured property values for the view bean definition associated with the given type and indexSince constructing the View object can be expensive, when metadata only is needed this method can be used to retrieve the configured property values. Note this looks at the merged bean definition
- Parameters:
index- - the view dictionary indexviewTypeName- - type name for the viewindexKey- - Map of index key parameters, these are the parameters the indexer used to index the view initially and needs to identify an unique view instance- Returns:
- PropertyValues configured on the view bean definition, or null if view is not found
-