public interface ProcedureEvent extends Externalizable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EVENT_TYPE
Event type for the procedures changes.
|
static int |
FOLDER_ADDED
A constant used for event type to specify that a folder is added.
|
static int |
FOLDER_MOVED
A constant used for event type to specify that a folder is moved.
|
static int |
FOLDER_REMOVED
A constant used for event type to specify that a folder is removed.
|
static int |
PROCEDURE_ADDED
A constant used for event type to specify that a procedure is added.
|
static int |
PROCEDURE_MODIFIED
A constant used for event type to specify that a procedure is changed.
|
static int |
PROCEDURE_MOVED
A constant used for event type to specify that a procedure is moved.
|
static int |
PROCEDURE_REMOVED
A constant used for event type to specify that a procedure is removed.
|
static int |
PROCEDURE_RENAMED
A constant used for event type to specify that a procedure is renamed.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the previous name of the renamed/removed procedure.
|
java.lang.String |
getPath()
Returns the previous path of the procedure or folder.
|
java.lang.Object |
getSource()
Returns the changed/added object.
|
int |
getType()
Returns the type of the event.
|
readObject, writeObjectstatic final java.lang.String EVENT_TYPE
static final int PROCEDURE_ADDED
getSource() shall return the added procedure.
All the other methods shall return null values. When a procedure is moved other type of event shall be generated.static final int PROCEDURE_REMOVED
getPath() shall return the path
of the removed procedure and the method getName() shall return its name. All the other methods shall return null values.static final int PROCEDURE_MODIFIED
getSource() shall return the changed procedure.
Events with this type will be generated when an existing procedure is changed. Its text, arguments, shortcut, icon can be changed. In this case
getSource() shall return the modified procedure object and all the other methods shall return null.static final int PROCEDURE_RENAMED
getName() will return
the old name of the procedure and the method getSource() will return the actual procedure with its new name. Otherwise the method
getName() will return null.static final int PROCEDURE_MOVED
getPath() will return
the old path of the procedure and the method getSource() will return the moved procedure with its new path. The method
getName() will return null.static final int FOLDER_ADDED
getPath() and getName() will return
null and the method getSource() shall return the added folder.static final int FOLDER_REMOVED
getPath() shall return
the full path of the removed folder and the method getSource() will return null.
In this case there are no events generated for all the procedures and folders which this folder contains.static final int FOLDER_MOVED
getPath() shall return
the previous full path of the moved folder and the method getSource() shall return the folder with its new path.
In this case there are no events generated for the moved procedures/folders children of this folder.int getType()
java.lang.String getPath()
getSource() method.java.lang.String getName()
null when a procedure has been removed or renamed.java.lang.Object getSource()
com.prosyst.mprm.admin.procedures.Procedure
if the event is 'procedure' oriented, com.prosyst.mprm.admin.procedures.Folder if a folder is changed or null
in the case of removal.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.