|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
public class BambooActionSupport
Field Summary | |
---|---|
protected BuildManager |
buildManager
|
static String |
CONFIRM
|
protected CookieCutter |
cookieCutter
|
Constructor Summary | |
---|---|
BambooActionSupport()
|
Method Summary | |
---|---|
void |
addError(String field,
String message)
Deprecated. Use #addFieldError(String, String) instead |
void |
addError(String prefix,
String field,
String message)
Adds a new form validation error with a given prefix. |
void |
addErrorCollection(ErrorCollection errors)
Populate this ErrorCollection with general and field-specific errors. |
void |
addErrorMessage(String message)
Deprecated. Use #addActionError(String) instead |
void |
addErrorMessages(Collection errorMessages)
Append new error messages to those already collected. |
void |
addErrors(Map errors)
Append new field-specific errors to those already collected. |
void |
addIllegalArgumentException(String field,
IllegalArgumentException e)
|
String |
doDefault()
|
boolean |
doesLabelKeyHaveMatchingDescription(String labelKey)
|
String |
getAsPreformattedText(Object o)
|
Bamboo |
getBamboo()
Allows access to the Bamboo container. |
BambooSession |
getBambooSession()
|
Collection |
getBreadCrumbs()
|
BuildManager |
getBuildManager()
|
String |
getConglomerateCookieValue(String cookieKey,
String conglomerateKey)
|
CookieCutter |
getCookieCutter()
|
String |
getCookieValue(String key)
|
static String |
getCurrentUrl()
|
String |
getDescriptionFromLabelKey(String labelKey)
|
Collection |
getFlushedErrorMessages()
Get error messages, then get rid of them. |
String |
getReturnUrl()
|
User |
getUser()
|
List |
getWebItemsForSection(String sectionName)
|
WebResourceManager |
getWebResourceManager()
|
List |
getWebSectionsForLocation(String location)
|
boolean |
hasAnyErrors()
Whether any errors (of any type - field-specific or otherwise) have been collected. |
boolean |
hasBuilds()
|
boolean |
hasPerm(String path)
|
boolean |
isEnableSignup()
|
boolean |
isSelectFieldAndNull(String buildKeysField)
|
void |
setAuthenticationContext(BambooAuthenticationContext authenticationContext)
|
void |
setBambooPermissionManager(BambooPermissionManager bambooPermissionManager)
|
void |
setBuildManager(BuildManager buildManager)
|
void |
setCookieCutter(CookieCutter cookieCutter)
|
void |
setErrorMessages(Collection errorMessages)
Deprecated. Use #setActionErrors(Collection) instead |
void |
setHtmlUtils(HtmlUtils htmlUtils)
|
void |
setReturnUrl(String returnUrl)
|
void |
setWebInterfaceManager(WebInterfaceManager webInterfaceManager)
|
void |
setWebResourceManager(WebResourceManager webResourceManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection |
---|
getErrorMessages, getErrors, getFieldErrors |
Field Detail |
---|
public static final String CONFIRM
protected CookieCutter cookieCutter
protected BuildManager buildManager
Constructor Detail |
---|
public BambooActionSupport()
Method Detail |
---|
public String doDefault() throws Exception
Exception
public BambooSession getBambooSession()
getBambooSession
in interface BambooSessionAware
public Bamboo getBamboo()
public User getUser()
public String getAsPreformattedText(Object o)
public boolean doesLabelKeyHaveMatchingDescription(String labelKey)
public String getDescriptionFromLabelKey(String labelKey)
public boolean hasPerm(String path)
public boolean isEnableSignup()
public boolean hasBuilds()
public Collection getBreadCrumbs()
public void setHtmlUtils(HtmlUtils htmlUtils)
public void setAuthenticationContext(BambooAuthenticationContext authenticationContext)
public String getReturnUrl()
getReturnUrl
in interface ReturnUrlAware
public void setReturnUrl(String returnUrl)
setReturnUrl
in interface ReturnUrlAware
public static String getCurrentUrl()
public String getCookieValue(String key)
public List getWebItemsForSection(String sectionName)
public List getWebSectionsForLocation(String location)
public void addError(String prefix, String field, String message)
ErrorCollection
addError
in interface ErrorCollection
prefix
- The prefix of the field in . formfield
- The id of the form element in errormessage
- The error message to display to the userpublic Collection getFlushedErrorMessages()
ErrorCollection
getFlushedErrorMessages
in interface ErrorCollection
public void addErrorCollection(ErrorCollection errors)
ErrorCollection
addErrorCollection
in interface ErrorCollection
errors
- ErrorCollection whose errors/messages we obtain.public void addErrorMessages(Collection errorMessages)
ErrorCollection
addErrorMessages
in interface ErrorCollection
errorMessages
- Collection of error strings.public void addErrors(Map errors)
ErrorCollection
addErrors
in interface ErrorCollection
errors
- of String: String pairs, eg. {"assignee": "Assignee is required"}public boolean hasAnyErrors()
ErrorCollection
hasAnyErrors
in interface ErrorCollection
public void addError(String field, String message)
#addFieldError(String, String)
instead
ErrorCollection
addError
in interface ErrorCollection
field
- Field name, eg. "assignee"message
- Error message.public void addErrorMessage(String message)
#addActionError(String)
instead
ErrorCollection
addErrorMessage
in interface ErrorCollection
message
- Error message.public void setErrorMessages(Collection errorMessages)
#setActionErrors(Collection)
instead
ErrorCollection
setErrorMessages
in interface ErrorCollection
errorMessages
- List of error message String
s.public void addIllegalArgumentException(String field, IllegalArgumentException e)
public void setCookieCutter(CookieCutter cookieCutter)
public CookieCutter getCookieCutter()
public void setBuildManager(BuildManager buildManager)
public BuildManager getBuildManager()
public void setBambooPermissionManager(BambooPermissionManager bambooPermissionManager)
public void setWebInterfaceManager(WebInterfaceManager webInterfaceManager)
public void setWebResourceManager(WebResourceManager webResourceManager)
public WebResourceManager getWebResourceManager()
public boolean isSelectFieldAndNull(String buildKeysField)
public String getConglomerateCookieValue(String cookieKey, String conglomerateKey)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |