|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.web.openapi.SimpleWebExtension
SimplePageExtension instead
public class SimpleWebExtension
Deprecated! A helper class which allows to insert Web Extension in Spring XML. Required props: Name, Place, JspPath. init-method - register.
| Constructor Summary | |
|---|---|
SimpleWebExtension(WebControllerManager manager)
Deprecated. Create simple web extension. |
|
| Method Summary | |
|---|---|
SimpleWebExtension |
addCssFile(java.lang.String cssFile)
Deprecated. Allows to add css file path for this extension |
SimpleWebExtension |
addJsFile(java.lang.String file)
Deprecated. Allows to add Javascript file path for this extension |
void |
fillModel(java.util.Map model,
javax.servlet.http.HttpServletRequest request)
Deprecated. If web extension is available then this method is called when model is populated. |
java.util.List<java.lang.String> |
getCssFiles()
Deprecated. Returns list of paths to plugin CSS files. |
java.util.List<java.lang.String> |
getJsFiles()
Deprecated. Returns list of paths to plugin JavaScript files. |
java.lang.String |
getJspFilePath()
Deprecated. Returns path to plugin JSP. |
java.lang.String |
getPluginName()
Deprecated. Returns name of the plugin. |
java.lang.String |
getTitle()
Deprecated. Returns title. |
java.lang.String |
getTitle(javax.servlet.http.HttpServletRequest request)
Deprecated. Same as WebExtension.getTitle() but additional information specified in the request can be used to construct a title. |
boolean |
isAvailable(javax.servlet.http.HttpServletRequest request)
Deprecated. Returns true if this extension is available (can be shown) for the specified request. |
void |
register()
Deprecated. Call this to register this extension in Web controller, either explicitly or as Spring's init-method |
void |
setJspPath(java.lang.String jspPath)
Deprecated. Spring setter for jsp path. |
void |
setPlace(WebPlace place)
Deprecated. Spring setter for the location of this Web extension |
void |
setPluginName(java.lang.String name)
Deprecated. Sets the plugin name for the extension, may be used in path to jsp, css and other files. |
void |
setTitle(java.lang.String title)
Deprecated. Sets the title for the extension, the exact meaning depends from specific WebPlace |
void |
unregister()
Deprecated. Call this to unregister this extension from Web controller |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleWebExtension(WebControllerManager manager)
manager - manager to register this extension in, see register() method.| Method Detail |
|---|
public void setJspPath(@NonNls
java.lang.String jspPath)
getJspFilePath()
jspPath - path to the extensionpublic void setPlace(WebPlace place)
place - web extension point for this extension, see WebPlacepublic void setTitle(java.lang.String title)
title - extension displayable title, see getTitle()public void setPluginName(java.lang.String name)
name - plugin name for this extension, see getPluginName(), getCssFiles(),
getJsFiles(), getJspFilePath()
@NotNull
public java.lang.String getTitle(@NotNull
javax.servlet.http.HttpServletRequest request)
WebExtensionWebExtension.getTitle() but additional information specified in the request can be used to construct a title.
getTitle in interface WebExtensionrequest - request
public void register()
public void unregister()
@NonNls @NotNull public java.lang.String getPluginName()
WebExtension
getPluginName in interface WebExtension@NotNull public java.lang.String getTitle()
WebExtension
getTitle in interface WebExtension
public boolean isAvailable(@NotNull
javax.servlet.http.HttpServletRequest request)
WebExtension
isAvailable in interface WebExtensionrequest - request
public void fillModel(java.util.Map model,
@NotNull
javax.servlet.http.HttpServletRequest request)
WebExtension
fillModel in interface WebExtensionmodel - modelrequest - requestpublic java.util.List<java.lang.String> getCssFiles()
WebExtension
getCssFiles in interface WebExtensionpublic java.util.List<java.lang.String> getJsFiles()
WebExtension
getJsFiles in interface WebExtension@Nullable @NonNls public java.lang.String getJspFilePath()
WebExtension
getJspFilePath in interface WebExtensionpublic SimpleWebExtension addCssFile(java.lang.String cssFile)
cssFile - path to the css file, see getCssFiles()
public SimpleWebExtension addJsFile(java.lang.String file)
file - path to the css file, see getJsFiles()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||