|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PageExtension
Represents page extension, see SimplePageExtension
| Method Summary | |
|---|---|
void |
fillModel(java.util.Map<java.lang.String,java.lang.Object> model,
javax.servlet.http.HttpServletRequest request)
This method is useful for extensions that do not have controllers (such extensions usually return path to JSP as their include URL). |
java.util.List<java.lang.String> |
getCssPaths()
Returns list of additional CSS files paths required by this extension |
java.lang.String |
getIncludeUrl()
Returns URL by which this page extension is included. |
java.util.List<java.lang.String> |
getJsPaths()
Returns list of additional JavaScript files paths required by this extension |
java.lang.String |
getPluginName()
Returns some identifier unique among all extensions within one extension point. |
boolean |
isAvailable(javax.servlet.http.HttpServletRequest request)
Returns true if this extension is available (should be included on the page) for the specified request. |
| Method Detail |
|---|
@NotNull java.lang.String getPluginName()
Returns some identifier unique among all extensions within one extension point. Despite its probably confusing name, the result of this method may not be related to any existing plugin names, its just an arbitrary string used to distinguish extensions within one extension point (PlaceId).
Before TeamCity 5.1 plugin name used to determine paths to plugin resources, but since 5.1 it only plays a role of identifier.
@NotNull java.lang.String getIncludeUrl()
@NotNull java.util.List<java.lang.String> getCssPaths()
@NotNull java.util.List<java.lang.String> getJsPaths()
boolean isAvailable(@NotNull
javax.servlet.http.HttpServletRequest request)
String pageUrl = (String)request.getAttribute("pageUrl");
request - HTTP request
void fillModel(@NotNull
java.util.Map<java.lang.String,java.lang.Object> model,
@NotNull
javax.servlet.http.HttpServletRequest request)
model - model to modifyrequest - HTTP request
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||