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
fb1f0a9f
Commit
fb1f0a9f
authored
Apr 22, 2018
by
Greg Messner
Browse files
Initial commit (#175).
parent
23349232
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/services/JiraService.java
0 → 100644
View file @
fb1f0a9f
package
org.gitlab4j.api.services
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.SecretString
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
JiraService
extends
NotificationService
{
public
static
final
String
URL_PROP
=
"url"
;
public
static
final
String
API_URL_PROP
=
"api_url"
;
public
static
final
String
PROJECT_KEY_PROP
=
"project_key"
;
public
static
final
String
USERNAME_PROP
=
"username"
;
public
static
final
String
JIRA_ISSUE_TRANSITION_ID_PROP
=
"jira_issue_transition_id"
;
private
SecretString
password
;
public
JiraService
withCommitEvents
(
Boolean
commitEventd
)
{
return
withCommitEvents
(
commitEventd
,
this
);
}
public
JiraService
withMergeRequestsEvents
(
Boolean
mergeRequestsEvents
)
{
return
withMergeRequestsEvents
(
mergeRequestsEvents
,
this
);
}
@JsonIgnore
public
SecretString
getPassword
()
{
return
password
;
}
public
void
setPassword
(
SecretString
password
)
{
this
.
password
=
password
;
}
public
JiraService
withUrl
(
SecretString
password
)
{
setPassword
(
password
);
return
(
this
);
}
@JsonIgnore
public
String
getUrl
()
{
return
(
getProperty
(
URL_PROP
));
}
public
void
setUrl
(
String
url
)
{
setProperty
(
URL_PROP
,
url
);
}
public
JiraService
withUrl
(
String
url
)
{
setUrl
(
url
);
return
(
this
);
}
@JsonIgnore
public
String
getApiUrl
()
{
return
(
getProperty
(
API_URL_PROP
));
}
public
void
setApiUrl
(
String
apiUrl
)
{
setProperty
(
API_URL_PROP
,
apiUrl
);
}
public
JiraService
withApiUrl
(
String
apiUrl
)
{
setApiUrl
(
apiUrl
);
return
(
this
);
}
@JsonIgnore
public
String
getProjectKey
()
{
return
(
getProperty
(
PROJECT_KEY_PROP
));
}
public
void
setProjectKey
(
String
projectKey
)
{
setProperty
(
PROJECT_KEY_PROP
,
projectKey
);
}
public
JiraService
withProjectKey
(
String
projectKey
)
{
setProjectKey
(
projectKey
);
return
(
this
);
}
@JsonIgnore
public
String
getUsername
()
{
return
(
getProperty
(
USERNAME_PROP
));
}
public
void
setUsername
(
String
username
)
{
setProperty
(
USERNAME_PROP
,
username
);
}
public
JiraService
withUsername
(
String
username
)
{
setUsername
(
username
);
return
(
this
);
}
@JsonIgnore
public
Integer
getJiraIssueTransitionId
()
{
return
(
getProperty
(
JIRA_ISSUE_TRANSITION_ID_PROP
,
(
Integer
)
null
));
}
public
void
setJiraIssueTransitionId
(
Integer
jiraIssueTransitionId
)
{
setProperty
(
JIRA_ISSUE_TRANSITION_ID_PROP
,
jiraIssueTransitionId
);
}
public
JiraService
withJiraIssueTransitionId
(
Integer
jiraIssueTransitionId
)
{
setJiraIssueTransitionId
(
jiraIssueTransitionId
);
return
(
this
);
}
}
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