Package jenkins.plugins.slack.user
Class SlackUserIdResolver
java.lang.Object
hudson.model.AbstractDescribableImpl<SlackUserIdResolver>
jenkins.plugins.slack.user.SlackUserIdResolver
- All Implemented Interfaces:
ExtensionPoint
,Describable<SlackUserIdResolver>
- Direct Known Subclasses:
EmailSlackUserIdResolver
,NoSlackUserIdResolver
public abstract class SlackUserIdResolver
extends AbstractDescribableImpl<SlackUserIdResolver>
implements ExtensionPoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected org.apache.http.impl.client.CloseableHttpClient
-
Constructor Summary
ModifierConstructorDescriptionprotected
SlackUserIdResolver
(String authToken, org.apache.http.impl.client.CloseableHttpClient httpClient) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionList<SlackUserIdResolver>
all()
All registeredSlackUserIdResolver
s.final String
findOrResolveUserId
(User user) protected abstract String
resolveUserId
(User user) resolveUserIdsForChangeLogSet
(ChangeLogSet changeLogSet) resolveUserIdsForChangeLogSets
(List<ChangeLogSet> changeLogSets) resolveUserIdsForRun
(Run run) void
setAuthToken
(String authToken) void
setHttpClient
(org.apache.http.impl.client.CloseableHttpClient httpClient)
-
Field Details
-
authToken
-
httpClient
protected org.apache.http.impl.client.CloseableHttpClient httpClient
-
-
Constructor Details
-
SlackUserIdResolver
protected SlackUserIdResolver(String authToken, org.apache.http.impl.client.CloseableHttpClient httpClient)
-
-
Method Details
-
findOrResolveUserId
-
resolveUserId
-
resolveUserIdsForRun
-
resolveUserIdsForChangeLogSet
-
resolveUserIdsForChangeLogSets
-
setHttpClient
public void setHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient) -
setAuthToken
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<SlackUserIdResolver>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<SlackUserIdResolver>
-
all
All registeredSlackUserIdResolver
s.- Returns:
- all SlackUserIdResolver as an ExtensionList
-