Class GitLabServers

    • Field Detail

      • LOGGER

        public static final Logger LOGGER
    • Constructor Detail

      • GitLabServers

        public GitLabServers()
    • Method Detail

      • getServers

        @NonNull
        public List<GitLabServer> getServers()
        Gets the list of endpoints.
        Returns:
        the list of endpoints
      • setServers

        public void setServers​(@CheckForNull
                               List<? extends GitLabServer> servers)
        Sets the list of GitLab Servers
        Parameters:
        servers - the list of endpoints.
      • addServer

        public boolean addServer​(@NonNull
                                 GitLabServer server)
        Adds an server Checks if the GitLab Server name is unique
        Parameters:
        server - the server to add.
        Returns:
        true if the list of endpoints was modified
      • updateServer

        public boolean updateServer​(@NonNull
                                    GitLabServer server)
        Updates an existing endpoint (or adds if missing) Checks if the GitLab Server name is matched
        Parameters:
        server - the server to update.
        Returns:
        true if the list of endpoints was modified
      • removeServer

        public boolean removeServer​(@CheckForNull
                                    String name)
        Removes a server entry Checks if the GitLab Server name is matched
        Parameters:
        name - the server name to remove.
        Returns:
        true if the list of endpoints was modified
      • findServer

        @CheckForNull
        public GitLabServer findServer​(@CheckForNull
                                       String serverName)
        Checks to see if the supplied server URL is defined in the global configuration.
        Parameters:
        serverName - the server url to check.
        Returns:
        the global configuration for the specified server url or null if not defined.