Project: stp

com.ibm.rational.stp.client.samples.cc
Class ViewHelper

Object
  extended by com.ibm.rational.stp.client.samples.cc.ViewHelper

public class ViewHelper
extends Object


Field Summary
private  CcDirectory m_demoDir
           
private  CcDemoProps m_props
           
private  CcProvider m_provider
           
private  CcView m_view
           
private  CcDirectory m_vobRootDir
           
 
Constructor Summary
ViewHelper(CcProvider provider, CcDemoProps props)
           
 
Method Summary
private  CcDirectory createDemoDirectory()
          Create a version-controlled directory in the demo VOB.
(package private)  CcFile createDemoFile(String fileName, boolean controlled)
           
(package private) static String generateUniqueName(String baseName)
          Generate a (hopefully) unique name by adding a random integer to the specified base name.
private  CcDirectory getDemoVobRootDirectory()
          Get the root directory of the demo VOB in the context of the demo web view.
static ViewHelper getNonUcmViewHelper(CcDemoBase env)
           
protected  CcView getView()
          Create a temporary ClearCase web view.
(package private)  void tearDown()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_view

private CcView m_view

m_provider

private final CcProvider m_provider

m_demoDir

private CcDirectory m_demoDir

m_vobRootDir

private CcDirectory m_vobRootDir

m_props

private final CcDemoProps m_props
Constructor Detail

ViewHelper

public ViewHelper(CcProvider provider,
                  CcDemoProps props)
Method Detail

getNonUcmViewHelper

public static ViewHelper getNonUcmViewHelper(CcDemoBase env)

tearDown

void tearDown()
        throws Exception
Throws:
Exception

getView

protected CcView getView()
                  throws Exception
Create a temporary ClearCase web view. This view will be deleted once the demo completes.

Throws:
Exception

generateUniqueName

static String generateUniqueName(String baseName)
Generate a (hopefully) unique name by adding a random integer to the specified base name.


createDemoFile

CcFile createDemoFile(String fileName,
                      boolean controlled)
                throws Exception
Throws:
Exception

createDemoDirectory

private CcDirectory createDemoDirectory()
                                 throws Exception
Create a version-controlled directory in the demo VOB.

Throws:
Exception

getDemoVobRootDirectory

private CcDirectory getDemoVobRootDirectory()
                                     throws Exception
Get the root directory of the demo VOB in the context of the demo web view.

Throws:
Exception

Generated Mon 14-Nov-2011 04:13 AM

Copyright © IBM 2011. All rights reserved.