|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.content.ContentManager
public class ContentManager
The main access point for the content management system.
| Field Summary | |
|---|---|
static String |
FOLDER_TYPE
The MIME type given to folders. |
static String |
UNKNOWN_TYPE
The MIME type given to unrecognized files. |
| Method Summary | |
|---|---|
static void |
dumpBatchPaths()
Dump information about paths marked for batch changes. |
static void |
dumpContentListeners()
Dump information about registered content listeners. |
static void |
dumpHandlers()
Dump information about registered handlers (recognizers). |
static void |
dumpStoreListeners()
Dump information about registered store listeners. |
static void |
endBatchChange(String cookie)
End delayed file notifications for this path. |
static void |
forceUpdate(String path)
Force the store entry for this path to be updated. |
static FileSet |
getFiles(ContentFilter filter,
int[] propertyIDs)
Get a set of specified properties for all objects matching the given filter. |
static FileSet |
getFiles(int[] propertyIDs)
Get a set of specified properties for all objects. |
static int |
getIDFromPath(String path)
Get the ID of the object representing the specified path. |
static void |
registerContentChangeListener(Listener listener)
Register to receive content change notifications for all content. |
static void |
registerContentChangeListener(Listener listener,
ContentFilter filter)
Register to receive content change notifications, using the provided filter. |
static void |
registerFileHandler(FileHandler handler)
Register a handler (recognizer) that will provide information about particular types of files. |
static void |
registerStoreStateListener(Listener listener)
Register a listener to receive store notifications. |
static String |
startBatchChange(String path,
int timeout)
Delay file notifications for this path until a correpsonding endBatchChange(String) call is received, or the timeout is reached. |
static void |
unregisterContentChangeListener(Listener listener)
Unregister a previously-registered content listener. |
static void |
unregisterFileHandler(FileHandler handler)
Unregister a previously-registered handler (recognizer). |
static void |
unregisterStoreStateListener(Listener listener)
Unregister a previously-registered store notification listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String UNKNOWN_TYPE
public static final String FOLDER_TYPE
| Method Detail |
|---|
public static void registerFileHandler(FileHandler handler)
handler - FileHandler to be registeredpublic static void unregisterFileHandler(FileHandler handler)
handler - Previously registered FileHandler to be unregistered.public static void dumpHandlers()
public static void registerStoreStateListener(Listener listener)
EventType.EVENT_STORE_STATE_CHANGED
event will be sent along with one of:
EventType.WHAT_STORE_SCANNINGEventType.WHAT_STORE_PRECACHINGEventType.WHAT_STORE_READYEventType.WHAT_STORE_OFFLINE
listener - Listener to send store notifications to.public static void unregisterStoreStateListener(Listener listener)
listener - Listener to stop sending store notifications to.public static void dumpStoreListeners()
public static void registerContentChangeListener(Listener listener)
EventType.EVENT_FILESYSTEM_CONTENTS_CHANGED
event along with one of:
listener - Listener to send content change notifications to.registerContentChangeListener(Listener, ContentFilter)
public static void registerContentChangeListener(Listener listener,
ContentFilter filter)
EventType.EVENT_FILESYSTEM_CONTENTS_CHANGED
event along with one of:
listener - Listener to send content change notifications to.filter - ContentFilter to apply to change notifications before sending.registerContentChangeListener(Listener)public static void unregisterContentChangeListener(Listener listener)
listener - Listener to stop sending content changed notifications to.public static void dumpContentListeners()
public static int getIDFromPath(String path)
throws StoreException
path - String containing path to object.
StoreExceptionpublic static FileSet getFiles(int[] propertyIDs)
propertyIDs - array of property IDs to be filtered.
public static FileSet getFiles(ContentFilter filter,
int[] propertyIDs)
filter - ContentFilter to be applied to set of properties.propertyIDs - array of property IDs to be filtered.
public static String startBatchChange(String path,
int timeout)
endBatchChange(String) call is received, or the timeout is reached.
Calls to startBatchChange(String,int) and endBatchChange(String)
must be balanced.
path - absolute path on which to delay notificationstimeout - msecs before the system forcefully ends the batch
public static void endBatchChange(String cookie)
startBatchChange(String,int) and endBatchChange(String) must
be balanced.
cookie - String containing cookie used to identify expiration timer.public static void dumpBatchPaths()
public static void forceUpdate(String path)
path - String containing path of object to force update on.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||