com.starteam
Class File.WebCacheWorkSpaceSync

java.lang.Object
  extended by com.starteam.File.WebCacheWorkSpaceSync
All Implemented Interfaces:
File.Digest, File.Revision, File.WorkspaceSync, java.io.Serializable
Enclosing class:
File

public static final class File.WebCacheWorkSpaceSync
extends java.lang.Object
implements File.WorkspaceSync, File.Digest, File.Revision, java.io.Serializable

A serializable implementation of WorkspaceSync that can be used to calculate status through the WebCache Interfaces. In this model, the client application (applet?) runs in the context of a browser and connects to a web server or web service via http. The web server in turn holds a shared cache connection to the StarTeam server. This model supports entire file operations (checkin, checkout etc) via a browser.

See Also:
FileBasedStatusManager, Serialized Form

Constructor Summary
File.WebCacheWorkSpaceSync(File.Revision r, File.Digest d)
          Create a WebCache Workspace Sync from a Revision and a Digest
File.WebCacheWorkSpaceSync(File.WorkspaceSync wss)
          Create a WebCacheWorkspaceSync from a workspace sync
File.WebCacheWorkSpaceSync(GUID guid)
          create a new, empty WebCacheWorkspaceSync
 
Method Summary
 int getContentRevision()
          returns the content revision for this file
 DotNotation getDotNotation()
          returns the dot notation of this file
 File.Digest getFileDigest()
          returns the digest
 MD5 getFileMD5()
          returns the md5 of this file
 long getFileSize()
          returns the size of this file
 DateTime getFileTime()
          returns the file time of this file
 int getObjectID()
          returns the object id of this file
 GUID getRepositoryID()
          returns the repository the file is in
 File.Revision getRevisionIdentifier()
          returns the revision
 int getRevisionNumber()
          returns the revision number of this file
 int getRootObjectID()
          returns the root object id of the file
 void setContentRevision(int rev)
          set the content revision for this sync
 void setDotNotation(DotNotation dot)
          set the dot notation for this sync
 void setFileMD5(MD5 md5)
          sets the MD5 for this sync
 void setFileSize(long val)
          sets the file size of the sync
 void setFileTime(DateTime val)
          set the file time for this sync
 void setObjectID(int id)
          set the object id for this sync
 void setRevisionNumber(int id)
          set the revision number for this sync
 void setRootObjectID(int id)
          set the root object id for this sync
 java.lang.String toString()
          returns a string representation of this sync for debug purposes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

File.WebCacheWorkSpaceSync

public File.WebCacheWorkSpaceSync(File.Revision r,
                                  File.Digest d)
Create a WebCache Workspace Sync from a Revision and a Digest

Parameters:
r - the revision
d - the digest

File.WebCacheWorkSpaceSync

public File.WebCacheWorkSpaceSync(GUID guid)
create a new, empty WebCacheWorkspaceSync

Parameters:
serverID - the server GUID

File.WebCacheWorkSpaceSync

public File.WebCacheWorkSpaceSync(File.WorkspaceSync wss)
Create a WebCacheWorkspaceSync from a workspace sync

Parameters:
wss - the workspace sync
Method Detail

getRevisionIdentifier

public File.Revision getRevisionIdentifier()
returns the revision

Specified by:
getRevisionIdentifier in interface File.WorkspaceSync
Returns:
the revision

getFileDigest

public File.Digest getFileDigest()
returns the digest

Specified by:
getFileDigest in interface File.WorkspaceSync
Returns:
the digest

getRepositoryID

public GUID getRepositoryID()
returns the repository the file is in

Specified by:
getRepositoryID in interface File.Revision
Returns:
the repository the file is in

getRootObjectID

public int getRootObjectID()
returns the root object id of the file

Specified by:
getRootObjectID in interface File.Revision
Returns:
the root object id of the file

setRootObjectID

public void setRootObjectID(int id)
set the root object id for this sync

Specified by:
setRootObjectID in interface File.Revision
Parameters:
id - the root object d of ths sync

getObjectID

public int getObjectID()
returns the object id of this file

Specified by:
getObjectID in interface File.Revision
Returns:
the object id of this file

setObjectID

public void setObjectID(int id)
set the object id for this sync

Specified by:
setObjectID in interface File.Revision
Parameters:
id - the object id for this sync

getRevisionNumber

public int getRevisionNumber()
returns the revision number of this file

Specified by:
getRevisionNumber in interface File.Revision
Returns:
the revision number of this file
See Also:
VersionedObject.getRevisionNumber()

setRevisionNumber

public void setRevisionNumber(int id)
set the revision number for this sync

Specified by:
setRevisionNumber in interface File.Revision
Parameters:
id - the revision number for this sync

getDotNotation

public DotNotation getDotNotation()
returns the dot notation of this file

Specified by:
getDotNotation in interface File.Revision
Returns:
the dot notation of this file

setDotNotation

public void setDotNotation(DotNotation dot)
set the dot notation for this sync

Specified by:
setDotNotation in interface File.Revision
Parameters:
dot - the dot notation for this sync

getContentRevision

public int getContentRevision()
returns the content revision for this file

Specified by:
getContentRevision in interface File.Revision
Returns:
the content revision for this file

setContentRevision

public void setContentRevision(int rev)
set the content revision for this sync

Specified by:
setContentRevision in interface File.Revision
Parameters:
rev - the content revision for this sync

getFileSize

public long getFileSize()
returns the size of this file

Specified by:
getFileSize in interface File.Digest
Returns:
the size of this file

setFileSize

public void setFileSize(long val)
sets the file size of the sync

Specified by:
setFileSize in interface File.Digest
Parameters:
val - the file size of this sync

getFileTime

public DateTime getFileTime()
returns the file time of this file

Specified by:
getFileTime in interface File.Digest
Returns:
the file tme of this file

setFileTime

public void setFileTime(DateTime val)
set the file time for this sync

Specified by:
setFileTime in interface File.Digest
Parameters:
val - the file time for this sync

getFileMD5

public MD5 getFileMD5()
returns the md5 of this file

Specified by:
getFileMD5 in interface File.Digest
Returns:
the md5 of this file

setFileMD5

public void setFileMD5(MD5 md5)
sets the MD5 for this sync

Specified by:
setFileMD5 in interface File.Digest
Parameters:
md5 - the md5 for this sync

toString

public java.lang.String toString()
returns a string representation of this sync for debug purposes

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this sync for debug purposes


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.