|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.LiveObject.WebCacheLiveObject
com.starteam.TrackedObject.WebCacheTrackedObject
com.starteam.VersionedObject.WebCacheVersionedObject
com.starteam.ViewMember.WebCacheViewMember
com.starteam.Item.WebCacheItem
com.starteam.File.WebCacheFile
public static class File.WebCacheFile
File accessor for cached SDK Items contained objects are obtained from the artifact cache
| Method Summary | |
|---|---|
static File.WebCacheFile |
create(ArtifactCacheManager.Context cntxt,
Folder.WebCacheFolder parent)
Creates a File on the server. |
java.lang.String |
getArchiveName()
The file name of this file's archive file in the vault. |
File.CharacterSet |
getCharacterSet()
Gets the character set used by this file. |
File.Compression |
getCompression()
Gets the compression level of the archive file in the vault. |
DateTime |
getContentModifiedTime()
Gets the "last modified" time of the working file when it was checked in to create this version. |
int |
getContentVersion()
Gets the content version number for this file. |
java.lang.String |
getDescription()
Returns the description of this file. |
File.EOLFormat |
getEOLFormat()
Gets the end-of-line format used by this file's working files on disk. |
java.lang.String |
getExtension()
Returns the file name extension. |
int |
getHiveID()
Gets the ID of the hive where the archive file is stored in the vault. |
File.KeywordFlag |
getKeywordFlag()
returns the KeywordFlag property value for this File |
MD5 |
getMD5()
The MD5 of the file contents for this version. |
File.WebCacheFile |
getMergeVersion(File.WebCacheWorkSpaceSync localSync)
Returns a revision from this file's history that represents the most recent common ancestor of this file with the last known revision on disk. |
java.lang.String |
getName()
Returns the name of this file. |
long |
getSize()
The size of this file in the repository. |
static File.Status |
getStatus(File.WebCacheWorkSpaceSync remoteSync,
File.WebCacheWorkSpaceSync localSync,
long size,
DateTime lastModified)
return a computed Status for a file based on the local and remote Workspace sync's specified via this interface The local Sync record is expected to have been pulled from the sync database on the client machine, the remote Sync record is expected to have been pulled from a web server surfacing web cache file objects the two sync objects are expected to be mapped to each other by fully qualified path to file name. |
static File.Status |
getStatus(File.WebCacheWorkSpaceSync remoteSync,
File.WebCacheWorkSpaceSync localSync,
MD5 md5)
return a computed Status for a file based on the local and remote Workspace sync's specified via this interface The local Sync record is expected to have been pulled from the sync database on the client machine, the remote Sync record is expected to have been pulled from a web server surfacing web cache file objects the two sync objects are expected to be mapped to each other by fully qualified path to file name. |
File.Status |
getStatus(File.WebCacheWorkSpaceSync sync,
long size,
DateTime lastModified)
return a computed Status for this file based on the current state of the file in memory (that is representative of the content saved in the repository) and a WorkSpace Sync specified via this interface. |
File.Status |
getStatus(File.WebCacheWorkSpaceSync sync,
MD5 md5)
return a computed Status for this file based on the current state of the file in memory (that is representative of the content saved in the repository) and a WorkSpace Sync specified via this interface. |
boolean |
getUsesKeywords()
Tells whether or not this file will use keyword expansion. |
int |
getVaultVersion()
Returns the vault version number for this file. |
File.WebCacheWorkSpaceSync |
getWorkspaceSync()
Returns a workspace sync representing this file's content as checked into the repository Note that this sync record need not match the sync record for the file itself on disk The file, in this case, would be in a users workspace on a file system with no direct access to the StarTeam server. |
boolean |
isBinary()
Tells whether this file (in the repository) has been determined to be a binary file. |
boolean |
isExecutable()
Determines whether or not this file has been marked executable in the repository. |
boolean |
isUnicode()
Tells whether this file (in the repository) has been determined to be a UNICODE file. |
void |
setCharacterSet(File.CharacterSet s)
Sets the character set used by this file. |
void |
setContentModifiedTime(DateTime time)
Sets this file's content modification time. |
void |
setDescription(java.lang.String description)
Sets the description of this file. |
void |
setEOLFormat(File.EOLFormat format)
Sets the end-of-line format used by this file's working files on disk. |
void |
setExecutable(boolean isExecutable)
Determines whether or not this file has been marked executable in the repository. |
void |
setName(java.lang.String name)
Set the name of this file |
| Methods inherited from class com.starteam.Item.WebCacheItem |
|---|
create, getLabels, getLinks, getParentFolder, moveTo, moveTo |
| Methods inherited from class com.starteam.ViewMember.WebCacheViewMember |
|---|
getAttachments, getComment, getDisplayValue, getDotNotation, getExternalID, getExternalURL, getHistory, getLocker, getPresentationID, getRights, getShareTree, getTraces, getView, isDeleted, isFloating, isPinned, isUnread, lock, lock, modifyReadStatus, pinTo, setAttachments, setExternalID, setExternalURL, setRights, unlock, unpin, updateRevisionComment |
| Methods inherited from class com.starteam.VersionedObject.WebCacheVersionedObject |
|---|
getRevisionNumber, getRootObjectID, getViewVersion, isFromHistory |
| Methods inherited from class com.starteam.TrackedObject.WebCacheTrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject.WebCacheLiveObject |
|---|
addTo, equals, getContext, getCreatedBy, getCreatedTime, getDisplayName, getID, getObjectID, getServer, getType, getValue, getValue, hashCode, hasValue, isDirty, isNew, refresh, remove, removeFrom, setValue, setValue, toStarTeamURL, update |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static File.WebCacheFile create(ArtifactCacheManager.Context cntxt,
Folder.WebCacheFolder parent)
File on the server.
This file may be saved by assigning the various properties and then calling
update() on the WebCacheItem object, or it may be added to a
WebCacheViewMemberCollection, which is then saved in a transacted context.
cntxt - the ArtifactCacheManager User Session Contextparent - the parent folder in which this new file will be created.
The parent folder should be from the artifact cache
File.WebCacheFile, wrapping a new File
public static File.Status getStatus(File.WebCacheWorkSpaceSync remoteSync,
File.WebCacheWorkSpaceSync localSync,
MD5 md5)
remoteSync - a sync record extracted from a web server surfacing web cache file objectslocalSync - a sync record extracted from a syncdb on an end user's local machinemd5 - the md5 of the disk file that maps the two sync records to each other
File.WebCacheFile.getWorkspaceSync()
public static File.Status getStatus(File.WebCacheWorkSpaceSync remoteSync,
File.WebCacheWorkSpaceSync localSync,
long size,
DateTime lastModified)
remoteSync - a sync record extracted from a web server surfacing web cache file objectslocalSync - a sync record extracted from a syncdb on an end user's local machinesize - the size of the disk file that maps the two sync records to each otherlastModified - the last modified time of the disk file that maps the two sync records to each other
File.WebCacheFile.getWorkspaceSync()public void setName(java.lang.String name)
name - the name of this filepublic java.lang.String getName()
File.getFullName(),
LiveObject.Type.NameProperty,
File.Type.PropertyCollection.NAMEpublic long getSize()
File.Type.SizeProperty,
File.Type.PropertyCollection.SIZEpublic java.lang.String getArchiveName()
File.Type.ArchiveNameProperty,
File.Type.PropertyCollection.ARCHIVE_NAMEpublic int getHiveID()
File.Type.HiveProperty,
File.Type.PropertyCollection.HIVEpublic File.KeywordFlag getKeywordFlag()
File.Type.KeywordFlagProperty,
File.Type.PropertyCollection.KEYWORD_FLAGpublic MD5 getMD5()
File.Type.MD5Property,
File.Type.PropertyCollection.MD5,
MD5public File.Compression getCompression()
File.Compression,
File.Type.CompressionProperty,
File.Type.PropertyCollection.COMPRESSIONpublic File.CharacterSet getCharacterSet()
File.WebCacheFile.isBinary(),
File.WebCacheFile.isUnicode(),
File.Type.CharacterSetProperty,
File.Type.PropertyCollection.CHARACTER_SETpublic void setCharacterSet(File.CharacterSet s)
s - The character set. May not be null.File.Type.CharacterSetProperty,
File.Type.PropertyCollection.CHARACTER_SETpublic File.EOLFormat getEOLFormat()
File.EOLFormat,
File.Type.EOLFormatProperty,
File.Type.PropertyCollection.EOL_FORMATpublic java.lang.String getExtension()
File.Type.ExtensionProperty.NAMEpublic void setEOLFormat(File.EOLFormat format)
format - The end-of-line format. Must not be null.public boolean isBinary()
FileUtils.isBinary(java.io.File)public boolean isUnicode()
FileUtils.isUnicode(byte[], int)public boolean isExecutable()
File.Type.IsExecutableProperty,
File.Type.PropertyCollection.IS_EXECUTABLEpublic void setExecutable(boolean isExecutable)
isExecutable - true if the file has been marked executable in the repository;
false otherwise.File.Type.IsExecutableProperty,
File.Type.PropertyCollection.IS_EXECUTABLEpublic java.lang.String getDescription()
LiveObject.Type.DescriptionProperty.NAMEpublic void setDescription(java.lang.String description)
update() or one of the checkin
methods.
description - the new description of this fileLiveObject.Type.DescriptionProperty.NAME,
LiveObject.WebCacheLiveObject.update()public int getVaultVersion()
File.Type.VaultVersionPropertypublic int getContentVersion()
File.Type.ContentVersionProperty,
File.Type.PropertyCollection.CONTENT_VERSION,
File.WebCacheFile.getStatus(com.starteam.File.WebCacheWorkSpaceSync, com.starteam.File.WebCacheWorkSpaceSync, com.starteam.util.MD5)public File.WebCacheFile getMergeVersion(File.WebCacheWorkSpaceSync localSync)
localSync - a sync record extracted from a syncdb on an end user's local machine
public DateTime getContentModifiedTime()
File.Type.PropertyCollection.CONTENT_MODIFIFIED_TIME,
File.WebCacheFile.setContentModifiedTime(DateTime)public void setContentModifiedTime(DateTime time)
time - the content modification time for this fileFile.Type.PropertyCollection.CONTENT_MODIFIFIED_TIME,
File.WebCacheFile.getContentModifiedTime()public File.WebCacheWorkSpaceSync getWorkspaceSync()
FileBasedStatusManager
public File.Status getStatus(File.WebCacheWorkSpaceSync sync,
MD5 md5)
sync - the sync to test againstmd5 - the MD5 of the working file on disk (which may be different from the md5
stored in the sync database and/or the md5 of the file in the repository)
FileBasedStatusManager,
File.Statuspublic boolean getUsesKeywords()
DisembodiedException - if this File is disembodiedViewMember.isDisembodied()
public File.Status getStatus(File.WebCacheWorkSpaceSync sync,
long size,
DateTime lastModified)
sync - the sync to test againstsize - the size of the working file on disk (which may be different from the size
stored in the sync database and/or the size of the file in the repository)lastModified - the last modified time of the working file on disk (which may be
different from the last modified time stored in the sync database and/or
the last modified time of the file in the repository)
FileBasedStatusManager,
File.Status
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||