|
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.model.impl.SystemRemoteChangeEvent
For listeners interested in changes with remote resources. These events are designed to state what the change to the resource was, not to optimize those events for a GUI (eg, a delete event versus a refresh event)
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from interface com.ibm.etools.systems.model.ISystemRemoteChangeEvents |
---|
SYSTEM_REMOTE_RESOURCE_CHANGED, SYSTEM_REMOTE_RESOURCE_CREATED, SYSTEM_REMOTE_RESOURCE_DELETED, SYSTEM_REMOTE_RESOURCE_RENAMED |
Constructor Summary | |
---|---|
SystemRemoteChangeEvent()
Constructor you shouldn't use unless you intend to call the setters |
|
SystemRemoteChangeEvent(int eventType,
Object resource,
Object resourceParent,
SubSystem subsystem)
Constructor for non-rename event |
|
SystemRemoteChangeEvent(int eventType,
Object resource,
Object resourceParent,
SubSystem subsystem,
String oldName)
Constructor for a rename event. |
Method Summary | |
---|---|
int |
getEventType()
Get the event type, such as ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED . |
String |
getOldName()
Get the old name of the resource, in the event of a resource rename. |
Viewer |
getOriginatingViewer()
Get the originating viewer from which this remote resource change event comes from. |
Object |
getResource()
Get the resource that this event applies to It must either be the binary object of the resource, or the absolute name of the resource. |
Object |
getResourceParent()
Get the parent remote object for the affected remote object. |
SubSystem |
getSubSystem()
Get the subsystem in which this resource resides. |
void |
setEventType(int eventType)
Reset the event type |
void |
setOldName(String oldName)
Reset the old name on a rename event |
void |
setOriginatingViewer(Viewer originatingViewer)
Set the originating viewer. |
void |
setResource(Object resource)
Reset the resource |
void |
setResourceParent(Object resourceParent)
Reset the resource's remote resource parent |
void |
setSubSystem(SubSystem subsystem)
Reset the subsystem |
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
Constructor Detail |
public SystemRemoteChangeEvent(int eventType, Object resource, Object resourceParent, SubSystem subsystem)
eventType
- - one of the constants from ISystemRemoteChangeEvents
resource
- - the remote resource object, or absolute name of the resource as would be given by calling getAbsoluteName on its remote adapterresourceParent
- - the remote resource's parent object, or absolute name, if that is known. If it is non-null, this will aid in refreshing occurences of that parent.subsystem
- - the subsystem which contains this remote resource. This allows the search for impacts to be
limited to subsystems of the same parent factory, and to connections with the same hostname as the subsystem's connection.public SystemRemoteChangeEvent(int eventType, Object resource, Object resourceParent, SubSystem subsystem, String oldName)
eventType
- - one of the constants from ISystemRemoteChangeEvents
resource
- - the remote resource object, or absolute name of the resource as would be given by calling getAbsoluteName on its remote adapterresourceParent
- - the remote resource's parent object, or absolute name, if that is known. If it is non-null, this will aid in refreshing occurences of that parent.subsystem
- - the subsystem which contains this remote resource. This allows the search for impacts to be
limited to subsystems of the same parent factory, and to connections with the same hostname as the subsystem's connection.oldName
- - on a rename operation, this is the absolute name of the resource prior to the renamepublic SystemRemoteChangeEvent()
Method Detail |
public void setEventType(int eventType)
public void setResource(Object resource)
public void setResourceParent(Object resourceParent)
public void setSubSystem(SubSystem subsystem)
public void setOldName(String oldName)
public void setOriginatingViewer(Viewer originatingViewer)
public int getEventType()
ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED
.
getEventType
in interface ISystemRemoteChangeEvent
ISystemRemoteChangeEvents
public Object getResource()
getResource
in interface ISystemRemoteChangeEvent
public Object getResourceParent()
getResourceParent
in interface ISystemRemoteChangeEvent
public SubSystem getSubSystem()
getSubSystem
in interface ISystemRemoteChangeEvent
public String getOldName()
getOldName
in interface ISystemRemoteChangeEvent
public Viewer getOriginatingViewer()
getOriginatingViewer
in interface ISystemRemoteChangeEvent
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |