com.jbase.jbuilder5vcs
Class P4ClientSpec

java.lang.Object
  |
  +--com.jbase.jbuilder5vcs.P4ClientSpec

public class P4ClientSpec
extends java.lang.Object

Title: JBuilder/Perforce
Description: Integration of Perforce on jBuilder
This class is a mirror of the P4 client, it maintain the list of
file on the pending list and on the depot list. Copyright: Copyright (c) 2001

Company:
jBase.

Since:
JDK 1.3
Version:
1.0
Author:
Hervé Aubert, Nicolas Jorand

Field Summary
 com.borland.primetime.vfs.Url _url
           
static java.lang.String KEY_ACCESS
           
static java.lang.String KEY_CLIENT
           
static java.lang.String KEY_DESCRIPTION
           
static java.lang.String KEY_FILES
           
static java.lang.String KEY_HOST
           
static java.lang.String KEY_OPTIONS
           
static java.lang.String KEY_OWNER
           
static java.lang.String KEY_ROOT
           
static java.lang.String KEY_UPDATE
           
static java.lang.String KEY_VIEW
           
 
Constructor Summary
P4ClientSpec()
           
P4ClientSpec(java.lang.String ClientSpec, java.lang.String sListOfFile, java.lang.String sListPending)
          Creates new P4ClientSpec
 
Method Summary
 void addFileOnDepot(java.lang.StringBuffer sFileToAdd)
          Add filse on the depot colection
 void addFileOnPending(java.lang.StringBuffer sFileToAdd)
          Add filse on the pending colection
 java.lang.String getAccess()
           
 java.lang.String getClient()
           
 java.lang.String getDepot()
           
 java.lang.String getDescription()
           
 java.lang.String getHost()
           
 java.lang.String getOptions(int id)
           
 java.lang.String getOwner()
           
 java.lang.String getRoot()
           
 java.util.Map getStatus(com.borland.primetime.node.Project project)
          Get the status list of the specified project,
 java.lang.String getUpdate()
           
 boolean isUnderVCS(java.lang.String sFile, int nDepotPending)
          Check on the collection respective (depot or pending) if
static void main(java.lang.String[] argv)
          For test only
 void refresh(java.lang.String ClientSpec, java.lang.String sListOfFile, java.lang.String sListPending)
          For refresh the list of avaible file on P4 and reconfigure
 void removeFileFromPending(java.lang.StringBuffer sFileToRemove)
          Remove file from the pending colection
 void setAccess(java.lang.String access)
           
 void setClient(java.lang.String client)
           
 void setDepot(java.lang.String depot)
          Properties Get and Set
 void setDescriptiont(java.lang.String description)
           
 void setHost(java.lang.String host)
           
 void setOptions(java.lang.String options, int id)
           
 void setOwner(java.lang.String owner)
           
 void setRoot(java.lang.String root)
           
 void setUpdate(java.lang.String update)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_CLIENT

public static final java.lang.String KEY_CLIENT

KEY_UPDATE

public static final java.lang.String KEY_UPDATE

KEY_ACCESS

public static final java.lang.String KEY_ACCESS

KEY_OWNER

public static final java.lang.String KEY_OWNER

KEY_HOST

public static final java.lang.String KEY_HOST

KEY_DESCRIPTION

public static final java.lang.String KEY_DESCRIPTION

KEY_ROOT

public static final java.lang.String KEY_ROOT

KEY_OPTIONS

public static final java.lang.String KEY_OPTIONS

KEY_VIEW

public static final java.lang.String KEY_VIEW

KEY_FILES

public static final java.lang.String KEY_FILES

_url

public com.borland.primetime.vfs.Url _url
Constructor Detail

P4ClientSpec

public P4ClientSpec()

P4ClientSpec

public P4ClientSpec(java.lang.String ClientSpec,
                    java.lang.String sListOfFile,
                    java.lang.String sListPending)
Creates new P4ClientSpec
Method Detail

setDepot

public void setDepot(java.lang.String depot)
Properties Get and Set

getDepot

public java.lang.String getDepot()

setClient

public void setClient(java.lang.String client)

getClient

public java.lang.String getClient()

setUpdate

public void setUpdate(java.lang.String update)

getUpdate

public java.lang.String getUpdate()

setAccess

public void setAccess(java.lang.String access)

getAccess

public java.lang.String getAccess()

setOwner

public void setOwner(java.lang.String owner)

getOwner

public java.lang.String getOwner()

setHost

public void setHost(java.lang.String host)

getHost

public java.lang.String getHost()

setDescriptiont

public void setDescriptiont(java.lang.String description)

getDescription

public java.lang.String getDescription()

setRoot

public void setRoot(java.lang.String root)

getRoot

public java.lang.String getRoot()

getOptions

public java.lang.String getOptions(int id)

setOptions

public void setOptions(java.lang.String options,
                       int id)

isUnderVCS

public boolean isUnderVCS(java.lang.String sFile,
                          int nDepotPending)
Check on the collection respective (depot or pending) if

the file past on parameter exist.


getStatus

public java.util.Map getStatus(com.borland.primetime.node.Project project)
Get the status list of the specified project,

addFileOnDepot

public void addFileOnDepot(java.lang.StringBuffer sFileToAdd)
Add filse on the depot colection
Parameters:
sFileToAdd - List of files to add

addFileOnPending

public void addFileOnPending(java.lang.StringBuffer sFileToAdd)
Add filse on the pending colection
Parameters:
sFileToAdd - List of files to add

removeFileFromPending

public void removeFileFromPending(java.lang.StringBuffer sFileToRemove)
Remove file from the pending colection
Parameters:
sFileToRemove - List of files to add

refresh

public void refresh(java.lang.String ClientSpec,
                    java.lang.String sListOfFile,
                    java.lang.String sListPending)
For refresh the list of avaible file on P4 and reconfigure

main

public static void main(java.lang.String[] argv)
For test only