Package jetbrains.buildServer.web.impl
Class PagePlaceImpl
- java.lang.Object
-
- jetbrains.buildServer.web.impl.PagePlaceImpl
-
-
Constructor Summary
Constructors Constructor Description PagePlaceImpl(PlaceId placeId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
addExtension(PageExtension pageExtension, PositionConstraint positionConstraint)
Adds new extension with position preference.List<PageExtension>
getAvailableExtensions(javax.servlet.http.HttpServletRequest request)
Returns list of page extensions registered for this place and available for the specified requestPlaceId
getId()
Unique identifier of this page placeList<PageExtension>
getRegisteredExtensions()
Returns all registered extensionsboolean
removeExtension(PageExtension pageExtension)
Removes extension from this placeString
toString()
-
-
-
Constructor Detail
-
PagePlaceImpl
public PagePlaceImpl(@NotNull PlaceId placeId)
-
-
Method Detail
-
getId
@NotNull public PlaceId getId()
Description copied from interface:PagePlace
Unique identifier of this page place
-
addExtension
public void addExtension(@NotNull PageExtension pageExtension)
Description copied from interface:PagePlace
Adds new extension to this place (to the tail of extensions)- Specified by:
addExtension
in interfacePagePlace
- Parameters:
pageExtension
- page extension
-
addExtension
public void addExtension(@NotNull PageExtension pageExtension, int zeroBasedPosition)
Description copied from interface:PagePlace
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.- Specified by:
addExtension
in interfacePagePlace
- Parameters:
pageExtension
- page extensionzeroBasedPosition
- position for the extension, starting with 0; negative value means first available position
-
addExtension
public void addExtension(@NotNull PageExtension pageExtension, @Nullable PositionConstraint positionConstraint)
Description copied from interface:PagePlace
Adds new extension with position preference. By default extension position is based on the extensions registration order, but with help of constraints it is possible to explicitly place extension in relation to other extensions.- Specified by:
addExtension
in interfacePagePlace
- Parameters:
pageExtension
- page extensionpositionConstraint
- constraint which can be used to position extension near other extensions
-
removeExtension
public boolean removeExtension(@NotNull PageExtension pageExtension)
Description copied from interface:PagePlace
Removes extension from this place- Specified by:
removeExtension
in interfacePagePlace
- Parameters:
pageExtension
- extension to remove- Returns:
- true if extension was removed
-
getAvailableExtensions
@NotNull public List<PageExtension> getAvailableExtensions(@NotNull javax.servlet.http.HttpServletRequest request)
Description copied from interface:PagePlace
Returns list of page extensions registered for this place and available for the specified request- Specified by:
getAvailableExtensions
in interfacePagePlace
- Parameters:
request
- HTTP request- Returns:
- list of page extensions
-
getRegisteredExtensions
@NotNull public List<PageExtension> getRegisteredExtensions()
Description copied from interface:PagePlace
Returns all registered extensions- Specified by:
getRegisteredExtensions
in interfacePagePlace
- Returns:
- all registered extensions
-
-