Package org.imixs.melman
Class EventLogClient
java.lang.Object
org.imixs.melman.AbstractClient
org.imixs.melman.EventLogClient
This ServiceClient is a WebService REST Client which encapsulate the
communication with Imixs EventLog REST service. The Implementation is based
on the JAXB API 2.0.
- Author:
- Ralph Soika
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Stringstatic final Stringprotected intprotected intFields inherited from class org.imixs.melman.AbstractClient
baseURI, requestFilterList, sslContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateEventLogEntry(String topic, String refID, org.imixs.workflow.ItemCollection document) Creates a new topic for a given RefId by creating a PUT requestvoiddeleteEventLogEntry(String eventLogID) Deletes a single workItem or document instance by UniqueID.intintvoidlockEventLogEntry(String eventLogID) Lock an EventLog entry by its ID.voidreleaseDeadLocks(long deadLockInterval, String... topic) Lock an EventLog entry by its ID.List<org.imixs.workflow.ItemCollection>searchEventLog(String... topic) Loads a collection of EventLog entries for a specific topicvoidsetPageIndex(int pageIndex) voidsetPageSize(int pageSize) voidunlockEventLogEntry(String eventLogID) Lock an EventLog entry by its ID.Methods inherited from class org.imixs.melman.AbstractClient
getBaseURI, getCustomResource, getCustomResourceXML, getRequestFilterList, getSslContext, getWebTarget, logout, newClient, registerClientRequestFilter, setBaseURI, setSslContext
-
Field Details
-
ITEM_ERROR_CODE
- See Also:
-
ITEM_ERROR_MESSAGE
- See Also:
-
DEFAULT_PAGE_SIZE
public static final int DEFAULT_PAGE_SIZE- See Also:
-
pageSize
protected int pageSize -
pageIndex
protected int pageIndex
-
-
Constructor Details
-
EventLogClient
Initialize the client by a BASE_URL.- Parameters:
base_uri-
-
-
Method Details
-
getPageSize
public int getPageSize() -
setPageSize
public void setPageSize(int pageSize) -
getPageIndex
public int getPageIndex() -
setPageIndex
public void setPageIndex(int pageIndex) -
deleteEventLogEntry
Deletes a single workItem or document instance by UniqueID.- Parameters:
userid-- Throws:
RestAPIException
-
createEventLogEntry
public void createEventLogEntry(String topic, String refID, org.imixs.workflow.ItemCollection document) throws RestAPIException Creates a new topic for a given RefId by creating a PUT request- Parameters:
topic- - new topicrefID- - id of the documentdocument- - optional document data- Throws:
RestAPIException
-
lockEventLogEntry
Lock an EventLog entry by its ID.- Parameters:
userid-- Throws:
RestAPIException
-
unlockEventLogEntry
Lock an EventLog entry by its ID.- Parameters:
userid-- Throws:
RestAPIException
-
releaseDeadLocks
Lock an EventLog entry by its ID.- Parameters:
userid-- Throws:
RestAPIException
-
searchEventLog
public List<org.imixs.workflow.ItemCollection> searchEventLog(String... topic) throws RestAPIException Loads a collection of EventLog entries for a specific topic- Parameters:
topic- - list of topics- Returns:
- eventLog entries
- Throws:
RestAPIException
-