hudson.plugins.clearcase
Class ClearCaseUcmSCM

java.lang.Object
  extended by hudson.scm.SCM
      extended by hudson.plugins.clearcase.AbstractClearCaseScm
          extended by hudson.plugins.clearcase.ClearCaseUcmSCM
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>

public class ClearCaseUcmSCM
extends AbstractClearCaseScm

SCM for ClearCaseUCM. This SCM will create a UCM view from a stream and apply a list of load rules to it.


Nested Class Summary
static class ClearCaseUcmSCM.ClearCaseUcmScmDescriptor
          ClearCase UCM SCM descriptor
 
Field Summary
 
Fields inherited from class hudson.plugins.clearcase.AbstractClearCaseScm
CLEARCASE_VIEWNAME_ENVSTR, CLEARCASE_VIEWPATH_ENVSTR
 
Fields inherited from class hudson.scm.SCM
PERMISSIONS, TAG
 
Constructor Summary
ClearCaseUcmSCM(java.lang.String stream, java.lang.String loadrules, java.lang.String viewname, java.lang.String mkviewoptionalparam)
           
 
Method Summary
protected  CheckOutAction createCheckOutAction(ClearToolLauncher launcher)
          Create a CheckOutAction that will be used by the checkout method.
protected  PollAction createPollAction(ClearToolLauncher launcher)
          Create a PollAction that will be used by the pollChanges() method.
 java.lang.String[] getBranchNames()
          Return string array containing the branch names that should be used when polling for changes.
 ClearCaseUcmSCM.ClearCaseUcmScmDescriptor getDescriptor()
           
 java.lang.String getLoadRules()
          Return the load rules for the UCM view.
 java.lang.String getStream()
          Return the stream that is used to create the UCM view.
 java.lang.String getVobPaths()
          Return string containing the vob paths that should be used when polling for changes.
 
Methods inherited from class hudson.plugins.clearcase.AbstractClearCaseScm
buildEnvVars, checkout, checkout, createChangeLogParser, createClearToolLauncher, getMkviewOptionalParam, getViewName, pollChanges, supportsPolling
 
Methods inherited from class hudson.scm.SCM
createEmptyChangeLog, getBrowser, getEffectiveBrowser, getModuleRoot, getModuleRoots, nullify, requiresWorkspaceForPolling
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearCaseUcmSCM

@DataBoundConstructor
public ClearCaseUcmSCM(java.lang.String stream,
                                            java.lang.String loadrules,
                                            java.lang.String viewname,
                                            java.lang.String mkviewoptionalparam)
Method Detail

getLoadRules

public java.lang.String getLoadRules()
Return the load rules for the UCM view.

Returns:
string containing the load rules.

getStream

public java.lang.String getStream()
Return the stream that is used to create the UCM view.

Returns:
string containing the stream selector.

getDescriptor

public ClearCaseUcmSCM.ClearCaseUcmScmDescriptor getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.scm.SCM>
Overrides:
getDescriptor in class hudson.scm.SCM

getBranchNames

public java.lang.String[] getBranchNames()
Description copied from class: AbstractClearCaseScm
Return string array containing the branch names that should be used when polling for changes.

Specified by:
getBranchNames in class AbstractClearCaseScm
Returns:
a string array, can not be empty

getVobPaths

public java.lang.String getVobPaths()
Description copied from class: AbstractClearCaseScm
Return string containing the vob paths that should be used when polling for changes.

Specified by:
getVobPaths in class AbstractClearCaseScm
Returns:
string that will be appended at the end of the lshistory command

createCheckOutAction

protected CheckOutAction createCheckOutAction(ClearToolLauncher launcher)
Description copied from class: AbstractClearCaseScm
Create a CheckOutAction that will be used by the checkout method.

Specified by:
createCheckOutAction in class AbstractClearCaseScm
Parameters:
launcher - the command line launcher
Returns:
an action that can check out code from a ClearCase repository.

createPollAction

protected PollAction createPollAction(ClearToolLauncher launcher)
Description copied from class: AbstractClearCaseScm
Create a PollAction that will be used by the pollChanges() method.

Specified by:
createPollAction in class AbstractClearCaseScm
Parameters:
launcher - the command line launcher
Returns:
an action that can poll if there are any changes a ClearCase repository.


Copyright © 2008. All Rights Reserved.