} // afterDelete

        /// <summary>
        ///     reIndex
        /// </summary>
        /// <param name="newRecord">new record</param>
        public void ReIndex(bool newRecord)
        {
            if (IsIndexed())
            {
                String [] toBeIndexed = new String[8];
                toBeIndexed[0] = this.GetName();
                toBeIndexed[1] = this.GetDescription();
                toBeIndexed[2] = this.GetRelativeURL();
                toBeIndexed[3] = this.GetMeta_Author();
                toBeIndexed[4] = this.GetMeta_Copyright();
                toBeIndexed[5] = this.GetMeta_Description();
                toBeIndexed[6] = this.GetMeta_Keywords();
                toBeIndexed[7] = this.GetMeta_Publisher();
                MIndex.ReIndex(newRecord, toBeIndexed, GetCtx(), GetAD_Client_ID(), Get_Table_ID(), Get_ID(), GetCM_WebProject_ID(), this.GetUpdated());
                MContainerElement[] theseElements = GetAllElements();
                if (theseElements != null)
                {
                    for (int i = 0; i < theseElements.Length; i++)
                    {
                        theseElements[i].ReIndex(false);
                    }
                }
            }
            if (!IsIndexed() && !newRecord)
            {
                MIndex.CleanUp(Get_Trx(), GetAD_Client_ID(), Get_Table_ID(), Get_ID());
            }
        } // reIndex
Exemple #2
0
        }       //	afterSave

        public void ReIndex(bool newRecord)
        {
            String[] toBeIndexed = new String[2];
            toBeIndexed[0] = this.GetName();
            toBeIndexed[1] = this.GetDescription();
            MIndex.ReIndex(newRecord, toBeIndexed, GetCtx(), GetAD_Client_ID(), Get_Table_ID(), Get_ID(), GetCM_WebProject_ID(), this.GetUpdated());
        }
Exemple #3
0
        }       //	afterSave

        /// <summary>
        /// reIndex
        /// </summary>
        /// <param name="newRecord">new record</param>
        public void ReIndex(bool newRecord)
        {
            int CMWebProjectID = 0;

            if (GetNewsChannel() != null)
            {
                CMWebProjectID = GetNewsChannel().GetCM_WebProject_ID();
            }
            String [] toBeIndexed = new String[4];
            toBeIndexed[0] = this.GetAuthor();
            toBeIndexed[1] = this.GetDescription();
            toBeIndexed[2] = this.GetTitle();
            toBeIndexed[3] = this.GetContentHTML();
            MIndex.ReIndex(newRecord, toBeIndexed, GetCtx(), GetAD_Client_ID(), Get_Table_ID(), Get_ID(), CMWebProjectID, this.GetUpdated());
        } // reIndex
        }       //	afterSave

        /// <summary>
        /// reIndex
        /// </summary>
        /// <param name="newRecord">new record</param>
        public void ReIndex(bool newRecord)
        {
            if (GetParent().IsIndexed())
            {
                int CMWebProjectID = 0;
                if (GetParent() != null)
                {
                    CMWebProjectID = GetParent().GetCM_WebProject_ID();
                }
                String [] toBeIndexed = new String[3];
                toBeIndexed[0] = this.GetName();
                toBeIndexed[1] = this.GetDescription();
                toBeIndexed[2] = this.GetContentHTML();
                MIndex.ReIndex(newRecord, toBeIndexed, GetCtx(),
                               GetAD_Client_ID(), Get_Table_ID(), Get_ID(), CMWebProjectID, this.GetUpdated());
            }
            if (!GetParent().IsIndexed() && !newRecord)
            {
                MIndex.CleanUp(Get_TrxName(), GetAD_Client_ID(), Get_Table_ID(), Get_ID());
            }
        } // reIndex