public class NotifyChangeEvent extends Object
Contains the details of a change notification event
Constructor and Description |
---|
NotifyChangeEvent(int filter,
int action,
String fname,
boolean dir)
Class constructor
|
NotifyChangeEvent(int filter,
int action,
String fname,
String oldname,
boolean dir)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAction()
Return the action
|
String |
getFileName()
Return the file/directory name
|
int |
getFilter()
Return the event filter type
|
String |
getOldFileName()
Return the old file/directory name, for rename events
|
String |
getShortFileName()
Return the file/directory name only by stripping any leading path
|
String |
getShortOldFileName()
Return the old file/directory name only by stripping any leading path
|
boolean |
hasOldFileName()
Check if the old file/directory name is valid
|
boolean |
isDirectory()
Check if the path refers to a directory
|
String |
toString()
Return the notify change event as a string
|
public NotifyChangeEvent(int filter, int action, String fname, boolean dir)
filter
- intaction
- intfname
- Stringdir
- booleanpublic final int getFilter()
public final int getAction()
public final String getFileName()
public final String getShortFileName()
public final String getOldFileName()
public final String getShortOldFileName()
public final boolean hasOldFileName()
public final boolean isDirectory()
Copyright © 2005–2018 Alfresco Software. All rights reserved.