org.electrocodeogram.cpc.core.api.data.special
Interface IRemoteStoreCloneFile

All Superinterfaces:
java.lang.Cloneable, org.eclipse.core.runtime.IAdaptable, ICloneDataElement, ICloneFile, ICloneObject, java.io.Serializable
All Known Subinterfaces:
ICloneFileInterfaces

public interface IRemoteStoreCloneFile
extends ICloneFile

Extension interface for ICloneFile which provides access to internal data fields for use only by an IStoreProvider.

All ICloneFile implementations have to implement this interface.

Rationale:

These fields should not be accessed by other plugins. They are therefore "hidden" by this extra interface. The fact that an ICloneFile object will need to be cast to this interface before any of the fields can be accessed is meant to work as a deterrent for accidental access to these fields.
The ICloneObjectExtension mechanism is not used by the base CPC plugins for performance reasons.

Author:
vw
See Also:
ICloneFile

Field Summary
 
Fields inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneFile
PERSISTENCE_CLASS_IDENTIFIER
 
Fields inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneObject
PERSISTENCE_OBJECT_IDENTIFIER
 
Method Summary
 java.lang.String getRepositoryVersion()
          The current repository version number for the file underlying this ICloneFile object.
 boolean isRemoteDirty()
          Whether the clone data for this file was locally modified since the last sync with the repository and must therefore be sent to the repository with the next commit.
 void setRemoteDirty(boolean remoteDirty)
          Sets the remote dirty flag for this clone file.
 void setRepositoryVersion(java.lang.String repositoryVersion)
          This value equals the ones in EclipseTeamEvent.getNewRevision().
 
Methods inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneFile
getModificationDate, getPath, getProject, getSize
 
Methods inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneObject
addExtension, clone, equals, equalsAll, getExtension, getExtensions, getUuid, hasExtensions, hashCode, isMarked, removeExtension, removeExtension, setMarked, toString
 
Methods inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneDataElement
isSealed, seal
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getRepositoryVersion

java.lang.String getRepositoryVersion()
The current repository version number for the file underlying this ICloneFile object.
This value equals the ones in EclipseTeamEvent.getNewRevision().

Returns:
repository version or NULL if not set

setRepositoryVersion

void setRepositoryVersion(java.lang.String repositoryVersion)
This value equals the ones in EclipseTeamEvent.getNewRevision().

Parameters:
repositoryVersion - the repository version to set, may be null

isRemoteDirty

boolean isRemoteDirty()
Whether the clone data for this file was locally modified since the last sync with the repository and must therefore be sent to the repository with the next commit.


setRemoteDirty

void setRemoteDirty(boolean remoteDirty)
Sets the remote dirty flag for this clone file.

See Also:
isRemoteDirty()