jetbrains.buildServer.web.openapi
Interface PagePlace


public interface PagePlace

Identifies a place on the page that can be extended with plugins


Method Summary
 void addExtension(PageExtension pageExtension)
          Adds new extension to this place (to the tail of extensions)
 void addExtension(PageExtension pageExtension, int zeroBasedPosition)
          Adds new extension to this place, to the specified position.
 java.util.List<PageExtension> getAvailableExtensions(javax.servlet.http.HttpServletRequest request)
          Returns list of page extensions registered for this place and available for the specified request
 PlaceId getId()
          Unique identifier of this page place
 java.util.List<PageExtension> getRegisteredExtensions()
          Returns all registered extensions
 boolean removeExtension(PageExtension pageExtension)
          Removes extension from this place
 

Method Detail

getId

@NotNull
PlaceId getId()
Unique identifier of this page place

Returns:
page place identifier

addExtension

void addExtension(@NotNull
                  PageExtension pageExtension)
Adds new extension to this place (to the tail of extensions)

Parameters:
pageExtension - page extension

addExtension

void addExtension(@NotNull
                  PageExtension pageExtension,
                  int zeroBasedPosition)
Adds new extension to this place, to the specified position. Explicit position should be >= 0, negative value means position undefined. Extensions will be ordered to match requested position as much as possible.

Parameters:
pageExtension - page extension
zeroBasedPosition - position for the extension, starting with 0; negative value means first available position

removeExtension

boolean removeExtension(@NotNull
                        PageExtension pageExtension)
Removes extension from this place

Parameters:
pageExtension - extension to remove
Returns:
true if extension was removed

getAvailableExtensions

java.util.List<PageExtension> getAvailableExtensions(@NotNull
                                                     javax.servlet.http.HttpServletRequest request)
Returns list of page extensions registered for this place and available for the specified request

Parameters:
request - HTTP request
Returns:
list of page extensions

getRegisteredExtensions

java.util.List<PageExtension> getRegisteredExtensions()
Returns all registered extensions

Returns:
all registered extensions