org.gitlab4j.api.services.ExternalWikiService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gitlab4j-api Show documentation
Show all versions of gitlab4j-api Show documentation
GitLab4J-API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories and servers via the GitLab REST API.
package org.gitlab4j.api.services;
import org.gitlab4j.api.GitLabApiForm;
public class ExternalWikiService extends NotificationService {
public static final String WIKIURL_KEY_PROP = "external_wiki_url";
/**
* Get the form data for this service based on it's properties.
*
* @return the form data for this service based on it's properties
*/
@Override
public GitLabApiForm servicePropertiesForm() {
GitLabApiForm formData = new GitLabApiForm()
.withParam("external_wiki_url", getExternalWikiUrl(), true);
return formData;
}
public String getExternalWikiUrl() {
return this.getProperty(WIKIURL_KEY_PROP);
}
public void setExternalWikiUrl(String endpoint) {
this.setProperty(WIKIURL_KEY_PROP, endpoint);
}
public ExternalWikiService withExternalWikiUrl(String endpoint) {
setExternalWikiUrl(endpoint);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy