Project: stp

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

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

public class CcDemoProps
extends Object


Field Summary
private static Properties m_props
           
private  File m_propsFile
           
private static String PROPS_FILE
          The name of the default demo property file
 
Constructor Summary
CcDemoProps()
          Construct instance using the default properties file $HOME/cc_cmapi.props
CcDemoProps(File propsFile)
          Construct instance using the specified properties file.
 
Method Summary
 String getCmServerUrl()
          URL of CM Server.
private static File getDefaultPropsFile()
          Get the default properties file.
 String getDemoUcmProjectVob()
          VOB tag of the demo UCM project VOB.
 String getLoginDomain()
          User's OS login domain on the CM Server.
 String getLoginName()
          User's OS login name on the CM Server.
 String getLoginNameAndDomain()
          User's OS login name and domain on the CM Server in the form DOMAIN\loginname.
 String getPassword()
          CearCase domain password on the CM Server.
private  String getRequired(String name)
           
 File getTempDir()
          Client-side temporary directory for creating temp web views, etc.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPS_FILE

private static final String PROPS_FILE
The name of the default demo property file

See Also:
Constant Field Values

m_props

private static Properties m_props

m_propsFile

private final File m_propsFile
Constructor Detail

CcDemoProps

public CcDemoProps()
            throws Exception
Construct instance using the default properties file $HOME/cc_cmapi.props

Throws:
Exception

CcDemoProps

public CcDemoProps(File propsFile)
            throws Exception
Construct instance using the specified properties file.

Throws:
Exception
Method Detail

getLoginName

public String getLoginName()
User's OS login name on the CM Server.


getLoginDomain

public String getLoginDomain()
User's OS login domain on the CM Server. Typically required on Windows CM Server but not on Unix


getLoginNameAndDomain

public String getLoginNameAndDomain()
User's OS login name and domain on the CM Server in the form DOMAIN\loginname.


getPassword

public String getPassword()
CearCase domain password on the CM Server.


getCmServerUrl

public String getCmServerUrl()
URL of CM Server.


getDemoUcmProjectVob

public String getDemoUcmProjectVob()
VOB tag of the demo UCM project VOB.


getTempDir

public File getTempDir()
Client-side temporary directory for creating temp web views, etc. E.g., "c:\temp", /var/tmp


getRequired

private String getRequired(String name)

getDefaultPropsFile

private static File getDefaultPropsFile()
                                 throws Exception
Get the default properties file. By default, look in the current user's home directory for a file called "cc_cmapi.props".

Throws:
Exception

Generated Thu 9-Apr-2015 01:08 AM

Copyright © IBM 2015. All rights reserved.