Beispiel #1
0
    /// <summary>
    /// Reload data.
    /// </summary>
    public override void ReloadData()
    {
        chkDocuments.Checked        = (Settings.GetObjectsProcessType(TreeNode.OBJECT_TYPE, true) != ProcessObjectEnum.None);
        chkDocumentsHistory.Checked = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_DOC_HISTORY), true);

        chkRelationships.Checked = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_DOC_RELATIONSHIPS), true);
        chkACLs.Checked          = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_DOC_ACLS), true);

        // Visibility
        SiteImportSettings settings = (SiteImportSettings)Settings;

        chkACLs.Visible             = settings.IsIncluded(AclInfo.OBJECT_TYPE, false);
        chkDocumentsHistory.Visible = settings.IsIncluded(VersionHistoryInfo.OBJECT_TYPE, false);
        chkRelationships.Visible    = settings.IsIncluded(RelationshipInfo.OBJECT_TYPE, false);
        pnlDocumentData.Visible     = chkDocumentsHistory.Visible || chkACLs.Visible || chkRelationships.Visible;
    }
Beispiel #2
0
    /// <summary>
    /// Reload data.
    /// </summary>
    public override void ReloadData()
    {
        chkDocuments.Checked        = (Settings.GetObjectsProcessType(TreeNode.OBJECT_TYPE, true) != ProcessObjectEnum.None);
        chkDocumentsHistory.Checked = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_DOC_HISTORY), true);

        chkRelationships.Checked        = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_DOC_RELATIONSHIPS), true);
        chkACLs.Checked                 = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_DOC_ACLS), true);
        chkEventAttendees.Checked       = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_EVENT_ATTENDEES), true);
        chkBlogComments.Checked         = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_BLOG_COMMENTS), true);
        chkUserPersonalizations.Checked = ValidationHelper.GetBoolean(Settings.GetSettings(ImportExportHelper.SETTINGS_USER_PERSONALIZATIONS), !ExistingSite);

        // Visibility
        SiteImportSettings settings = (SiteImportSettings)Settings;

        chkACLs.Visible             = settings.IsIncluded(AclInfo.OBJECT_TYPE, false);
        chkDocumentsHistory.Visible = settings.IsIncluded(VersionHistoryInfo.OBJECT_TYPE, false);
        chkRelationships.Visible    = settings.IsIncluded(RelationshipInfo.OBJECT_TYPE, false);
        //this.chkUserPersonalizations.Visible = settings.IsIncluded(PortalObjectType.PERSONALIZATION, false);
        pnlDocumentData.Visible = chkDocumentsHistory.Visible || chkACLs.Visible || chkRelationships.Visible || chkUserPersonalizations.Visible;

        chkBlogComments.Visible   = settings.IsIncluded(PredefinedObjectType.BLOGCOMMENT, false);
        chkEventAttendees.Visible = settings.IsIncluded(PredefinedObjectType.EVENTATTENDEE, false);
        pnlModules.Visible        = chkBlogComments.Visible || chkEventAttendees.Visible;
    }