Class PageExtensionDefaultValuesProvider

    • Method Detail

      • getTabId

        @NotNull
        public String getTabId()
        Description copied from interface: CustomTab
        Returns tab identifier
        Specified by:
        getTabId in interface CustomTab
        Returns:
        tab identifier
      • getTabTitle

        @NotNull
        public String getTabTitle()
        Description copied from interface: CustomTab
        Returns title to use as custom tab name
        Specified by:
        getTabTitle in interface CustomTab
        Returns:
        tab title
      • getTabTitle

        @NotNull
        public String getTabTitle​(@NotNull
                                  javax.servlet.http.HttpServletRequest request)
        Description copied from interface: CustomTab
        Returns title to use as custom tab name
        Specified by:
        getTabTitle in interface CustomTab
        Parameters:
        request - to get information from. Can be used to customize title
        Returns:
        tab title for given request
      • isVisible

        public boolean isVisible()
        Description copied from interface: CustomTab
        Return false if the tab should be active (i.e. handle requests) but not visible for some reason
        Specified by:
        isVisible in interface CustomTab
        Returns:
        see above
      • getGroup

        @NotNull
        public String getGroup()
        Description copied from interface: Groupable
        Returns the group name.
        Specified by:
        getGroup in interface Groupable
        Returns:
        the group name
      • getPluginName

        @NotNull
        public String getPluginName()
        Description copied from interface: PageExtension

        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.

        Specified by:
        getPluginName in interface PageExtension
        Returns:
        extension identifier.
      • getCssPaths

        @NotNull
        public List<String> getCssPaths()
        Description copied from interface: PageExtension
        Returns list of additional CSS files paths required by this extension
        Specified by:
        getCssPaths in interface PageExtension
        Returns:
        list of additional CSS paths or empty collection
      • getJsPaths

        @NotNull
        public List<String> getJsPaths()
        Description copied from interface: PageExtension
        Returns list of additional JavaScript files paths required by this extension
        Specified by:
        getJsPaths in interface PageExtension
        Returns:
        list of additional JavaScript paths or empty collection
      • isAvailable

        public boolean isAvailable​(@NotNull
                                   javax.servlet.http.HttpServletRequest request)
        Description copied from interface: PageExtension
        Returns true if this extension is available (should be included on the page) for the specified request. If extension needs to be shown for some pages only, it can obtain original page URL via request attribute called "pageUrl":
        String pageUrl = (String)request.getAttribute("pageUrl");
        Specified by:
        isAvailable in interface ExtensionAvailability
        Specified by:
        isAvailable in interface PageExtension
        Parameters:
        request - HTTP request
        Returns:
        true if extension should be included in the page place
      • fillModel

        public void fillModel​(@NotNull
                              Map<String,​Object> model,
                              @NotNull
                              javax.servlet.http.HttpServletRequest request)
        Description copied from interface: PageExtension
        This method is useful for extensions that do not have controllers (such extensions usually return path to JSP as their include URL). method is called before processing is passed to JSP. It allows page extension to modify model passed to JSP. Note that since main page controller also uses this model for storing its parameters in case of parameter name conflict extension parameter will be removed and warning message will be logged into the server log.
        Specified by:
        fillModel in interface CustomTab
        Specified by:
        fillModel in interface PageExtension
        Parameters:
        model - model to modify
        request - HTTP request