|
|||||||||
| 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. |
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. |
java.lang.String |
getName()
Returns the name of this file. |
long |
getSize()
The size of this file in the repository. |
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. |
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 |
isExecutable()
Determines whether or not this file has been marked executable in the repository. |
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, getHistory, getLocker, getRights, getShareTree, getTraces, getView, isDeleted, isFloating, isPinned, isUnread, lock, lock, modifyReadStatus, pinTo, setAttachments, setRights, unlock, unpin, updateRevisionComent |
| Methods inherited from class com.starteam.VersionedObject.WebCacheVersionedObject |
|---|
getDotNotation, getRevisionNumber, getRootObjectID, getViewVersion, isFromHistory |
| Methods inherited from class com.starteam.TrackedObject.WebCacheTrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject.WebCacheLiveObject |
|---|
equals, getContext, getCreatedBy, getCreatedTime, getDisplayName, getID, getObjectID, getServer, getType, getValue, getValue, hashCode, isDirty, isNew, refresh, remove, 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 Filepublic 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.isBinary(),
File.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 void setEOLFormat(File.EOLFormat format)
format - The end-of-line format. Must not be null.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.util.MD5)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.Status
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 | ||||||||