Class AnyMethodEventManager
java.lang.Object
eu.c6.gibraltar.api.common.AbstractManager
eu.c6.gibraltar.api.managers.methodevent.AnyMethodEventManager
The Class AnyMethodEventManager to manage method events in Any.
-
Field Summary
Fields inherited from class eu.c6.gibraltar.api.common.AbstractManager
APPLICATION_XLS, APPLICATION_XLS_TYPE, APPLICATION_XLSX, APPLICATION_XLSX_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionAnyMethodEventManager(AnySession anySession) Instantiates a new Any method event manager from user session. -
Method Summary
Modifier and TypeMethodDescriptionqueues()Gets the list of pending messages for each configured queues.search(IApiFullTextSearchRequest request) Gets the list of method events.booleanActivates or de-activates the bulk-mode.
-
Constructor Details
-
AnyMethodEventManager
Instantiates a new Any method event manager from user session.- Parameters:
anySession- the Any session
-
-
Method Details
-
toggleBulkMode
Activates or de-activates the bulk-mode.- Returns:
- the current state of bulk-mode
- Throws:
Exception- the exception
-
queues
Gets the list of pending messages for each configured queues.- Returns:
- the list of pending messages
- Throws:
Exception- the exception
-
search
Gets the list of method events.Returned events is limited to 25 each call.
- Parameters:
request- Fulltext search parameters (seeIApiFullTextSearchRequest).- "searchTerm" (
String) the search term to narrow the result. - "locationId" (
String) the location (room id or section name or room id/folder/path to narrow the result. - "filters" (
ListofIPredicate) the list of filters to narrow the result. - "fromIndex" (
Integer) the from index you want to get next 25 contents. UseScrollResult.getTotalCount()from the result to get total count.
- "searchTerm" (
- Returns:
ScrollResultcontaining the list of abstract contents (ScrollResult.getResults()) and total count of contents (ScrollResult.getTotalCount()).- Throws:
Exception- the exception
-