Beispiel #1
0
        /// <summary>
        /// Gets or creates an IndexServer connection.
        /// </summary>
        /// <param name="ec">Execution context object passed to an event handler.</param>
        /// <returns></returns>
        public FWConnection getConn(IXServerEventsContext ec)
        {
            if (ec.url == null || ec.url.Length == 0)
            {
                throw new ArgumentException("Missing IndexServer URL");
            }

            FWConnection conn = null;

            lock (this)
            {
                FWConnFactoryEventHandler fact = null;
                if (!mapFacts.TryGetValue(ec.url, out fact))
                {
                    fact             = new FWConnFactoryEventHandler(ec.url, appName, appVersion);
                    mapFacts[ec.url] = fact;
                }

                conn = fact.CreateConnForEventHandler(ec.ci);
            }

            return(conn);
        }
Beispiel #2
0
 public abstract UserName[] getUserNames(IXServerEventsContext ec, string[] ids, CheckoutUsersZ checkoutZ);
Beispiel #3
0
 public abstract void onFileUploadBuildResponse(IXServerEventsContext ec, DocVersion dv, String fileName, HttpRequestInfo requestInfo, HttpResponseInfo responseInfo);
Beispiel #4
0
 public abstract void onAfterCheckinActivity(IXServerEventsContext ec, Activity act, bool isNew, Sord sord, SordZ sordZ, LockZ unlockZ);
Beispiel #5
0
 public abstract void onAfterCheckinReminder(IXServerEventsContext ec, Reminder[] remiArray, Sord sord, SordZ sordZ, LockZ unlockZ);
Beispiel #6
0
 public abstract void onAfterStartWorkFlow(IXServerEventsContext ec, WFDiagram workflow, Sord sord, SordZ sordZ);
Beispiel #7
0
 public abstract void onAfterEndEditWorkFlowNode(IXServerEventsContext ec, WFDiagram workflow, int nodeId, Sord sord, SordZ sordZ);
Beispiel #8
0
 /// <summary>
 /// Returns appName and appVersion
 /// </summary>
 /// <param name="ec">Execution context</param>
 /// <returns></returns>
 public string getAppInfo(IXServerEventsContext ec)
 {
     return(appName + " " + appVersion);
 }
Beispiel #9
0
 ///<summary>See IX documentation</summary>
 ///<param name="ec">See IX documentation</param>
 ///<param name="parentSordOld">See IX documentation</param>
 ///<param name="parentSordNew">See IX documentation</param>
 ///<param name="sord">See IX documentation</param>
 ///<param name="manSortIndex">See IX documentation</param>
 public abstract void onAfterRefSord(IXServerEventsContext ec, Sord parentSordOld, Sord parentSordNew, Sord sord, int manSortIndex);
Beispiel #10
0
 ///<summary>See IX documentation</summary>
 ///<param name="ec">See IX documentation</param>
 ///<param name="parentSord">See IX documentation</param>
 ///<param name="sord">See IX documentation</param>
 ///<param name="unlockZ">See IX documentation</param>
 ///<param name="delOpts">See IX documentation</param>
 ///<param name="ret">See IX documentation</param>
 public abstract void onAfterDeleteSord(IXServerEventsContext ec, Sord parentSord, Sord sord, LockZ unlockZ, DeleteOptions delOpts, bool ret);
Beispiel #11
0
 ///<summary>See IX documentation</summary>
 ///<param name="ec">See IX documentation</param>
 ///<param name="parentSord">See IX documentation</param>
 ///<param name="sord">See IX documentation</param>
 ///<param name="unlockZ">See IX documentation</param>
 ///<param name="delOpts">See IX documentation</param>
 public abstract void onBeforeDeleteSord(IXServerEventsContext ec, Sord parentSord, Sord sord, LockZ unlockZ, DeleteOptions delOpts);
Beispiel #12
0
 ///<summary>See IX documentation</summary>
 ///<param name="ec">See IX documentation</param>
 ///<param name="sord">See IX documentation</param>
 ///<param name="sordDB">See IX documentation</param>
 ///<param name="parentSord">See IX documentation</param>
 ///<param name="doc">See IX documentation</param>
 ///<param name="sordZ">See IX documentation</param>
 ///<param name="unlockZ">See IX documentation</param>
 public abstract void onAfterCheckinDocEnd(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, Document doc, SordZ sordZ, LockZ unlockZ);
Beispiel #13
0
        /*
         * Example: start workflow for new document
         * public override void onAfterCheckinSord(EloixClient.IndexServer.IXServerEventsContext ec, EloixClient.IndexServer.Sord sord, EloixClient.IndexServer.Sord sordDB, EloixClient.IndexServer.Sord parentSord, EloixClient.IndexServer.SordZ sordZ, EloixClient.IndexServer.LockZ unlockZ)
         * {
         * // new sord?
         * if (sordDB == null && sord.type >= SordC.LBT_DOCUMENT)
         * {
         *  FWConnection conn = connMap.getConn(ec);
         *  conn.Ix.startWorkFlow("myHttpHandlerWorkflow", sord.name + "-workflow", sord.guid);
         * }
         * }
         */

        ///<summary>See IX documentation</summary>
        ///<param name="ec">See IX documentation</param>
        ///<param name="sord">See IX documentation</param>
        ///<param name="sordDB">See IX documentation</param>
        ///<param name="parentSord">See IX documentation</param>
        ///<param name="sordZ">See IX documentation</param>
        ///<param name="unlockZ">See IX documentation</param>
        public abstract void onBeforeCheckinSord(IXServerEventsContext ec, Sord sord, Sord sordDB, Sord parentSord, SordZ sordZ, LockZ unlockZ);
Beispiel #14
0
        /// <summary>
        /// Returns true, if this class implements the specified method.
        /// It looks up the name in the collection implementedMethods.
        /// </summary>
        /// <param name="ec">Execution context</param>
        /// <param name="methodName">Method name, e. g. onAfterCheckinSord</param>
        /// <returns></returns>
        public bool hasMethod(IXServerEventsContext ec, string methodName)
        {
            bool v = true;

            return(implementedMethods.TryGetValue(methodName, out v) && v);
        }
Beispiel #15
0
 public abstract void onReadSord(IXServerEventsContext ec, Sord sord, SordZ sordZ, Document doc, LockZ lockZ);
Beispiel #16
0
 public abstract bool onCheckSordAccess(IXServerEventsContext ec, Sord sord, SordZ sordZ, int lur, CheckAccessOptions opts);
Beispiel #17
0
 public abstract Any executeRegisteredFunction(IXServerEventsContext ec, String functionName, Any any);