Enum ConnectionCapability

    • Enum Constant Detail

      • ISSUE_USER_TOKEN

        public static final ConnectionCapability ISSUE_USER_TOKEN
        The connection can be used to issue tokens to act on behalf of a user.
      • ISSUE_SERVICE_TOKEN

        public static final ConnectionCapability ISSUE_SERVICE_TOKEN
        The connection can be used to issue tokens to act on behalf of itself.
      • CREATE_SUB_CONNECTION

        public static final ConnectionCapability CREATE_SUB_CONNECTION
        The connection can be used to create sub connections. The business meaning of sub connections is specific to the underlying OAuth provider.
      • IS_SUB_CONNECTION

        public static final ConnectionCapability IS_SUB_CONNECTION
        The connection is a sub connection. The business meaning of sub connections is specific to the underlying OAuth provider.
      • READ_VCS

        public static final ConnectionCapability READ_VCS
        The connection can be used to read from a VCS.
      • WRITE_VCS

        public static final ConnectionCapability WRITE_VCS
        The connection can be used to write to a VCS.
      • PUBLISH_BUILD_STATUS

        public static final ConnectionCapability PUBLISH_BUILD_STATUS
        The connection can be used to publish build statuses on behalf of itself.
      • RETRIEVE_PULL_REQUESTS

        public static final ConnectionCapability RETRIEVE_PULL_REQUESTS
        The connection can be used to retrieve pull request information on behalf of itself.
      • SUPPORT_ISSUE_TRACKER

        public static final ConnectionCapability SUPPORT_ISSUE_TRACKER
        The connection can be used to integrate with issue tracking systems on behalf of itself.
    • Method Detail

      • values

        public static ConnectionCapability[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ConnectionCapability c : ConnectionCapability.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ConnectionCapability valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null