Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
ab292a6f
Commit
ab292a6f
authored
Dec 29, 2018
by
Greg Messner
Browse files
Removed deprecated methods that are no loinger supported by GitLab.
parent
319042a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/GitLabApi.java
View file @
ab292a6f
...
@@ -112,22 +112,6 @@ public class GitLabApi {
...
@@ -112,22 +112,6 @@ public class GitLabApi {
return
(
gitLabApi
);
return
(
gitLabApi
);
}
}
/**
* <p>Logs into GitLab using OAuth2 with the provided {@code username} and {@code password},
* and creates a new {@code GitLabApi} instance using returned access token.</p>
*
* @param url GitLab URL
* @param username user name for which private token should be obtained
* @param password password for a given {@code username}
* @return new {@code GitLabApi} instance configured for a user-specific token
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
* @deprecated As of release 4.8.7, replaced by {@link #oauth2Login(String, String, CharSequence)}, will be removed in 4.9.0
*/
@Deprecated
public
static
GitLabApi
oauth2Login
(
String
url
,
String
username
,
String
password
)
throws
GitLabApiException
{
return
(
GitLabApi
.
oauth2Login
(
ApiVersion
.
V4
,
url
,
username
,
password
,
null
,
null
,
false
));
}
/**
/**
* <p>Logs into GitLab using OAuth2 with the provided {@code username} and {@code password},
* <p>Logs into GitLab using OAuth2 with the provided {@code username} and {@code password},
* and creates a new {@code GitLabApi} instance using returned access token.</p>
* and creates a new {@code GitLabApi} instance using returned access token.</p>
...
@@ -159,23 +143,6 @@ public class GitLabApi {
...
@@ -159,23 +143,6 @@ public class GitLabApi {
}
}
}
}
/**
* <p>Logs into GitLab using OAuth2 with the provided {@code username} and {@code password},
* and creates a new {@code GitLabApi} instance using returned access token.</p>
*
* @param url GitLab URL
* @param username user name for which private token should be obtained
* @param password password for a given {@code username}
* @param ignoreCertificateErrors if true will set up the Jersey system ignore SSL certificate errors
* @return new {@code GitLabApi} instance configured for a user-specific token
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
* @deprecated As of release 4.8.7, replaced by {@link #oauth2Login(String, String, CharSequence, boolean)}, will be removed in 4.9.0
*/
@Deprecated
public
static
GitLabApi
oauth2Login
(
String
url
,
String
username
,
String
password
,
boolean
ignoreCertificateErrors
)
throws
GitLabApiException
{
return
(
GitLabApi
.
oauth2Login
(
ApiVersion
.
V4
,
url
,
username
,
password
,
null
,
null
,
ignoreCertificateErrors
));
}
/**
/**
* <p>Logs into GitLab using OAuth2 with the provided {@code username} and {@code password},
* <p>Logs into GitLab using OAuth2 with the provided {@code username} and {@code password},
* and creates a new {@code GitLabApi} instance using returned access token.</p>
* and creates a new {@code GitLabApi} instance using returned access token.</p>
...
@@ -209,26 +176,6 @@ public class GitLabApi {
...
@@ -209,26 +176,6 @@ public class GitLabApi {
}
}
}
}
/**
* <p>Logs into GitLab using OAuth2 with the provided {@code username} and {@code password},
* and creates a new {@code GitLabApi} instance using returned access token.</p>
*
* @param url GitLab URL
* @param username user name for which private token should be obtained
* @param password password for a given {@code username}
* @param secretToken use this token to validate received payloads
* @param clientConfigProperties Map instance with additional properties for the Jersey client connection
* @param ignoreCertificateErrors if true will set up the Jersey system ignore SSL certificate errors
* @return new {@code GitLabApi} instance configured for a user-specific token
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
* @deprecated As of release 4.8.7, will be removed in 4.9.0
*/
@Deprecated
public
static
GitLabApi
oauth2Login
(
String
url
,
String
username
,
String
password
,
String
secretToken
,
Map
<
String
,
Object
>
clientConfigProperties
,
boolean
ignoreCertificateErrors
)
throws
GitLabApiException
{
return
(
GitLabApi
.
oauth2Login
(
ApiVersion
.
V4
,
url
,
username
,
password
,
secretToken
,
clientConfigProperties
,
ignoreCertificateErrors
));
}
/**
/**
* <p>Logs into GitLab using OAuth2 with the provided {@code username} and {@code password},
* <p>Logs into GitLab using OAuth2 with the provided {@code username} and {@code password},
* and creates a new {@code GitLabApi} instance using returned access token.</p>
* and creates a new {@code GitLabApi} instance using returned access token.</p>
...
@@ -441,22 +388,6 @@ public class GitLabApi {
...
@@ -441,22 +388,6 @@ public class GitLabApi {
return
(
GitLabApi
.
login
(
ApiVersion
.
V4
,
url
,
username
,
password
,
ignoreCertificateErrors
));
return
(
GitLabApi
.
login
(
ApiVersion
.
V4
,
url
,
username
,
password
,
ignoreCertificateErrors
));
}
}
/**
* <p>Logs into GitLab using provided {@code username} and {@code password}, and creates a new {@code GitLabApi} instance
* using returned private token and specified GitLab API version.</p>
*
* @param url GitLab URL
* @param username user name for which private token should be obtained
* @param password password for a given {@code username}
* @return new {@code GitLabApi} instance configured for a user-specific token
* @throws GitLabApiException GitLabApiException if any exception occurs during execution
* @deprecated As of release 4.2.0, replaced by {@link #login(String, String, String)}, will be removed in 4.9.0
*/
@Deprecated
public
static
GitLabApi
create
(
String
url
,
String
username
,
String
password
)
throws
GitLabApiException
{
return
(
GitLabApi
.
login
(
url
,
username
,
password
));
}
/**
/**
* <p>If this instance was created with {@link #login(String, String, String)} this method will
* <p>If this instance was created with {@link #login(String, String, String)} this method will
* return the Session instance returned by the GitLab API on login, otherwise returns null.</p>
* return the Session instance returned by the GitLab API on login, otherwise returns null.</p>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment