Package de.elo.ix.client.plugin
Class IXServerEventsBase
java.lang.Object
de.elo.ix.client.plugin.IXServerEventsBase
- All Implemented Interfaces:
byps.Remote
,IXServerEvents
,de.elo.utils.net.Remote
,Remote
Helper class to simplify implementation of IXServerEvents.
This class simplifies to implement the interface IXServerEvents. It provides an empty default
implementation for all methods. Furthermore, it collects the methods of the derived class to
implement
hasMethod(IXServerEventsContext, String)
. Hence, the derived class does not
need to provide an own hasMethod(IXServerEventsContext, String)
function. Example:
public class IXServerEventsImpl extends IXServerEventsBase {
public IXServerEventsImpl(PluginActivator activator) {
super(activator);
}
public void onBeforeCheckinSord(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, SordZ sordZ, LockZ unlockZ)
throws RemoteException {
// ...
}
}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteRegisteredFunction
(IXServerEventsContext ec, String functionName, Any any) This event is raised when the IXServicePortIF function executeRegisteredFunction is called.executeRegisteredFunctionString
(IXServerEventsContext ec, String functionName, String args) This event is raised when the IXServicePortIF function executeRegisteredFunctionString is called.This mandatory method returns information about the application that implements the interface.UserName[]
getUserNames
(IXServerEventsContext ec, String[] ids, CheckoutUsersZ checkoutUsersZ) Get lean user and group information.boolean
hasMethod
(IXServerEventsContext ec, String methodName) This mandatory method tests, wether an interace method is implemented.void
onAfterCheckinActivity
(IXServerEventsContext ec, Activity act, boolean isNew, Sord sord, SordZ sordZ, LockZ unlockZ) This event is raised asynchronously after an activity is written.void
onAfterCheckinDocEnd
(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, Document doc, SordZ sordZ, LockZ unlockZ) This asynchronous event is raised after a document or a document version has been checked in.void
onAfterCheckinMap
(IXServerEventsContext ec, String domainName, String id, int objId, KeyValue[] data, LockZ unlockZ) This event is called afterIXServicePortIF.checkinMap(ClientInfo, String, String, int, KeyValue[], LockZ)
has processed.void
onAfterCheckinNotes
(IXServerEventsContext ec, Note[] notes, Sord[] sords, long noteC, LockZ unlockZ) This asynchronous event is raised after a Note object has been written.void
onAfterCheckinReminder
(IXServerEventsContext ec, Reminder[] remiArray, Sord sord, SordZ sordZ, LockZ unlockZ) This asynchronous event is raised after checkinReminder was called.void
onAfterCheckinSord
(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, SordZ sordZ, LockZ unlockZ) This asynchronous event is raised after a Sord object has been written.void
onAfterCheckinUsers
(IXServerEventsContext ec, UserInfo[] userInfos, CheckinUsersZ checkinUsersZ, LockZ unlockZ) This event is called afterIXServicePortIF.checkinUsers(ClientInfo, UserInfo[], CheckinUsersZ, LockZ)
has processed the supplied UserInfo objects.void
onAfterDelegateWorkflowNode
(IXServerEventsContext ec, WFDelegateNodeInfo delegateNodeInfo, LockZ lockZ) This event is invoked after a workflow node has been delegated.void
onAfterDeleteMap
(IXServerEventsContext ec, String domainName, String id, String[] keyNames, LockZ unlockZ) This event is called afterIXServicePortIF.deleteMap(ClientInfo, String, String, String[], LockZ)
has processed.void
onAfterDeleteSord
(IXServerEventsContext ec, Sord parentSord, Sord sord, LockZ unlockZ, DeleteOptions delOpts, boolean ret) This asynchronous event is raised after a Sord is deleted.void
onAfterEndEditWorkFlowNode
(IXServerEventsContext ec, WFDiagram workflow, int nodeId, Sord sord, SordZ sordZ) This asynchronous event is raised after a workflow node is forwarded by endEditWorkFlowNode.void
onAfterLogin
(IXServerEventsContext ec, String userName, LoginScriptOptions opts) This method is called asynchronously after a user has been successfully authenticated.void
onAfterPackageImport
(IXServerEventsContext ec, PackageImportEventInfo eventInfo) EIX-3085void
onAfterRefSord
(IXServerEventsContext ec, Sord parentSordOld, Sord parentSordNew, Sord sord, int manSortIndex) This asynchronous event is raised after a Sord is moved or a reference is created.void
onAfterStartWorkFlow
(IXServerEventsContext ec, WFDiagram workflow, Sord sord, SordZ sordZ) This asynchronous event is raised after a workflow is started.void
onAfterTerminateDeleteWorkFlow
(IXServerEventsContext ec, WFDiagram workflow, Sord sord, SordZ sordZ, int status) EIX-1664void
onBeforeCheckinActivity
(IXServerEventsContext ec, Activity act, boolean isNew, Sord sord, SordZ sordZ, LockZ unlockZ) This event is raised before an activity is written.void
onBeforeCheckinDocEnd
(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, Document doc, SordZ sordZ, LockZ unlockZ) This synchronous event is raised before a document or a document version is checked in.KeyValue[]
onBeforeCheckinMap
(IXServerEventsContext ec, String domainName, String id, int objId, KeyValue[] data, LockZ unlockZ) This event is called beforeIXServicePortIF.checkinMap(ClientInfo, String, String, int, KeyValue[], LockZ)
is executed.void
onBeforeCheckinNotes
(IXServerEventsContext ec, Note[] notes, Sord[] sords, long noteC, LockZ unlockZ) This synchronous event is raised before a Note object is written.void
onBeforeCheckinSord
(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, SordZ sordZ, LockZ unlockZ) This synchronous event is raised before a Sord object is written.UserInfo[]
onBeforeCheckinUsers
(IXServerEventsContext ec, UserInfo[] userInfos, CheckinUsersZ checkinUsersZ, LockZ unlockZ) This event is invoked beforeIXServicePortIF.checkinUsers(ClientInfo, UserInfo[], CheckinUsersZ, LockZ)
processes the supplied UserInfo objects.void
onBeforeDelegateWorkflowNode
(IXServerEventsContext ec, WFDelegateNodeInfo delegateNodeInfo, LockZ lockZ) This event is invoked before a workflow node is delegated.String[]
onBeforeDeleteMap
(IXServerEventsContext ec, String domainName, String id, String[] keyNames, LockZ unlockZ) This event is called beforeIXServicePortIF.deleteMap(ClientInfo, String, String, String[], LockZ)
is executed.void
onBeforeDeleteSord
(IXServerEventsContext ec, Sord parentSord, Sord sord, LockZ unlockZ, DeleteOptions delOpts) This synchronous event is raised before a Sord is deleted.void
onBeforeFindSords
(IXServerEventsContext ec, FindInfo findInfo, SordZ sordZ) This event is fired before the FindInfo object passed in findFirstSords is evaluated.void
onBeforeFindSordsInternalSQL
(IXServerEventsContext ec, FindInfo findInfo, SordZ sordZ, FindInfoAsInternalSQL findSql) This event is fired before findFirstSords executes the search statement.void
onBeforeLogin
(IXServerEventsContext ec, String userName, LoginScriptOptions opts) Before a user is authenticated the IX calls this method.void
onBeforeRefSord
(IXServerEventsContext ec, Sord parentSordOld, Sord parentSordNew, Sord sord, int manSortIndex) This synchronous event is raised before a Sord is moved or a reference is created.void
onBeforeStartWorkFlow
(IXServerEventsContext ec, WFDiagram workflow, Sord sord, SordZ sordZ) This synchronous event is raised before a workflow is started.void
onBeforeTakeWorkFlowNode
(IXServerEventsContext ec, WFDiagram workflow, WFNode node, UserInfo user, int flags, LockZ lockZ) This event is fired beforeIXServicePortIF.takeWorkFlowNode(ClientInfo, int, int, String, int, LockZ)
is processed.void
onBeforeTerminateDeleteWorkFlow
(IXServerEventsContext ec, WFDiagram workflow, Sord sord, SordZ sordZ, int status) EIX-1664boolean
onCheckSordAccess
(IXServerEventsContext ec, Sord sord, SordZ sordZ, int lur, CheckAccessOptions opts) Check access to Sord object.onCreateDoc
(IXServerEventsContext ec, String parentId, String maskId, String docTemplate, EditInfoZ editInfoZ) This event is triggered in createDoc.onCreateSord
(IXServerEventsContext ec, String parentId, String maskId, EditInfoZ editZ) This event is triggered in createSord, checkinSordPath and optionally in createDoc.void
onFileUploadBuildResponse
(IXServerEventsContext ec, DocVersion dv, String fileName, HttpRequestInfo requestInfo, HttpResponseInfo responseInfo) This event is raised after files has been uploaded by the JSON API to build the response message.void
onFindClose
(IXServerEventsContext ec, Object findInfo) This event is called when a search via findFirstSords/findNextSords is closed.void
onFindSordsResult
(IXServerEventsContext ec, FindInfo findInfo, SordZ sordZ, FindResult findResult) This event is called for find results found by findFirstSords and findNextSords.onInheritKeywording
(IXServerEventsContext ec, Sord sord, Sord parentSord, String[] okeyNames, Object reserved) This event is called when index values are inherited.void
onReadSord
(IXServerEventsContext ec, Sord sord, SordZ sordZ, Document doc, LockZ lockZ) Modify the Sord information returned in checkoutSord, checkoutDoc, findFirstSords, etc.void
onSendFeedToISearch
(IXServerEventsContext ec, List<FeedPost> feedPosts) Every time feed documents are send to the iSearch to add it to the iSearch index, this event is called.void
onSendSordToISearch
(IXServerEventsContext ec, Sord sord, DocMask mask, String fulltext) Every time a Sord is send to the iSearch to add it to the iSearch index, this event is called.
-
Field Details
-
implementedMethods
-
activator
-
-
Constructor Details
-
IXServerEventsBase
-
-
Method Details
-
getAppInfo
Description copied from interface:IXServerEvents
This mandatory method returns information about the application that implements the interface. It should return the application name and version and the implementors name. The returned String is printed into the log file and is added to error messages. This method is mandatory.- Specified by:
getAppInfo
in interfaceIXServerEvents
- Parameters:
ec
- Execution context.- Returns:
- String
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
hasMethod
Description copied from interface:IXServerEvents
This mandatory method tests, wether an interace method is implemented. The Indexserver calls this function for each method, before the method is called the first time.- Specified by:
hasMethod
in interfaceIXServerEvents
- Parameters:
ec
- Execution context.methodName
- Method name.- Returns:
- true, if the method is implemented.
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onBeforeCheckinSord
public void onBeforeCheckinSord(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, SordZ sordZ, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This synchronous event is raised before a Sord object is written. It is raised in checkinSord, checkinDocEnd, checkinDocsEnd, startImport.- Specified by:
onBeforeCheckinSord
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextsord
- Parameter supplied in checkinSordsordDB
- Current DB record, is null for new SordsparentSord
- Parent Sord, might be null.sordZ
- Members to be writtenunlockZ
- Parameter supplied in checkinSord- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC. Execption thrown by the script itself or scripting engine.
-
onAfterCheckinSord
public void onAfterCheckinSord(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, SordZ sordZ, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This asynchronous event is raised after a Sord object has been written. It is raised in checkinSord, checkinDocEnd, checkinDocsEnd, checkinSordPath, startImport.- Specified by:
onAfterCheckinSord
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextsord
- Parameter supplied in checkinSordsordDB
- Current DB record, is null for new SordsparentSord
- Parent Sord, might be null.sordZ
- Members writtenunlockZ
- Parameter supplied in checkinSord- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC. Execption thrown by the script itself or scripting engine.
-
onBeforeCheckinDocEnd
public void onBeforeCheckinDocEnd(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, Document doc, SordZ sordZ, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This synchronous event is raised before a document or a document version is checked in. It is raised in checkinDocEnd, checkinDocsEnd, startImport.- Specified by:
onBeforeCheckinDocEnd
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextsord
- Parameter supplied in checkinDocEnd, can be null.sordDB
- Current DB record, is null for new SordsparentSord
- Parent Sord, might be null.doc
- Parameter supplied in checkinDocEndsordZ
- Members to be written, can be null.unlockZ
- Parameter supplied in checkinDocEnd- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC. Execption thrown by the script itself or scripting engine.
-
onAfterCheckinDocEnd
public void onAfterCheckinDocEnd(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, Document doc, SordZ sordZ, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This asynchronous event is raised after a document or a document version has been checked in. It is raised in checkinDocEnd, checkinDocsEnd, startImport.- Specified by:
onAfterCheckinDocEnd
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextsord
- Parameter supplied in checkinDocEnd, can be null.sordDB
- Current DB record, is null for new SordsparentSord
- Parent Sord, might be null.doc
- Parameter supplied in checkinDocEndsordZ
- Members to be written, can be null.unlockZ
- Parameter supplied in checkinDocEnd- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC. Execption thrown by the script itself or scripting engine.
-
onBeforeDeleteSord
public void onBeforeDeleteSord(IXServerEventsContext ec, Sord parentSord, Sord sord, LockZ unlockZ, DeleteOptions delOpts) throws byps.RemoteException Description copied from interface:IXServerEvents
This synchronous event is raised before a Sord is deleted. It is raised in deleteSord, cleanupStart.- Specified by:
onBeforeDeleteSord
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextparentSord
- Parent Sord Valid members are defined by parentSord.changedMembers. In JavaScript, usenew SordZ(parentSord.changedMembers).isTrue(SordC.mb...)
to test whether a member is valid.sord
- Sord to be deleted (might be a logical reference in parentSord) Valid members are defined by sord.changedMembers.unlockZ
- Lock modedelOpts
- Delete options- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterDeleteSord
public void onAfterDeleteSord(IXServerEventsContext ec, Sord parentSord, Sord sord, LockZ unlockZ, DeleteOptions delOpts, boolean ret) throws byps.RemoteException Description copied from interface:IXServerEvents
This asynchronous event is raised after a Sord is deleted. It is raised in deleteSord, cleanupStart.- Specified by:
onAfterDeleteSord
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextparentSord
- Parent Sord Valid members are defined by parentSord.changedMembers. In JavaScript, usenew SordZ(parentSord.changedMembers).isTrue(SordC.mb...)
to test whether a member is valid.sord
- Sord to be deleted (might be a logical reference in parentSord) Valid members are defined by sord.changedMembers.unlockZ
- Lock modedelOpts
- Delete optionsret
- Return value of deleteSord- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onBeforeRefSord
public void onBeforeRefSord(IXServerEventsContext ec, Sord parentSordOld, Sord parentSordNew, Sord sord, int manSortIndex) throws byps.RemoteException Description copied from interface:IXServerEvents
This synchronous event is raised before a Sord is moved or a reference is created. It is raised in refSord, copySord.- Specified by:
onBeforeRefSord
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextparentSordOld
- Previsious parentparentSordNew
- New parentsord
- Object or reference to be moved.manSortIndex
- Manually sort order in the new parent.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterRefSord
public void onAfterRefSord(IXServerEventsContext ec, Sord parentSordOld, Sord parentSordNew, Sord sord, int manSortIndex) throws byps.RemoteException Description copied from interface:IXServerEvents
This asynchronous event is raised after a Sord is moved or a reference is created. It is raised in refSord, copySord.- Specified by:
onAfterRefSord
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextparentSordOld
- Previsious parentparentSordNew
- New parentsord
- Object or reference to be moved.manSortIndex
- Manually sort order in the new parent.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterEndEditWorkFlowNode
public void onAfterEndEditWorkFlowNode(IXServerEventsContext ec, WFDiagram workflow, int nodeId, Sord sord, SordZ sordZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This asynchronous event is raised after a workflow node is forwarded by endEditWorkFlowNode.- Specified by:
onAfterEndEditWorkFlowNode
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextworkflow
- Workflow objectnodeId
- Forwarded node IDsord
- Sord object, valid members as in sordZsordZ
- Valid members of Sord object, SordC.mbLeanMembers|SordC.mbDocVersion- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterCheckinReminder
public void onAfterCheckinReminder(IXServerEventsContext ec, Reminder[] remiArray, Sord sord, SordZ sordZ, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This asynchronous event is raised after checkinReminder was called.- Specified by:
onAfterCheckinReminder
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextremiArray
- Created or written reminder objects.sord
- Sord object, valid members as in sordZsordZ
- Valid members of Sord object, SordC.mbLeanMembers|SordC.mbDocVersionunlockZ
- Unlock mode.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
executeRegisteredFunction
public Any executeRegisteredFunction(IXServerEventsContext ec, String functionName, Any any) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is raised when the IXServicePortIF function executeRegisteredFunction is called.- Specified by:
executeRegisteredFunction
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextfunctionName
- Name of the function to be executed. FunctionIXServerEvents.hasMethod(IXServerEventsContext, String)
must return true for the given functionName.any
- Parameter- Returns:
- An Any object
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
executeRegisteredFunctionString
public String executeRegisteredFunctionString(IXServerEventsContext ec, String functionName, String args) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is raised when the IXServicePortIF function executeRegisteredFunctionString is called.- Specified by:
executeRegisteredFunctionString
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextfunctionName
- Name of the function to be executed. FunctionIXServerEvents.hasMethod(IXServerEventsContext, String)
must return true for the given functionName.args
- Parameter- Returns:
- Result as String
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onBeforeStartWorkFlow
public void onBeforeStartWorkFlow(IXServerEventsContext ec, WFDiagram workflow, Sord sord, SordZ sordZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This synchronous event is raised before a workflow is started.- Specified by:
onBeforeStartWorkFlow
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextworkflow
- Workflow objectsord
- Sord object, valid members as in sordZsordZ
- Valid members of Sord object, SordC.mbLeanMembers|SordC.mbDocVersion- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterStartWorkFlow
public void onAfterStartWorkFlow(IXServerEventsContext ec, WFDiagram workflow, Sord sord, SordZ sordZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This asynchronous event is raised after a workflow is started.- Specified by:
onAfterStartWorkFlow
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextworkflow
- Workflow objectsord
- Sord object, valid members as in sordZsordZ
- Valid members of Sord object, SordC.mbLeanMembers|SordC.mbDocVersion- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onBeforeCheckinActivity
public void onBeforeCheckinActivity(IXServerEventsContext ec, Activity act, boolean isNew, Sord sord, SordZ sordZ, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is raised before an activity is written. The event is invoked too, if the activity is to be deleted. An activity is called deleted, if member activity.backAt is not empty.- Specified by:
onBeforeCheckinActivity
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextact
- Activity objectisNew
- true, if a new activity is to be created. false, if an existing activity is updated.sord
- Associated sord object.sordZ
- Valid members of Sord objectunlockZ
- Unlock mode.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterCheckinActivity
public void onAfterCheckinActivity(IXServerEventsContext ec, Activity act, boolean isNew, Sord sord, SordZ sordZ, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is raised asynchronously after an activity is written. The event is invoked too, if the activity was deleted. An activity is called deleted, if member activity.backAt is not empty.- Specified by:
onAfterCheckinActivity
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextact
- Activity objectisNew
- true, if a new activity is to be created. false, if an existing activity is updated.sord
- Associated sord object.sordZ
- Valid members of Sord objectunlockZ
- Unlock mode.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onBeforeCheckinNotes
public void onBeforeCheckinNotes(IXServerEventsContext ec, Note[] notes, Sord[] sords, long noteC, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This synchronous event is raised before a Note object is written. It is raised in checkinNotes- Specified by:
onBeforeCheckinNotes
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextnotes
- Notes to checkin.sords
- Sord objects that belong to the notes.noteC
- Element selector that defines the valid Note members.unlockZ
- Unlock mode.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterCheckinNotes
public void onAfterCheckinNotes(IXServerEventsContext ec, Note[] notes, Sord[] sords, long noteC, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This asynchronous event is raised after a Note object has been written. It is raised in- Specified by:
onAfterCheckinNotes
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextnotes
- Notes to checkin.sords
- Sord objects that belong to the notes.noteC
- Element selector that defines the valid Note members.unlockZ
- Unlock mode.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onFileUploadBuildResponse
public void onFileUploadBuildResponse(IXServerEventsContext ec, DocVersion dv, String fileName, HttpRequestInfo requestInfo, HttpResponseInfo responseInfo) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is raised after files has been uploaded by the JSON API to build the response message. The response message depends on the file upload solution used by the client side JavaScript. This event can only be implemented as a JavaScript function. It is not possible to process it in a WEB-service like other events in this interface.- Specified by:
onFileUploadBuildResponse
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextdv
- DocVersion object with the following valid members: ext, size, guid, uploadResult, physPath. DocVersion.uploadResult has to be returned to the client application. It must be set into its DocVersion.uploadResult before checkinDocEnd can be called. DocVersion.physPath is set to the location of the uploaded file in the servers temporary directory.fileName
- Name of the uploaded file.requestInfo
- Information of the underlying HttpServletRequest object.responseInfo
- Information for the underlying HttpServletResponse object.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
getUserNames
public UserName[] getUserNames(IXServerEventsContext ec, String[] ids, CheckoutUsersZ checkoutUsersZ) throws byps.RemoteException Description copied from interface:IXServerEvents
Get lean user and group information. This method is called to internally process the API functionIXServicePortIF.getUserNames(ClientInfo, String[], CheckoutUsersZ)
. This method should callIXServicePortIF.getUserNames(ClientInfo, String[], CheckoutUsersZ)
internally and should only modifyUserName.flags2
orUserName.flags2
in the returned array. E.g.UserName.flags2
can be changed in order to hide particular users by removing the bitAccessC.FLAG2_VISIBLE_USER
.- Specified by:
getUserNames
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextids
- User or group IDs or names.checkoutUsersZ
- SeeIXServicePortIF.checkoutUsers(ClientInfo, String[], CheckoutUsersZ, LockZ)
.- Returns:
- Array of Names and IDs
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onReadSord
public void onReadSord(IXServerEventsContext ec, Sord sord, SordZ sordZ, Document doc, LockZ lockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
Modify the Sord information returned in checkoutSord, checkoutDoc, findFirstSords, etc. This function is called, before a Sord object is returned to the client application. It can be used to modify or delete some of the transmitted data. But it must not change the members sord.id and sord.guid. Furthermore it cannot prevent the Sord object from being transmitted. This method cannot be implemented by services because of the output parameters. This method is frequently called and should perform as fast as possible.- Specified by:
onReadSord
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextsord
- Sord object, "in/out" parameter, can be null.sordZ
- Valid members in the Sord object, "in" parameter, can be null.doc
- Document object, "in/out" parameter, can be null.lockZ
- reserved.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC..- See Also:
-
onCheckSordAccess
public boolean onCheckSordAccess(IXServerEventsContext ec, Sord sord, SordZ sordZ, int lur, CheckAccessOptions opts) throws byps.RemoteException Description copied from interface:IXServerEvents
Check access to Sord object. Use this method to replace the internal access checking of the ACL for Sord objects. In order to deny access to the given sord, return false, otherwise return true.This method should not be implemented by services for performance reasons. It is frequently called and should perform as fast as possible.
The Indexserver's access check function can be called via class de.elo.ix.jscript.Access.
Example code:
function onCheckSordAccess(ec, sord, sordZ, lur, opts) { var acc = new Packages.de.elo.ix.jscript.Access(); var succ = acc.checkAccess(sord, lur); return succ; }
- Specified by:
onCheckSordAccess
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextsord
- Sord object, "in" parameter.sordZ
- Valid members in the Sord object, "in" parameter.lur
- Combination ofAccessC.LUR_*
access modes.opts
- Options for access checking- Returns:
- true, if at least one access mode given in
lur
is allowed. false, if access is denied. - Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.. Do not throw an exception in order to deny access, return false instead. Any exception will be reported as error in the log file and the access check function of Indexserver is called.- See Also:
-
onBeforeLogin
public void onBeforeLogin(IXServerEventsContext ec, String userName, LoginScriptOptions opts) throws byps.RemoteException Description copied from interface:IXServerEvents
Before a user is authenticated the IX calls this method. Use it to allow or deny the the login to the user. If the user is not allowed to login according to theLoginScriptOptions
opts, an exception has to be thrown.Example code:
function onBeforeLogin(ec, user, opts) { if (username == "OnlyWithWebClient" && options.getClientName() != LoginScriptOptionsC.CLIENT_NAME_WEBCLIENT) { throw "User may login only with the WebClient"; } }
- Specified by:
onBeforeLogin
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextuserName
- of the user that is trying to login. If a run-as login is being processed, this parameter contains the run-as user name. The technical user used for authentication can be found itLoginScriptOptions.techUser
.opts
- additional information.- Throws:
byps.RemoteException
-
onAfterLogin
public void onAfterLogin(IXServerEventsContext ec, String userName, LoginScriptOptions opts) throws byps.RemoteException Description copied from interface:IXServerEvents
This method is called asynchronously after a user has been successfully authenticated.- Specified by:
onAfterLogin
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextuserName
- of the user that has been logged in successfully. If a run-as login has been processed, this parameter contains the run-as user name. The technical user used for authentication can be found itLoginScriptOptions.techUser
.opts
- additional information.- Throws:
byps.RemoteException
-
onCreateSord
public EditInfo onCreateSord(IXServerEventsContext ec, String parentId, String maskId, EditInfoZ editZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is triggered in createSord, checkinSordPath and optionally in createDoc. Use this event in order to customize the initialization of an EditInfo resp. Sord object. The script can call theIXServicePortIF.createSord(ClientInfo, String, String, EditInfoZ)
function in order to get a new EditInfo object. The script can return null, if the standard initialization should be used. Before the EditInfo object created by this function is returned to the client application, the following mebers are overwritten: EditInfo.sord.id=-1, EditInfo.sord.guid=random GUID
. All members in EditInfo that are not assigned by this function but requested from the element selector editZ, are assigned (as far as possible) before the EditInfo object is returned to the client. Hint: Although this function is named createSord, it has to return an EditInfo object. This event is not triggered, if there is an onCreateDoc event customized.- Specified by:
onCreateSord
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextparentId
- Same value as the client supplies in its call to createSord. Exception: an empty String is received for a null value.maskId
- Same value as the client supplies in its call to createSord. Exception: an empty String is received for a null value.editZ
- Element selector supplied by the client application in createSord or createDoc.- Returns:
- Initialized EditInfo object.
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onCreateDoc
public EditInfo onCreateDoc(IXServerEventsContext ec, String parentId, String maskId, String docTemplate, EditInfoZ editInfoZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is triggered in createDoc. If an onCreateDoc event is configured, the event onCreateSord is not triggered in onCreateSord.- Specified by:
onCreateDoc
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextparentId
- Same value as the client supplies in its call to createDoc. Exception: an empty String is received for a null value.maskId
- Same value as the client supplies in its call to createDoc. Exception: an empty String is received for a null value.docTemplate
- Same value as the client supplies in its call to createDoc. Exception: an empty String is received for a null value.editInfoZ
- Element selector supplied by the client application in createDoc.- Returns:
- Initialized EditInfo object.
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.- See Also:
-
onBeforeCheckinUsers
public UserInfo[] onBeforeCheckinUsers(IXServerEventsContext ec, UserInfo[] userInfos, CheckinUsersZ checkinUsersZ, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is invoked beforeIXServicePortIF.checkinUsers(ClientInfo, UserInfo[], CheckinUsersZ, LockZ)
processes the supplied UserInfo objects.- Specified by:
onBeforeCheckinUsers
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextuserInfos
- Array of UserInfo objects. Can be null or empty if only the lock should be released.checkinUsersZ
- CheckinUsersC constant.unlockZ
- Lock mode.- Returns:
- Potentially modified UserInfo objects. This objects will be written to the database.
- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterCheckinUsers
public void onAfterCheckinUsers(IXServerEventsContext ec, UserInfo[] userInfos, CheckinUsersZ checkinUsersZ, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is called afterIXServicePortIF.checkinUsers(ClientInfo, UserInfo[], CheckinUsersZ, LockZ)
has processed the supplied UserInfo objects. Indexserver invokes this event asynchronously after the users have been written.- Specified by:
onAfterCheckinUsers
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextuserInfos
- Array of UserInfo objects. Can be null or empty if only the lock should be released.checkinUsersZ
- CheckinUsersC constant.unlockZ
- reserved.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onBeforeCheckinMap
public KeyValue[] onBeforeCheckinMap(IXServerEventsContext ec, String domainName, String id, int objId, KeyValue[] data, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is called beforeIXServicePortIF.checkinMap(ClientInfo, String, String, int, KeyValue[], LockZ)
is executed.- Specified by:
onBeforeCheckinMap
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextid
- map IDobjId
- Sord ID, if the map should be attached to a Sord object; otherwise 0data
- map itemsunlockZ
- Remove lock- Returns:
- New array of KeyValue objects to be inserted. Or null, if the array passed in parameter
data
should be stored. - Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterCheckinMap
public void onAfterCheckinMap(IXServerEventsContext ec, String domainName, String id, int objId, KeyValue[] data, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is called afterIXServicePortIF.checkinMap(ClientInfo, String, String, int, KeyValue[], LockZ)
has processed.- Specified by:
onAfterCheckinMap
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextid
- map IDobjId
- Sord ID, if the map should be attached to a Sord object; otherwise 0data
- map itemsunlockZ
- Remove lock- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onBeforeDeleteMap
public String[] onBeforeDeleteMap(IXServerEventsContext ec, String domainName, String id, String[] keyNames, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is called beforeIXServicePortIF.deleteMap(ClientInfo, String, String, String[], LockZ)
is executed.- Specified by:
onBeforeDeleteMap
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextdomainName
- map domain name; an arbitrary (existing name) or a predefined name from MapDomainCid
- map ID. In order to delete the map values associated to a Sord object pass the numeric Sord ID (Sord#id).keyNames
- keys to be deleted; null to delete the entire map with all keys and history; wildcards allowedunlockZ
- Remove lock- Returns:
- New array of keys to be deleted. Or null, if the key names passed in parameter
keyNames
should be deleted. - Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterDeleteMap
public void onAfterDeleteMap(IXServerEventsContext ec, String domainName, String id, String[] keyNames, LockZ unlockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is called afterIXServicePortIF.deleteMap(ClientInfo, String, String, String[], LockZ)
has processed.- Specified by:
onAfterDeleteMap
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextdomainName
- map domain name; an arbitrary (existing name) or a predefined name from MapDomainCid
- map ID. In order to delete the map values associated to a Sord object pass the numeric Sord ID (Sord#id).keyNames
- keys to be deleted; null to delete the entire map with all keys and history; wildcards allowedunlockZ
- Remove lock- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onBeforeTakeWorkFlowNode
public void onBeforeTakeWorkFlowNode(IXServerEventsContext ec, WFDiagram workflow, WFNode node, UserInfo user, int flags, LockZ lockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is fired beforeIXServicePortIF.takeWorkFlowNode(ClientInfo, int, int, String, int, LockZ)
is processed.- Specified by:
onBeforeTakeWorkFlowNode
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextworkflow
- Workflow objectnode
- WFNode object to be taken. This object is a reference to one of the elements in workflow.nodes[].user
- UserInfo object of the user that receives the task.flags
- Combination of WFTakeNodeC values.lockZ
- Specifies the lock mode used to access the workflow. Only administrators can use FORCE. The current lock is not changed.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onBeforeFindSords
public void onBeforeFindSords(IXServerEventsContext ec, FindInfo findInfo, SordZ sordZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is fired before the FindInfo object passed in findFirstSords is evaluated. The passed findInfo object can be modified.- Specified by:
onBeforeFindSords
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextfindInfo
- FindInfo fromIXServicePortIF.findFirstSords(ClientInfo, FindInfo, int, SordZ)
sordZ
- SordZ fromIXServicePortIF.findFirstSords(ClientInfo, FindInfo, int, SordZ)
- Throws:
byps.RemoteException
-
onBeforeFindSordsInternalSQL
public void onBeforeFindSordsInternalSQL(IXServerEventsContext ec, FindInfo findInfo, SordZ sordZ, FindInfoAsInternalSQL findSql) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is fired before findFirstSords executes the search statement. Be aware of the fact that there is no guaranty about the generated FindSql data. Subsequent IX versions can create different FindSql objects for the same FindInfo object. Hence, modifications of the FindSql data might not work in future releases. Prefer to useIXServerEvents.onBeforeFindSords(IXServerEventsContext, FindInfo, SordZ)
wherever possible.- Specified by:
onBeforeFindSordsInternalSQL
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextfindInfo
- FindInfo fromIXServicePortIF.findFirstSords(ClientInfo, FindInfo, int, SordZ)
, read-only.sordZ
- SordZ fromIXServicePortIF.findFirstSords(ClientInfo, FindInfo, int, SordZ)
findSql
- Describes the SQL select statement.- Throws:
byps.RemoteException
-
onFindSordsResult
public void onFindSordsResult(IXServerEventsContext ec, FindInfo findInfo, SordZ sordZ, FindResult findResult) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is called for find results found by findFirstSords and findNextSords.- Specified by:
onFindSordsResult
in interfaceIXServerEvents
- Parameters:
ec
- ExecContextfindInfo
- FindInfo passed toIXServicePortIF.findFirstSords(ClientInfo, FindInfo, int, SordZ)
, read-only.sordZ
- Element selector, read-only.findResult
- Find results, read-only.- Throws:
byps.RemoteException
-
onFindClose
Description copied from interface:IXServerEvents
This event is called when a search via findFirstSords/findNextSords is closed.- Specified by:
onFindClose
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextfindInfo
- FindInfo passed toIXServicePortIF.findFirstSords(ClientInfo, FindInfo, int, SordZ)
- Throws:
byps.RemoteException
-
onInheritKeywording
public InheritKeywordingResult onInheritKeywording(IXServerEventsContext ec, Sord sord, Sord parentSord, String[] okeyNames, Object reserved) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is called when index values are inherited.Example:
function onInheritKeywording(ec, sord, parent, okeyNames, reserved) { for (var i = 0; i < okeyNames.length; i++) { var key = okeyNames[i]; var value = getObjKey(parent, key); log.info("inherit " + key + ", value=" + value); setObjKey(sord, key, value); } return InheritKeywordingResult.INHERITED; }
- Specified by:
onInheritKeywording
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextsord
- Sord object to be updated. The object contains at least the members ofSordC.mbLeanMembers
.parentSord
- Parent of sord. The object contains at least the members ofSordC.mbLeanMembers
.okeyNames
- Inheritable group names of index values as defined in keywording form definition.reserved
- Reserved.- Returns:
- Control value that defines how to continue processing, see
InheritKeywordingResult
. - Throws:
byps.RemoteException
-
onSendSordToISearch
public void onSendSordToISearch(IXServerEventsContext ec, Sord sord, DocMask mask, String fulltext) throws byps.RemoteException Description copied from interface:IXServerEvents
Every time a Sord is send to the iSearch to add it to the iSearch index, this event is called.- Specified by:
onSendSordToISearch
in interfaceIXServerEvents
- Parameters:
ec
- Execution context- Throws:
byps.RemoteException
-
onSendFeedToISearch
public void onSendFeedToISearch(IXServerEventsContext ec, List<FeedPost> feedPosts) throws byps.RemoteException Description copied from interface:IXServerEvents
Every time feed documents are send to the iSearch to add it to the iSearch index, this event is called.- Specified by:
onSendFeedToISearch
in interfaceIXServerEvents
- Parameters:
ec
- Execution context- Throws:
byps.RemoteException
-
onBeforeDelegateWorkflowNode
public void onBeforeDelegateWorkflowNode(IXServerEventsContext ec, WFDelegateNodeInfo delegateNodeInfo, LockZ lockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is invoked before a workflow node is delegated. The implementor can use this function to perform additional checks on delegation before Indexserver performs its plausibility and access checks. Furthermore, it can be used to modify the members of the passed delegateNodeInfo obect. To deny delegation, throw an exception like:throw [ IXExceptionC.ACCESS_DENIED, "Delegate workflow denied." ];
- Specified by:
onBeforeDelegateWorkflowNode
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextdelegateNodeInfo
- WFDelegateNodeInfo objectlockZ
- Lock mode- Throws:
byps.RemoteException
- See Also:
-
onAfterDelegateWorkflowNode
public void onAfterDelegateWorkflowNode(IXServerEventsContext ec, WFDelegateNodeInfo delegateNodeInfo, LockZ lockZ) throws byps.RemoteException Description copied from interface:IXServerEvents
This event is invoked after a workflow node has been delegated. The implementor can use this function to notify other systems about the delegation. It is executed asynchronously after the API call delegateWorkflowNode has been successfully executed. Modifications to parameters or thrown exceptions are ignored.- Specified by:
onAfterDelegateWorkflowNode
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextdelegateNodeInfo
- WFDelegateNodeInfo objectlockZ
- Lock mode- Throws:
byps.RemoteException
- See Also:
-
onBeforeTerminateDeleteWorkFlow
public void onBeforeTerminateDeleteWorkFlow(IXServerEventsContext ec, WFDiagram workflow, Sord sord, SordZ sordZ, int status) throws byps.RemoteException EIX-1664- Specified by:
onBeforeTerminateDeleteWorkFlow
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextworkflow
- Workflow objectsord
- Sord object, valid members as in sordZsordZ
- Valid members of Sord object, SordC.mbLeanMembers|SordC.mbDocVersionstatus
- 0, if workflow is terminated. 1, if workflow is deleted.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterTerminateDeleteWorkFlow
public void onAfterTerminateDeleteWorkFlow(IXServerEventsContext ec, WFDiagram workflow, Sord sord, SordZ sordZ, int status) throws byps.RemoteException EIX-1664- Specified by:
onAfterTerminateDeleteWorkFlow
in interfaceIXServerEvents
- Parameters:
ec
- Execution contextworkflow
- Workflow objectsord
- Sord object, valid members as in sordZsordZ
- Valid members of Sord object, SordC.mbLeanMembers|SordC.mbDocVersionstatus
- 0, if workflow is terminated. 1, if workflow is deleted.- Throws:
byps.RemoteException
- Exception with message text of format "[ELOIX:number] text". The number is one of the constants defined in IXExceptionC.
-
onAfterPackageImport
public void onAfterPackageImport(IXServerEventsContext ec, PackageImportEventInfo eventInfo) throws byps.RemoteException EIX-3085- Specified by:
onAfterPackageImport
in interfaceIXServerEvents
- Parameters:
ec
- Execution contexteventInfo
- PackageImportEventInfo object- Throws:
byps.RemoteException
-