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 voidaddExtension(PageExtension pageExtension)Adds new extension to this place (to the tail of extensions)voidaddExtension(PageExtension pageExtension, int zeroBasedPosition)Adds new extension to this place, to the specified position.voidaddExtension(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 requestPlaceIdgetId()Unique identifier of this page placeList<PageExtension>getRegisteredExtensions()Returns all registered extensionsbooleanremoveExtension(PageExtension pageExtension)Removes extension from this placeStringtoString()
-
-
-
Constructor Detail
-
PagePlaceImpl
public PagePlaceImpl(@NotNull PlaceId placeId)
-
-
Method Detail
-
getId
@NotNull public PlaceId getId()
Description copied from interface:PagePlaceUnique identifier of this page place
-
addExtension
public void addExtension(@NotNull PageExtension pageExtension)Description copied from interface:PagePlaceAdds new extension to this place (to the tail of extensions)- Specified by:
addExtensionin interfacePagePlace- Parameters:
pageExtension- page extension
-
addExtension
public void addExtension(@NotNull PageExtension pageExtension, int zeroBasedPosition)Description copied from interface:PagePlaceAdds 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:
addExtensionin 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:PagePlaceAdds 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:
addExtensionin 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:PagePlaceRemoves extension from this place- Specified by:
removeExtensionin 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:PagePlaceReturns list of page extensions registered for this place and available for the specified request- Specified by:
getAvailableExtensionsin interfacePagePlace- Parameters:
request- HTTP request- Returns:
- list of page extensions
-
getRegisteredExtensions
@NotNull public List<PageExtension> getRegisteredExtensions()
Description copied from interface:PagePlaceReturns all registered extensions- Specified by:
getRegisteredExtensionsin interfacePagePlace- Returns:
- all registered extensions
-
-