Class SandboxUtils

java.lang.Object
hudson.scm.localclient.SandboxUtils
All Implemented Interfaces:
Serializable

public class SandboxUtils extends Object implements Serializable
Created by asen on 07-06-2017.
See Also:
  • Field Details

  • Constructor Details

    • SandboxUtils

      public SandboxUtils(IntegrityConfigurable integrityConfigurable, hudson.model.TaskListener listener)
  • Method Details

    • getLocalAPISession

      public ISession getLocalAPISession()
    • verifyCreateSandbox

      protected boolean verifyCreateSandbox(ISession session, IntegrityCMProject siProject, hudson.FilePath workspace, String lineTerminator, String sandboxScope) throws com.mks.api.response.APIException
      Parameters:
      session -
      siProject -
      workspace -
      lineTerminator -
      Throws:
      com.mks.api.response.APIException
    • verifySandbox

      protected boolean verifySandbox(ISession session, IntegrityCMProject siProject, hudson.FilePath workspace) throws com.mks.api.response.APIException
      Throws:
      com.mks.api.response.APIException
    • dropSandbox

      protected boolean dropSandbox(ISession session, hudson.FilePath workspace, IntegrityCMProject siProject) throws com.mks.api.response.APIException
      Parameters:
      workspace -
      Throws:
      com.mks.api.response.APIException
    • resyncSandbox

      public boolean resyncSandbox(ISession session, hudson.FilePath workspace, boolean cleanCopy, boolean deleteNonMembers, boolean restoreTimestamp, File changeLogFile, String includeList, String excludeList, String sandboxScope) throws com.mks.api.response.APIException, FileNotFoundException, UnsupportedEncodingException
      Resync the sandbox - cleanCopy forces the resync unchangedFiles as well.
      Parameters:
      session -
      workspace -
      cleanCopy -
      deleteNonMembers -
      restoreTimestamp -
      changeLogFile -
      includeList -
      excludeList - @return
      Throws:
      com.mks.api.response.APIException
      FileNotFoundException
      UnsupportedEncodingException
    • getChangeLog

      public String getChangeLog(com.mks.api.response.WorkItemIterator itWrokItem) throws com.mks.api.response.APIException
      Throws:
      com.mks.api.response.APIException
    • viewSandboxChanges

      public boolean viewSandboxChanges(ISession session, hudson.FilePath workspace) throws com.mks.api.response.APIException
      View the sandbox for any changes during Polling
      Parameters:
      session -
      workspace -
      Throws:
      com.mks.api.response.APIException
    • terminateClient

      public int terminateClient()