|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl
public class WorkflowAttributePropertyResolutionServiceImpl
The default implementation of the WorkflowAttributePropertyResolutionServiceImpl
| Constructor Summary | |
|---|---|
WorkflowAttributePropertyResolutionServiceImpl()
|
|
| Method Summary | |
|---|---|
protected List<Object> |
aardvarkSearchValuesForPaths(Document document,
List<String> paths)
Pulls values as objects from the document for the given paths |
protected List<SearchableAttributeValue> |
aardvarkValuesForSearchingTypeDefinition(Document document,
SearchingTypeDefinition searchingTypeDefinition)
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,
AttributeSet qualifier)
Aardvarks values out of a business object and puts them into an AttributeSet, based on a List of paths |
SearchableAttributeValue |
buildSearchableAttribute(Class<? extends BusinessObject> businessObjectClass,
String attributeKey,
Object value)
Using the type of the sent in value, determines what kind of SearchableAttributeValue implementation should be passed back |
protected SearchableAttributeDateTimeValue |
buildSearchableDateTimeAttribute(String attributeKey,
Object value)
Builds a date time SearchableAttributeValue for the given key and value |
protected SearchableAttributeLongValue |
buildSearchableFixnumAttribute(String attributeKey,
Object value)
Builds a "integer" SearchableAttributeValue for the given key and value |
protected SearchableAttributeFloatValue |
buildSearchableRealAttribute(String attributeKey,
Object value)
Builds a "float" SearchableAttributeValue for the given key and value |
protected SearchableAttributeStringValue |
buildSearchableStringAttribute(String attributeKey,
Object value)
Our last ditch attempt, this builds a String SearchableAttributeValue for the given key and value |
protected SearchableAttributeStringValue |
buildSearchableYesNoAttribute(String attributeKey,
Object value)
This builds a String SearchableAttributeValue for the given key and value, correctly correlating booleans |
protected List<AttributeSet> |
cleanCollectionQualifiers(List<AttributeSet> qualifiers)
Removes empty AttributeSets from the given List of qualifiers |
protected void |
copyQualifications(AttributeSet source,
AttributeSet target)
Copies all the values from one qualifier to another |
String |
determineFieldDataType(Class<? extends BusinessObject> businessObjectClass,
String attributeName)
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)
Convenience method which makes sure that if the given object is a collection, it is added to the given collection flatly |
protected BusinessObjectMetaDataService |
getBusinessObjectMetaDataService()
|
protected Collection |
getCollectionByPath(BusinessObject businessObject,
String collectionPath)
Returns a collection from a path on a business object |
PersistenceStructureService |
getPersistenceStructureService()
Gets the persistenceStructureService attribute. |
Object |
getPropertyByPath(Object object,
String path)
Retrieves an object, the child of another given object passed in as a parameter, by the given path |
Collection |
getPropertyOfCollectionByPath(Collection collection,
String path)
Finds a child object, specified by the given path, on each object of the given collection |
protected String[] |
headAndTailPath(String path)
Splits the first property off from a path, leaving the tail |
protected boolean |
isBooleanable(Class clazz)
Determines if the given class is enough like a boolean, to index it as a String "Y" or "N" |
protected boolean |
isDateLike(Class clazz)
Determines if the given class is enough like a date to store values of it as a SearchableAttributeDateTimeValue |
protected boolean |
isDecimaltastic(Class clazz)
Determines if the given class is enough like a Float to store values of it as a SearchableAttributeFloatValue |
protected boolean |
isIntsy(Class clazz)
Determines if the given class is enough like a "long" to store values of it as a SearchableAttributeLongValue |
protected boolean |
isStringy(Class clazz)
Determines if the given Class is a String |
Collection |
makeNewCollectionOfSameType(Collection collection)
Makes a new collection of exactly the same type of the collection that was handed to it |
protected List<AttributeSet> |
resolveDocumentCollectionPath(BusinessObject businessObject,
DocumentCollectionPath collectionPath,
org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker routingAttributeTracker)
Resolves document values from a collection path on a given business object |
protected List<AttributeSet> |
resolveDocumentValuePath(BusinessObject businessObject,
DocumentValuePathGroup group,
org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker routingAttributeTracker)
Resolves all of the values in the given DocumentValuePathGroup from the given BusinessObject |
List<AttributeSet> |
resolveRoutingTypeQualifiers(Document document,
RoutingTypeDefinition routingTypeDefinition)
Using the proper RoutingTypeDefinition for the current routing node of the document, aardvarks out the proper routing type qualifiers |
List<SearchableAttributeValue> |
resolveSearchableAttributeValues(Document document,
WorkflowAttributes workflowAttributes)
Resolves all of the searching values to index for the given document, returning a list of SearchableAttributeValue implementations |
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Sets the persistenceStructureService attribute value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkflowAttributePropertyResolutionServiceImpl()
| Method Detail |
|---|
public List<AttributeSet> resolveRoutingTypeQualifiers(Document document,
RoutingTypeDefinition routingTypeDefinition)
resolveRoutingTypeQualifiers in interface WorkflowAttributePropertyResolutionServicedocument - the document to gather data from
org.kuali.kfs.sys.document.service.WorkflowAttributePropertyResolutionService#resolveRoutingTypeQualifiers(Document, RoutingTypeDefinition)
protected List<AttributeSet> resolveDocumentValuePath(BusinessObject 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 want
protected List<AttributeSet> resolveDocumentCollectionPath(BusinessObject 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 collection
protected Collection getCollectionByPath(BusinessObject businessObject,
String collectionPath)
businessObject - the business object to get values fromcollectionPath - the path to that collection
protected void addPathValuesToQualifier(Object businessObject,
List<String> paths,
org.kuali.rice.kns.workflow.service.impl.WorkflowAttributePropertyResolutionServiceImpl.RoutingAttributeTracker routingAttributes,
AttributeSet qualifier)
businessObject - the business object to get values frompaths - the paths of values to get from the qualifierroutingAttribute - the RoutingAttribute associated with this qualifier's document valuecurrentRoutingAttributeIndex - - the current index of the routing attributequalifier - the qualifier to put values into
protected void copyQualifications(AttributeSet source,
AttributeSet target)
source - the source of valuestarget - the place to write all the values to
public List<SearchableAttributeValue> resolveSearchableAttributeValues(Document document,
WorkflowAttributes workflowAttributes)
resolveSearchableAttributeValues in interface WorkflowAttributePropertyResolutionServicedocument - the document to find indexable searchable attribute values forworkflowAttributes - the WorkflowAttributes data dictionary metadata which contains the searchable attributes to index
org.kuali.kfs.sys.document.service.WorkflowAttributePropertyResolutionService#resolveSearchableAttributeValues(org.kuali.rice.kns.document.Document, org.kuali.rice.kns.datadictionary.WorkflowAttributes)
protected List<SearchableAttributeValue> aardvarkValuesForSearchingTypeDefinition(Document document,
SearchingTypeDefinition searchingTypeDefinition)
document - the document to get search values fromsearchingTypeDefinition - the current SearchingTypeDefinition to find values for
protected List<Object> aardvarkSearchValuesForPaths(Document document,
List<String> paths)
document - the document to pull values frompaths - the property paths to pull values
protected List<AttributeSet> cleanCollectionQualifiers(List<AttributeSet> qualifiers)
qualifiers - a List of AttributeSets holding qualifiers for responsibilities
public String determineFieldDataType(Class<? extends BusinessObject> businessObjectClass,
String attributeName)
WorkflowAttributePropertyResolutionService
determineFieldDataType in interface WorkflowAttributePropertyResolutionServicebusinessObjectClass - the class of the business object which has an attributeattributeName - the name of the attribute
org.kuali.kfs.sys.document.service.WorkflowAttributePropertyResolutionService#determineFieldDataType(java.lang.Class, java.lang.String)
public SearchableAttributeValue buildSearchableAttribute(Class<? extends BusinessObject> businessObjectClass,
String attributeKey,
Object value)
buildSearchableAttribute in interface WorkflowAttributePropertyResolutionServiceattributeKey - value -
protected boolean isStringy(Class clazz)
clazz - the class to check for Stringiness
protected boolean isDateLike(Class clazz)
class - the class to determine the type of
protected boolean isDecimaltastic(Class clazz)
value - the class to determine of the type of
protected boolean isIntsy(Class clazz)
value - the class to determine the type of
protected boolean isBooleanable(Class clazz)
value - the class to determine the type of
protected SearchableAttributeDateTimeValue buildSearchableDateTimeAttribute(String attributeKey,
Object value)
attributeKey - the key for the searchable attributevalue - the value that will be coerced to date/time data
protected SearchableAttributeFloatValue buildSearchableRealAttribute(String attributeKey,
Object value)
attributeKey - the key for the searchable attributevalue - the value that will be coerced to "float" data
protected SearchableAttributeLongValue buildSearchableFixnumAttribute(String attributeKey,
Object value)
attributeKey - the key for the searchable attributevalue - the value that will be coerced to "integer" type data
protected SearchableAttributeStringValue buildSearchableStringAttribute(String attributeKey,
Object value)
attributeKey - the key for the searchable attributevalue - the value that will be coerced to a String
protected SearchableAttributeStringValue buildSearchableYesNoAttribute(String attributeKey,
Object value)
attributeKey - the key for the searchable attributevalue - the value that will be coerced to a String
public Object getPropertyByPath(Object object,
String path)
WorkflowAttributePropertyResolutionService
getPropertyByPath in interface WorkflowAttributePropertyResolutionServiceobject - an object to find a child object ofpath - the path to that child object
org.kuali.kfs.sys.document.service.WorkflowAttributePropertyResolutionService#getPropertyByPath(java.lang.Object, java.lang.String)
public Collection getPropertyOfCollectionByPath(Collection collection,
String path)
collection - the collection of objectspath - the path of the property to retrieve
public Collection makeNewCollectionOfSameType(Collection collection)
collection - the collection to make a new collection of the same type as
protected String[] headAndTailPath(String path)
path - the path to split
protected 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||