Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            MDBInformation mProfile = DBInformationUtility.DBInformation();

            lblVersion.Text = mProfile.Version;
            NameValuePairUtility.SetDropSelection(dropEnableInheritance, mProfile.EnableInheritance.ToString());
        }
Exemple #2
0
        /// <summary>
        /// Updated the information in the data store
        /// </summary>
        /// <param name="profile">MDBInformation</param>
        /// <returns>bool or exception</returns>
        public static bool UpdateProfile(MDBInformation profile)
        {
            bool           mRetVal = false;
            BDBInformation mBll    = new BDBInformation(SecurityEntityUtility.CurrentProfile(), ConfigSettings.CentralManagement);

            mRetVal = mBll.UpdateProfile(profile);
            return(mRetVal);
        }
Exemple #3
0
        public static void InvokeSave(int enableInheritance)
        {
            MDBInformation mProfile = DBInformationUtility.DBInformation();

            mProfile.EnableInheritance = enableInheritance;
            if (DBInformationUtility.UpdateProfile(mProfile))
            {
                FunctionUtility.RemoveCachedFunctions();
            }
        }
Exemple #4
0
        /// <summary>
        /// Updates the ZF_INFORMATION table using the properties of a given profile.
        /// </summary>
        /// <param name="profile">MDBInformation</param>
        /// <returns>Boolean</returns>
        /// <remarks></remarks>
        public bool UpdateProfile(MDBInformation profile)
        {
            if (profile == null)
            {
                throw new ArgumentNullException("profile", "profile can not be null (Nothing in Visual Basic)");
            }
            bool mRetVal = false;

            this.m_DDBInformation.Profile = profile;
            if (DatabaseIsOnline())
            {
                mRetVal = this.m_DDBInformation.UpdateProfile();
            }
            return(mRetVal);
        }