Class AbstractScm
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
io.jenkins.blueocean.rest.impl.pipeline.scm.AbstractScm
- All Implemented Interfaces:
io.jenkins.blueocean.rest.Reachable
- Author:
- Vivek Pandey
-
Field Summary
Fields inherited from class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
CREDENTIAL_ID, ID, URI, VALIDATE, X_CREDENTIAL_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected org.kohsuke.stapler.HttpResponse
createResponse
(String credentialId) protected User
Gives authenticated userprotected static String
getCredentialIdFromRequest
(org.kohsuke.stapler.StaplerRequest request) protected static AccessControlled
Methods inherited from class io.jenkins.blueocean.rest.impl.pipeline.scm.Scm
getCredentialId, getId, getOrganizations, getServers, getUri, validateAndCreate
Methods inherited from class io.jenkins.blueocean.rest.model.Resource
getLinks, getState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jenkins.blueocean.rest.Reachable
getLink
-
Constructor Details
-
AbstractScm
public AbstractScm()
-
-
Method Details
-
getAuthenticatedUser
Gives authenticated user- Returns:
- logged in
User
- Throws:
io.jenkins.blueocean.commons.ServiceException.UnauthorizedException
-
createResponse
-
getCredentialIdFromRequest
@CheckForNull protected static String getCredentialIdFromRequest(@NonNull org.kohsuke.stapler.StaplerRequest request) -
getRootOrgFolder
-
checkPermission
protected void checkPermission()
-