hudson.plugins.clearcase.ucm
Class UcmCommon
java.lang.Object
hudson.plugins.clearcase.ucm.UcmCommon
public class UcmCommon
- extends java.lang.Object
- Author:
- kyosi
|
Method Summary |
static java.lang.String[] |
generateLoadRulesFromBaselines(ClearTool clearTool,
java.lang.String stream,
java.util.List<Baseline> baselines)
Takes a list of baselines as argument, and return the load rules for all components matching these baselines |
static java.util.List<Baseline> |
getComponentsForBaselines(ClearTool clearTool,
java.util.List<Component> componentsList,
boolean isUseDynamicView,
java.lang.String viewName,
hudson.FilePath filePath,
java.util.List<java.lang.String> baselinesNames)
|
static Baseline |
getDataforBaseline(ClearTool clearTool,
hudson.FilePath filePath,
java.lang.String blName)
Get the component binding to the baseline |
static java.util.List<java.lang.String> |
getDiffBlVersions(ClearTool clearTool,
java.lang.String viewRootDirectory,
java.lang.String bl1,
java.lang.String bl2)
|
static java.util.List<Baseline> |
getFoundationBaselines(ClearTool clearTool,
java.lang.String stream)
|
static java.util.List<java.lang.String> |
getLatestBaselineNames(ClearTool clearTool,
boolean isUseDynamicView,
java.lang.String viewName,
hudson.FilePath filePath,
java.util.List<java.lang.String> readWriteComponents)
|
static java.util.List<Baseline> |
getLatestBaselines(ClearTool clearTool,
java.lang.String stream)
|
static java.util.List<Baseline> |
getLatestBlsWithCompOnStream(ClearTool clearTool,
java.lang.String stream,
java.lang.String view)
|
static java.lang.String |
getNoVob(java.lang.String element)
|
static java.util.List<java.lang.String> |
getReadWriteComponents(java.util.List<Component> components)
|
static java.util.List<Component> |
getStreamComponentsDesc(ClearTool clearTool,
java.lang.String streamName)
|
static java.lang.String |
getVersionDescription(ClearTool clearTool,
java.lang.String version,
java.lang.String format)
|
static java.lang.String |
getVob(java.lang.String element)
|
static void |
rebase(ClearTool clearTool,
java.lang.String viewName,
java.util.List<Baseline> baselines)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UcmCommon
public UcmCommon()
generateLoadRulesFromBaselines
public static java.lang.String[] generateLoadRulesFromBaselines(ClearTool clearTool,
java.lang.String stream,
java.util.List<Baseline> baselines)
throws java.io.IOException,
java.lang.InterruptedException
- Takes a list of baselines as argument, and return the load rules for all components matching these baselines
- Parameters:
clearTool - stream - baselines -
- Returns:
-
- Throws:
java.io.IOException
java.lang.InterruptedException
getLatestBaselineNames
public static java.util.List<java.lang.String> getLatestBaselineNames(ClearTool clearTool,
boolean isUseDynamicView,
java.lang.String viewName,
hudson.FilePath filePath,
java.util.List<java.lang.String> readWriteComponents)
throws java.io.IOException,
java.lang.InterruptedException
- Parameters:
clearToolLauncher - isUseDynamicView - viewName - filePath - readWriteComponents - . if null both baselines on read and read-write components will be returned
- Returns:
- List of latest baselines on read write components (only)
- Throws:
java.lang.InterruptedException
java.io.IOException
java.lang.Exception
getComponentsForBaselines
public static java.util.List<Baseline> getComponentsForBaselines(ClearTool clearTool,
java.util.List<Component> componentsList,
boolean isUseDynamicView,
java.lang.String viewName,
hudson.FilePath filePath,
java.util.List<java.lang.String> baselinesNames)
throws java.lang.InterruptedException,
java.io.IOException
- Parameters:
clearToolLauncher - isUseDynamicView - viewName - filePath - baselinesNames -
- Returns:
- list of BaselineDesc (baseline name and component name)
- Throws:
java.lang.InterruptedException
java.io.IOException
getDataforBaseline
public static Baseline getDataforBaseline(ClearTool clearTool,
hudson.FilePath filePath,
java.lang.String blName)
throws java.lang.InterruptedException,
java.io.IOException
- Get the component binding to the baseline
- Parameters:
clearToolLauncher - filePath - blName - the baseline name like 'deskCore_3.2-146_2008-11-14_18-07-22.3543@\P_ORC'
- Returns:
- the component name like 'Desk_Core@\P_ORC'
- Throws:
java.lang.InterruptedException
java.io.IOException
getLatestBaselines
public static java.util.List<Baseline> getLatestBaselines(ClearTool clearTool,
java.lang.String stream)
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
getFoundationBaselines
public static java.util.List<Baseline> getFoundationBaselines(ClearTool clearTool,
java.lang.String stream)
throws java.io.IOException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
getStreamComponentsDesc
public static java.util.List<Component> getStreamComponentsDesc(ClearTool clearTool,
java.lang.String streamName)
throws java.io.IOException,
java.lang.InterruptedException
- Parameters:
clearToolLauncher - streamName -
- Returns:
- list of components - name and isModifiable
- Throws:
java.io.IOException
java.lang.InterruptedException
getLatestBlsWithCompOnStream
public static java.util.List<Baseline> getLatestBlsWithCompOnStream(ClearTool clearTool,
java.lang.String stream,
java.lang.String view)
throws java.io.IOException,
java.lang.InterruptedException
- Returns:
- List of latest BaseLineDesc (baseline + component) for stream. Only baselines on read-write components
are returned
- Throws:
java.lang.InterruptedException
java.io.IOException
java.lang.Exception
getReadWriteComponents
public static java.util.List<java.lang.String> getReadWriteComponents(java.util.List<Component> components)
- Parameters:
componentsDesc -
- Returns:
- list of read-write components out of components list (removing read-only components)
getDiffBlVersions
public static java.util.List<java.lang.String> getDiffBlVersions(ClearTool clearTool,
java.lang.String viewRootDirectory,
java.lang.String bl1,
java.lang.String bl2)
throws java.io.IOException,
java.lang.InterruptedException
- Parameters:
clearToolLauncher - viewRootDirectory - bl1 - bl2 -
- Returns:
- list of versions that were changed between two baselines
- Throws:
java.io.IOException
java.lang.InterruptedException
getVersionDescription
public static java.lang.String getVersionDescription(ClearTool clearTool,
java.lang.String version,
java.lang.String format)
throws java.io.IOException,
java.lang.InterruptedException
- Parameters:
clearToolLauncher - version -
- Returns:
- version description
- Throws:
java.io.IOException
java.lang.InterruptedException
rebase
public static void rebase(ClearTool clearTool,
java.lang.String viewName,
java.util.List<Baseline> baselines)
throws java.io.IOException,
java.lang.InterruptedException
- Parameters:
clearToolLauncher - stream - baselines -
- Throws:
java.io.IOException
java.lang.InterruptedException
getNoVob
public static java.lang.String getNoVob(java.lang.String element)
- Parameters:
clearToolLauncher - element -
- Returns:
getVob
public static java.lang.String getVob(java.lang.String element)
Copyright © 2010. All Rights Reserved.