@Deprecated public class WorkflowAttributePropertyResolutionServiceImpl extends Object implements WorkflowAttributePropertyResolutionService
Constructor and Description |
---|
WorkflowAttributePropertyResolutionServiceImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected List<Object> |
aardvarkSearchValuesForPaths(Document document,
List<String> paths)
Deprecated.
Pulls values as objects from the document for the given paths
|
protected List<DocumentAttribute> |
aardvarkValuesForSearchingTypeDefinition(Document document,
SearchingTypeDefinition searchingTypeDefinition)
Deprecated.
Pulls SearchableAttributeValue values from the given document for the given searchingTypeDefinition
|
protected void |
addPathValuesToQualifier(Object businessObject,
List<String> paths,
org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker routingAttributes,
Map<String,String> qualifier)
Deprecated.
Aardvarks values out of a business object and puts them into an Map
|
DocumentAttribute |
buildSearchableAttribute(Class<? extends BusinessObject> businessObjectClass,
String attributeKey,
Object value)
Deprecated.
Using the type of the sent in value, determines what kind of SearchableAttributeValue implementation should be passed back
|
protected DocumentAttributeDateTime |
buildSearchableDateTimeAttribute(String attributeKey,
Object value)
Deprecated.
Builds a date time SearchableAttributeValue for the given key and value
|
protected DocumentAttributeInteger |
buildSearchableFixnumAttribute(String attributeKey,
Object value)
Deprecated.
Builds a "integer" SearchableAttributeValue for the given key and value
|
protected DocumentAttributeDecimal |
buildSearchableRealAttribute(String attributeKey,
Object value)
Deprecated.
Builds a "float" SearchableAttributeValue for the given key and value
|
protected DocumentAttributeString |
buildSearchableStringAttribute(String attributeKey,
Object value)
Deprecated.
Our last ditch attempt, this builds a String SearchableAttributeValue for the given key and value
|
protected DocumentAttributeString |
buildSearchableYesNoAttribute(String attributeKey,
Object value)
Deprecated.
This builds a String SearchableAttributeValue for the given key and value, correctly correlating booleans
|
protected List<Map<String,String>> |
cleanCollectionQualifiers(List<Map<String,String>> qualifiers)
Deprecated.
Removes empty Map
|
protected void |
copyQualifications(Map<String,String> source,
Map<String,String> target)
Deprecated.
Copies all the values from one qualifier to another
|
String |
determineFieldDataType(Class<? extends BusinessObject> businessObjectClass,
String attributeName)
Deprecated.
Determines the type of the field which is related to the given attribute name on instances of the given business object class
|
protected void |
flatAdd(Collection c,
Object o)
Deprecated.
Convenience method which makes sure that if the given object is a collection, it is added to the given collection flatly
|
protected BusinessObjectMetaDataService |
getBusinessObjectMetaDataService()
Deprecated.
|
protected Collection |
getCollectionByPath(Object businessObject,
String collectionPath)
Deprecated.
Returns a collection from a path on a business object
|
PersistenceStructureService |
getPersistenceStructureService()
Deprecated.
Gets the persistenceStructureService attribute.
|
Object |
getPropertyByPath(Object object,
String path)
Deprecated.
Retrieves an object, the child of another given object passed in as a parameter, by the given path
|
Collection |
getPropertyOfCollectionByPath(Collection collection,
String path)
Deprecated.
Finds a child object, specified by the given path, on each object of the given collection
|
protected String[] |
headAndTailPath(String path)
Deprecated.
Splits the first property off from a path, leaving the tail
|
Collection |
makeNewCollectionOfSameType(Collection collection)
Deprecated.
Makes a new collection of exactly the same type of the collection that was handed to it
|
protected List<Map<String,String>> |
resolveDocumentCollectionPath(Object businessObject,
DocumentCollectionPath collectionPath,
org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker routingAttributeTracker)
Deprecated.
Resolves document values from a collection path on a given business object
|
protected List<Map<String,String>> |
resolveDocumentValuePath(Object businessObject,
DocumentValuePathGroup group,
org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker routingAttributeTracker)
Deprecated.
Resolves all of the values in the given DocumentValuePathGroup from the given BusinessObject
|
List<Map<String,String>> |
resolveRoutingTypeQualifiers(Document document,
RoutingTypeDefinition routingTypeDefinition)
Deprecated.
Using the proper RoutingTypeDefinition for the current routing node of the document, aardvarks out the proper routing type qualifiers
|
List<DocumentAttribute> |
resolveSearchableAttributeValues(Document document,
WorkflowAttributes workflowAttributes)
Deprecated.
Resolves all of the searching values to index for the given document, returning a list of SearchableAttributeValue implementations
|
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Deprecated.
Sets the persistenceStructureService attribute value.
|
public WorkflowAttributePropertyResolutionServiceImpl()
public List<Map<String,String>> resolveRoutingTypeQualifiers(Document document, RoutingTypeDefinition routingTypeDefinition)
resolveRoutingTypeQualifiers
in interface WorkflowAttributePropertyResolutionService
document
- the document to gather data fromprotected List<Map<String,String>> resolveDocumentValuePath(Object businessObject, DocumentValuePathGroup group, org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker routingAttributeTracker)
businessObject
- the business object which is the source of valuesgroup
- the DocumentValuePathGroup which tells us which values we wantprotected List<Map<String,String>> resolveDocumentCollectionPath(Object businessObject, DocumentCollectionPath collectionPath, org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker routingAttributeTracker)
businessObject
- the business object which has a collection, each element of which is a source of valuescollectionPath
- the information about what values to pull from each element of the collectionprotected Collection getCollectionByPath(Object businessObject, String collectionPath)
businessObject
- the business object to get values fromcollectionPath
- the path to that collectionprotected void addPathValuesToQualifier(Object businessObject, List<String> paths, org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker routingAttributes, Map<String,String> qualifier)
businessObject
- the business object to get values frompaths
- the paths of values to get from the qualifierroutingAttributes
- the RoutingAttribute associated with this qualifier's document valuequalifier
- the qualifier to put values intoprotected void copyQualifications(Map<String,String> source, Map<String,String> target)
source
- the source of valuestarget
- the place to write all the values topublic List<DocumentAttribute> resolveSearchableAttributeValues(Document document, WorkflowAttributes workflowAttributes)
resolveSearchableAttributeValues
in interface WorkflowAttributePropertyResolutionService
document
- the document to find indexable searchable attribute values forworkflowAttributes
- the WorkflowAttributes data dictionary metadata which contains the searchable attributes to indexprotected List<DocumentAttribute> aardvarkValuesForSearchingTypeDefinition(Document document, SearchingTypeDefinition searchingTypeDefinition)
document
- the document to get search values fromsearchingTypeDefinition
- the current SearchingTypeDefinition to find values forprotected List<Object> aardvarkSearchValuesForPaths(Document document, List<String> paths)
document
- the document to pull values frompaths
- the property paths to pull valuesprotected List<Map<String,String>> cleanCollectionQualifiers(List<Map<String,String>> qualifiers)
qualifiers
- a List of Mappublic String determineFieldDataType(Class<? extends BusinessObject> businessObjectClass, String attributeName)
WorkflowAttributePropertyResolutionService
determineFieldDataType
in interface WorkflowAttributePropertyResolutionService
businessObjectClass
- the class of the business object which has an attributeattributeName
- the name of the attributepublic DocumentAttribute buildSearchableAttribute(Class<? extends BusinessObject> businessObjectClass, String attributeKey, Object value)
buildSearchableAttribute
in interface WorkflowAttributePropertyResolutionService
attributeKey
- value
- protected DocumentAttributeDateTime buildSearchableDateTimeAttribute(String attributeKey, Object value)
attributeKey
- the key for the searchable attributevalue
- the value that will be coerced to date/time dataprotected DocumentAttributeDecimal buildSearchableRealAttribute(String attributeKey, Object value)
attributeKey
- the key for the searchable attributevalue
- the value that will be coerced to "float" dataprotected DocumentAttributeInteger buildSearchableFixnumAttribute(String attributeKey, Object value)
attributeKey
- the key for the searchable attributevalue
- the value that will be coerced to "integer" type dataprotected DocumentAttributeString buildSearchableStringAttribute(String attributeKey, Object value)
attributeKey
- the key for the searchable attributevalue
- the value that will be coerced to a Stringprotected DocumentAttributeString buildSearchableYesNoAttribute(String attributeKey, Object value)
attributeKey
- the key for the searchable attributevalue
- the value that will be coerced to a Stringpublic Object getPropertyByPath(Object object, String path)
WorkflowAttributePropertyResolutionService
getPropertyByPath
in interface WorkflowAttributePropertyResolutionService
object
- an object to find a child object ofpath
- the path to that child objectpublic Collection getPropertyOfCollectionByPath(Collection collection, String path)
collection
- the collection of objectspath
- the path of the property to retrievepublic Collection makeNewCollectionOfSameType(Collection collection)
collection
- the collection to make a new collection of the same type asprotected String[] headAndTailPath(String path)
path
- the path to splitprotected void flatAdd(Collection c, Object o)
c
- a collection, ready to be added too
- an object of dubious typepublic PersistenceStructureService getPersistenceStructureService()
public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
persistenceStructureService
- The persistenceStructureService to set.protected BusinessObjectMetaDataService getBusinessObjectMetaDataService()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.