public abstract class AsynchronousContentLevelFilter extends ContentLevelFilter
| Modifier | Constructor and Description |
|---|---|
protected |
AsynchronousContentLevelFilter(java.lang.String[] contentSetKeys)
Creates a ContentLevelFilter that works on the content sets
with the specified keys.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
cancelUpdateDir() |
abstract java.util.concurrent.Callable<java.util.List<Subject>> |
getUpdateDirRequestHandler()
Gets a
Callable object that will perform the
asynchronous request. |
void |
postUpdateDirRequestHandlerSubmitted(URLPath srcRoots,
java.lang.String dirRelPath,
java.util.List elementList)
Can be optionally overriden after the asynchronous request from
getUpdateDirRequestHandler has been submitted for
execution. |
updateDirprotected AsynchronousContentLevelFilter(java.lang.String[] contentSetKeys)
contentSetKeys - A non-null, non-empty array of content
set keys for which this ContentLevelFilter will apply. All of
the keys must be a value returned by some
ContentSetProvider.getKey() method.java.lang.IllegalArgumentException - if contentSetKeys
is null or empty or if any item in the contentSetKeys array is
null.public abstract java.util.concurrent.Callable<java.util.List<Subject>> getUpdateDirRequestHandler()
Callable object that will perform the
asynchronous request. Guaranteed to be preceeded by a call to
ContentLevelFilter.updateDir The return value
is a list of Subjects whose structure has changed
as a result of the asynchronous operation, and whose observers will
need to be notified.Subjects whose observers
are to be notified once the asynchronous operations has
completed.UpdateMessage.fireStructureChanged(Subject)public void postUpdateDirRequestHandlerSubmitted(URLPath srcRoots, java.lang.String dirRelPath, java.util.List elementList)
getUpdateDirRequestHandler has been submitted for
execution. Executed synchronously. Defaults to no-op.srcRoots - see ContentLevelFilter.updateDirdirRelPath - see ContentLevelFilter.updateDirelementList - see ContentLevelFilter.updateDirpublic abstract void cancelUpdateDir()