|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.datadictionary.DictionaryBeanBase org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase org.kuali.rice.krad.uif.util.UrlInfo
public class UrlInfo
This object represents a url in the Krad framework. The url can be set explicitly to a specific href or a controller plus a viewId can be provided (at very minimum). By default, the krad base bean config points the baseUrl property to 'krad.url' configuration property and the methodToCall to 'start', but these can be reset to any value as needed.
If href is not set, the generated value of href is constructed (in general) as follows:
baseUrl + /controllerMapping + ? + methodToCall param + viewId param + other parameters
with any necessary tokens to construct a valid url. If baseUrl is not provided, the url is not valid and a
blank string is returned.
Field Summary |
---|
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
componentCode, namespaceCode |
Constructor Summary | |
---|---|
UrlInfo()
Base constructor |
|
UrlInfo(String href)
Constructor that initializes an href value |
|
UrlInfo(String baseUrl,
String controllerMapping,
String viewId,
String methodToCall)
Constructor that sets the base url construction properties |
Method Summary | |
---|---|
protected String |
generateUrl()
Generate the url based on properties of this object |
String |
getBaseUrl()
The base url value (the value that comes before other properties). |
String |
getControllerMapping()
The controllerMapping for the url (string that represents the controllerMapping path appended to baseUrl) |
String |
getFormKey()
FormKey representing the key of the form data to retrieve |
String |
getHref()
Get the href value for this url object. |
String |
getMethodToCall()
MethodToCall representing the methodToCall on the controller (default base bean value is 'start') |
String |
getOriginalHref()
The original(set) href value. |
String |
getPageId()
PageId representing the page of the view to retrieve by id |
Map<String,String> |
getRequestParameters()
Map of key value pairs that will be appended to the request parameters to pass in any custom data |
String |
getViewId()
ViewId representing the view by id to retrieve |
String |
getViewType()
The viewType representing the View's base type |
boolean |
isFullyConfigured()
|
void |
setBaseUrl(String baseUrl)
Set the baseUrl |
void |
setControllerMapping(String controllerMapping)
Set the controllerMapping |
void |
setFormKey(String formKey)
Set the formKey |
void |
setHref(String href)
Explicitly set the href value - if this is called with a value, all other properties of the url object are ignored. |
void |
setMethodToCall(String methodToCall)
Set the methodToCall |
protected void |
setOriginalHref(String originalHref)
toString returns the original href value of url |
void |
setPageId(String pageId)
Set pageId |
void |
setRequestParameters(Map<String,String> requestParameters)
Set the requestParameters |
void |
setViewId(String viewId)
Set viewId |
void |
setViewType(String viewType)
Set the viewType |
String |
toString()
toString override returns the href value of url |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, preventModification, setComponentCode, setNamespaceCode, unwrap |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode |
Constructor Detail |
---|
public UrlInfo()
public UrlInfo(String href)
href
- the href valuepublic UrlInfo(String baseUrl, String controllerMapping, String viewId, String methodToCall)
baseUrl
- the baseUrlcontrollerMapping
- the controllerMappingviewId
- the id of the viewmethodToCall
- the methodToCallMethod Detail |
---|
public boolean isFullyConfigured()
protected String generateUrl()
public String getHref()
If href has NOT been explicitly set to a value, the href is generated by
constructing pieces of the url set through the properties of this url object.
The generated value of href is constructed (in general) as follows:
baseUrl + /controllerMapping + ? + methodToCall param + viewId param + other parameters
with any necessary tokens to construct a valid url. If baseUrl is not provided, the url is not valid and a
blank string is returned.
public void setHref(String href)
href
- public String getBaseUrl()
public void setBaseUrl(String baseUrl)
baseUrl
- public String getControllerMapping()
public void setControllerMapping(String controllerMapping)
controllerMapping
- public String getViewType()
public void setViewType(String viewType)
viewType
- public String getViewId()
public void setViewId(String viewId)
viewId
- public String getPageId()
public void setPageId(String pageId)
pageId
- public String getFormKey()
public void setFormKey(String formKey)
formKey
- public String getMethodToCall()
public void setMethodToCall(String methodToCall)
methodToCall
- public Map<String,String> getRequestParameters()
public void setRequestParameters(Map<String,String> requestParameters)
requestParameters
- public String getOriginalHref()
public String toString()
toString
in class Object
protected void setOriginalHref(String originalHref)
originalHref
- original href value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |