Class ParentLocation
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,UifDictionaryBean
- See Also:
-
Field Summary
FieldsFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructParentLocationBreadcrumbItems(View view, Object currentModel, Map<String, Object> currentContext) Construct the parent location breadcrumbItems that represent all the parent views/pages configured through parentLocation by traversing through each view by id referenced in parentViewUrl in a chain recursively.The pageBreadcrumbItem to use for the parent location view breadcrumb.The parentPageLabel is the text used for breadcrumbItem label of the parent page.The parentPageUrl representing a page url that is the parent of this View.The parentViewLabel is the text used for breadcrumbItem label of the parent view.The parentViewUrl representing the url that is the parent of this View.The resolved/generated breadcrumbItems determined by traversing the parentLocation chain.The viewBreadcrumbItem to use for the parent location view breadcrumb.voidsetPageBreadcrumbItem(BreadcrumbItem pageBreadcrumbItem) Set the pageBreadcrumbItemvoidsetParentPageLabel(String parentPageLabel) Set the parentPageLabelvoidsetParentPageUrl(UrlInfo parentPageUrl) Set the parentPageUrlvoidsetParentViewLabel(String parentViewLabel) Set the parentViewLabelvoidsetParentViewUrl(UrlInfo parentViewUrl) Set the parentViewUrlvoidsetViewBreadcrumbItem(BreadcrumbItem breadcrumbItem) Set the viewBreadcrumbItemMethods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
-
Field Details
-
resolvedBreadcrumbItems
-
-
Constructor Details
-
ParentLocation
public ParentLocation()
-
-
Method Details
-
constructParentLocationBreadcrumbItems
public List<BreadcrumbItem> constructParentLocationBreadcrumbItems(View view, Object currentModel, Map<String, Object> currentContext) Construct the parent location breadcrumbItems that represent all the parent views/pages configured through parentLocation by traversing through each view by id referenced in parentViewUrl in a chain recursively. A url which is not using viewId and instead set the href explicitly ends the chain.- Parameters:
view- the current view being processedcurrentModel- the currentModelcurrentContext- the currentContext- Returns:
- list of breadcrumbItems (the final list is set into the top most View's parentLocation.resolvedBreadcrumbItems)
-
getParentViewUrl
The parentViewUrl representing the url that is the parent of this View.This url can explicitly set an href or can set a controller and viewId. Parent view traversal is only performed if the controller and viewId properties are set and NOT the explicit href (this affects if breadcrumbs are generated in a recursive chain).
- Returns:
- the parent view url
-
setParentViewUrl
Set the parentViewUrl- Parameters:
parentViewUrl-
-
getParentPageUrl
The parentPageUrl representing a page url that is the parent of this View. In order for automated label determination to work for the page breadcrumbItem, the viewId and controllerMapping must match with the parentViewUrl.This url can explicitly set an href or can set a pageId. The parentViewUrl MUST be set before this option can be set. If the needed behavior is such that the parent view breadcrumbItem should not be shown and only this item should be shown, set 'parentLocation.viewBreadcrumbItem.render' to false.
- Returns:
- the parent page url
-
setParentPageUrl
Set the parentPageUrl- Parameters:
parentPageUrl-
-
getParentViewLabel
The parentViewLabel is the text used for breadcrumbItem label of the parent view.If not set, the the label is determined by looking at the parent View's breadcrumbItem and then its headerText. If the parent view's retrieved value contain expressions, those expressions must be able to be evaluated in the current context (ie, the properties they reference must also exist on the current form at the same location) or an exception will be thrown.
- Returns:
- the parentViewLabel set
-
setParentViewLabel
Set the parentViewLabel- Parameters:
parentViewLabel-
-
getParentPageLabel
The parentPageLabel is the text used for breadcrumbItem label of the parent page.If not set, the the label is determined by looking at the parent PageGroup's breadcrumbItem and then its headerText. This retrieval can only happen if the parentViewUrl is set. If the parent PageGroup's retrieved value contain expressions, those expressions must be able to be evaluated in the current context (ie, the properties they reference must also exist on the current form at the same location) or an exception will be thrown.
- Returns:
- the parentPageLabel set
-
setParentPageLabel
Set the parentPageLabel- Parameters:
parentPageLabel-
-
getViewBreadcrumbItem
The viewBreadcrumbItem to use for the parent location view breadcrumb. Url should NOT be set here because parentViewUrl is ALWAYS set into this breadcrumbItem, regardless of value.- Returns:
- the viewBreadcrumbItem
-
setViewBreadcrumbItem
Set the viewBreadcrumbItem- Parameters:
breadcrumbItem-
-
getPageBreadcrumbItem
The pageBreadcrumbItem to use for the parent location view breadcrumb. Url should NOT be set here because parentPageUrl is ALWAYS set into this breadcrumbItem, regardless of value.- Returns:
- the pageBreadcrumbItem
-
setPageBreadcrumbItem
Set the pageBreadcrumbItem- Parameters:
pageBreadcrumbItem-
-
getResolvedBreadcrumbItems
The resolved/generated breadcrumbItems determined by traversing the parentLocation chain. These cannot be set and must be generated by calling constructParentLocationBreadcrumbItems.- Returns:
- the resolved breadcrumbItem list
-