|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.resources.SystemRemoteResource
This class is the internal implementation of the ISystemRemoteResource interface.
Field Summary | |
---|---|
static String |
Copyright
|
protected ISystemRemotePath |
path
|
Constructor Summary | |
---|---|
SystemRemoteResource(ISystemRemotePath path)
Constructor for SystemRemoteResource. |
Method Summary | |
---|---|
ISystemRemoteMarker |
createMarker(String type)
Creates and returns the marker of the specified type on this resource. |
void |
deleteMarkers(String type,
boolean includeSubtypes)
Deletes all markers on this resource of the given type, and optionally deletes such markers from its children. |
boolean |
exists()
Returns whether this resource exists on the remote server. |
boolean |
existsLocally()
|
ISystemRemoteMarker |
findMarker(long id)
Returns the marker with the specified id on this resource, or null if there is no such marker. |
ISystemRemoteMarker[] |
findMarkers(String type,
boolean includeSubtypes)
Returns all markers of the specified type on this resource, and optionally, on its children. |
File |
getLocalCopy()
|
boolean |
getLocalLastModifiedTime()
Returns the last modified time on the client. |
ISystemRemotePath |
getLocation()
|
ISystemRemoteMarker |
getMarker(long id)
Gets the marker with the given id. |
String |
getPersistentProperty(QualifiedName key)
Returns the value of the persistent property of this resource identified by the given key, or null if this resource has no such property. |
boolean |
getRemoteLastModifiedTime()
Returns the last modified time on the server. |
SystemRemoteResourceInfo |
getResourceInfo()
Get the resource info. |
Object |
getSessionProperty(QualifiedName key)
Returns the value of the session property of this resource identified by the given key, or null if this resource has no such property. |
boolean |
isExistsLocally()
Returns whether a local copy of the file exists. |
boolean |
isSynchronized()
Returns whether the local copy, if there is one, is in sync with the remote copy. |
void |
setPersistentProperty(QualifiedName key,
String value)
Sets the value of the persistent property of this resource identified by the given key. |
void |
setSessionProperty(QualifiedName key,
Object value)
Sets the value of the session property of this resource identified by the given key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
protected ISystemRemotePath path
Constructor Detail |
public SystemRemoteResource(ISystemRemotePath path)
Method Detail |
public SystemRemoteResourceInfo getResourceInfo()
public ISystemRemoteMarker createMarker(String type)
ISystemRemoteResource
createMarker
in interface ISystemRemoteResource
ISystemRemoteResource.createMarker(String)
public void deleteMarkers(String type, boolean includeSubtypes)
ISystemRemoteResource
deleteMarkers
in interface ISystemRemoteResource
ISystemRemoteResource.deleteMarkers(String, boolean)
public ISystemRemoteMarker findMarker(long id)
ISystemRemoteResource
findMarker
in interface ISystemRemoteResource
null
ISystemRemoteResource.findMarker(long)
public ISystemRemoteMarker[] findMarkers(String type, boolean includeSubtypes)
ISystemRemoteResource
findMarkers
in interface ISystemRemoteResource
ISystemRemoteResource.findMarkers(String, boolean)
public ISystemRemoteMarker getMarker(long id)
ISystemRemoteResource
getMarker
in interface ISystemRemoteResource
ISystemRemoteResource.getMarker(long)
public boolean exists()
ISystemRemoteResource
exists
in interface ISystemRemoteResource
true
if the resource exists, false
otherwiseISystemRemoteResource.exists()
public ISystemRemotePath getLocation()
public boolean existsLocally()
public File getLocalCopy()
public String getPersistentProperty(QualifiedName key)
ISystemRemoteResource
null
if this resource has no such property.
getPersistentProperty
in interface ISystemRemoteResource
key
- the qualified name of the property
null
if this resource has no such propertyISystemRemoteResource.getPersistentProperty(QualifiedName)
public Object getSessionProperty(QualifiedName key)
ISystemRemoteResource
null
if this resource has no such property.
getSessionProperty
in interface ISystemRemoteResource
key
- the qualified name of the property
null
if this resource has no such propertyISystemRemoteResource.getSessionProperty(QualifiedName)
public void setPersistentProperty(QualifiedName key, String value)
ISystemRemoteResource
null
,
the persistent property is removed from this resource. The change
is made immediately on disk.
Persistent properties are intended to be used by plug-ins to store resource-specific information that should be persisted across platform sessions. The value of a persistent property is a string which should be short (i.e., under 2KB). Unlike session properties, persistent properties are stored on disk and maintained across workspace shutdown and restart.
The qualifier part of the property name must be the unique identifier
of the declaring plug-in (e.g. "com.example.plugin"
).
setPersistentProperty
in interface ISystemRemoteResource
key
- the qualified name of the propertyvalue
- the string value of the property,
or null
if the property is to be removedISystemRemoteResource.setPersistentProperty(QualifiedName, String)
public void setSessionProperty(QualifiedName key, Object value)
ISystemRemoteResource
null
,
the session property is removed from this resource.
Sessions properties are intended to be used as a caching mechanism by ISV plug-ins. They allow key-object associations to be stored with existing resources in the workspace. These key-value associations are maintained in memory (at all times), and the information is lost when a resource is deleted from the workspace, when the parent project is closed, or when the workspace is closed.
The qualifier part of the property name must be the unique identifier
of the declaring plug-in (e.g. "com.example.plugin"
).
setSessionProperty
in interface ISystemRemoteResource
key
- the qualified name of the propertyvalue
- the value of the session property,
or null
if the property is to be removedISystemRemoteResource.setSessionProperty(QualifiedName, Object)
public boolean getLocalLastModifiedTime()
ISystemRemoteResource
getLocalLastModifiedTime
in interface ISystemRemoteResource
ISystemRemoteResource.getLocalLastModifiedTime()
public boolean getRemoteLastModifiedTime()
ISystemRemoteResource
getRemoteLastModifiedTime
in interface ISystemRemoteResource
ISystemRemoteResource.getRemoteLastModifiedTime()
public boolean isExistsLocally()
ISystemRemoteResource
isExistsLocally
in interface ISystemRemoteResource
ISystemRemoteResource.isExistsLocally()
public boolean isSynchronized()
ISystemRemoteResource
isSynchronized
in interface ISystemRemoteResource
ISystemRemoteResource.isSynchronized()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |