Package com.dtolabs.rundeck.plugins.scm
Class ScmOperationContextBuilder
- java.lang.Object
-
- com.dtolabs.rundeck.plugins.scm.ScmOperationContextBuilder
-
public class ScmOperationContextBuilder extends java.lang.ObjectBuildsScmOperationContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScmOperationContextBuilderauthContext(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext)Set the auth contextScmOperationContextbuild()static ScmOperationContextBuilderbuilder()static ScmOperationContextBuilderbuilder(ScmOperationContext context)ScmOperationContextBuilderframeworkProject(java.lang.String frameworkProject)set the project nameScmOperationContextBuilderjobId(java.lang.String jobId)Set the job IDScmOperationContextBuilderstorageTree(StorageTree storageTree)Set the storage treeScmOperationContextBuilderuserInfo(ScmUserInfo userInfo)Set the user info
-
-
-
Method Detail
-
builder
public static ScmOperationContextBuilder builder()
- Returns:
- new blank builder
-
builder
public static ScmOperationContextBuilder builder(ScmOperationContext context)
- Parameters:
context- source context- Returns:
- new builder based on the source context
-
frameworkProject
public ScmOperationContextBuilder frameworkProject(java.lang.String frameworkProject)
set the project name- Parameters:
frameworkProject- project name- Returns:
- this builder
-
jobId
public ScmOperationContextBuilder jobId(java.lang.String jobId)
Set the job ID- Parameters:
jobId- job id- Returns:
- this
-
authContext
public ScmOperationContextBuilder authContext(com.dtolabs.rundeck.core.authorization.UserAndRolesAuthContext authContext)
Set the auth context- Parameters:
authContext- auth context- Returns:
- this
-
storageTree
public ScmOperationContextBuilder storageTree(StorageTree storageTree)
Set the storage tree- Parameters:
storageTree- storage tree- Returns:
- this
-
userInfo
public ScmOperationContextBuilder userInfo(ScmUserInfo userInfo)
Set the user info- Parameters:
userInfo- user info- Returns:
- this
-
build
public ScmOperationContext build()
- Returns:
- built context
-
-