Пример #1
0
        /// <summary>
        /// Clones DbContentCatalog object and clones child objects with cloning or replication.
        /// as the parent object.
        /// </summary>
        /// <returns> A new DbContentCatalog object reflecting the replicated DbContentCatalog object.</returns>
        public DbContentCatalog Clone()
        {
            DbContentCatalog clonedDbContentCatalog = new DbContentCatalog();

            clonedDbContentCatalog.iD                               = iD;
            clonedDbContentCatalog.isSynced                         = isSynced;
            clonedDbContentCatalog.title                            = title;
            clonedDbContentCatalog.description                      = description;
            clonedDbContentCatalog.keywords                         = keywords;
            clonedDbContentCatalog.status                           = status;
            clonedDbContentCatalog.workflowMode                     = workflowMode;
            clonedDbContentCatalog.commentsEnabled                  = commentsEnabled;
            clonedDbContentCatalog.notifyOnComments                 = notifyOnComments;
            clonedDbContentCatalog.enabled                          = enabled;
            clonedDbContentCatalog.sortOrder                        = sortOrder;
            clonedDbContentCatalog.icon                             = icon;
            clonedDbContentCatalog.createDate                       = createDate;
            clonedDbContentCatalog.modifyDate                       = modifyDate;
            clonedDbContentCatalog.defaultTimeToPublish             = defaultTimeToPublish;
            clonedDbContentCatalog.defaultTimeToExpire              = defaultTimeToExpire;
            clonedDbContentCatalog.defaultTimeToArchive             = defaultTimeToArchive;
            clonedDbContentCatalog.defaultKeywords                  = defaultKeywords;
            clonedDbContentCatalog.defaultMenuLeftIcon              = defaultMenuLeftIcon;
            clonedDbContentCatalog.defaultMenuRightIcon             = defaultMenuRightIcon;
            clonedDbContentCatalog.menuLabel                        = menuLabel;
            clonedDbContentCatalog.menuTooltip                      = menuTooltip;
            clonedDbContentCatalog.menuEnabled                      = menuEnabled;
            clonedDbContentCatalog.menuOrder                        = menuOrder;
            clonedDbContentCatalog.menuLeftIcon                     = menuLeftIcon;
            clonedDbContentCatalog.menuRightIcon                    = menuRightIcon;
            clonedDbContentCatalog.menuBreakImage                   = menuBreakImage;
            clonedDbContentCatalog.menuBreakCssClass                = menuBreakCssClass;
            clonedDbContentCatalog.menuCssClass                     = menuCssClass;
            clonedDbContentCatalog.menuCatalogCssClass              = menuCatalogCssClass;
            clonedDbContentCatalog.menuCatalogSelectedCssClass      = menuCatalogSelectedCssClass;
            clonedDbContentCatalog.menuCatalogChildSelectedCssClass = menuCatalogChildSelectedCssClass;
            clonedDbContentCatalog.menuClipCssClass                 = menuClipCssClass;
            clonedDbContentCatalog.menuClipSelectedCssClass         = menuClipSelectedCssClass;
            clonedDbContentCatalog.menuClipChildSelectedCssClass    = menuClipChildSelectedCssClass;
            clonedDbContentCatalog.menuClipChildExpandedCssClass    = menuClipChildExpandedCssClass;
            clonedDbContentCatalog.menuOverrideFlags                = menuOverrideFlags;
            clonedDbContentCatalog.menuIconFlags                    = menuIconFlags;


            if (parentCatalog != null)
            {
                clonedDbContentCatalog.parentCatalog = parentCatalog;
            }

            if (childCatalogs != null)
            {
                clonedDbContentCatalog.childCatalogs = childCatalogs.Clone();
            }

            if (defaultClip != null)
            {
                clonedDbContentCatalog.defaultClip = defaultClip;
            }

            if (defaultStatus != null)
            {
                clonedDbContentCatalog.defaultStatus = defaultStatus;
            }

            if (defaultRating != null)
            {
                clonedDbContentCatalog.defaultRating = defaultRating;
            }

            if (defaultArchive != null)
            {
                clonedDbContentCatalog.defaultArchive = defaultArchive;
            }

            if (templates != null)
            {
                clonedDbContentCatalog.templates = templates.Clone();
            }

            if (authorRole != null)
            {
                clonedDbContentCatalog.authorRole = authorRole;
            }

            if (editorRole != null)
            {
                clonedDbContentCatalog.editorRole = editorRole;
            }

            if (reviewerRole != null)
            {
                clonedDbContentCatalog.reviewerRole = reviewerRole;
            }

            return(clonedDbContentCatalog);
        }
Пример #2
0
        /// <summary>
        /// Clones DbContentClip object and clones child objects with cloning or replication.
        /// as the parent object.
        /// </summary>
        /// <returns> A new DbContentClip object reflecting the replicated DbContentClip object.</returns>
        public DbContentClip Clone()
        {
            DbContentClip clonedDbContentClip = new DbContentClip();

            clonedDbContentClip.iD                = iD;
            clonedDbContentClip.isSynced          = isSynced;
            clonedDbContentClip.createDate        = createDate;
            clonedDbContentClip.modifyDate        = modifyDate;
            clonedDbContentClip.title             = title;
            clonedDbContentClip.description       = description;
            clonedDbContentClip.keywords          = keywords;
            clonedDbContentClip.icon              = icon;
            clonedDbContentClip.body              = body;
            clonedDbContentClip.publishDate       = publishDate;
            clonedDbContentClip.expirationDate    = expirationDate;
            clonedDbContentClip.archiveDate       = archiveDate;
            clonedDbContentClip.priority          = priority;
            clonedDbContentClip.sortOrder         = sortOrder;
            clonedDbContentClip.commentsEnabled   = commentsEnabled;
            clonedDbContentClip.notifyOnComments  = notifyOnComments;
            clonedDbContentClip.overrideUrl       = overrideUrl;
            clonedDbContentClip.menuLabel         = menuLabel;
            clonedDbContentClip.menuTooltip       = menuTooltip;
            clonedDbContentClip.menuEnabled       = menuEnabled;
            clonedDbContentClip.menuOrder         = menuOrder;
            clonedDbContentClip.menuLeftIcon      = menuLeftIcon;
            clonedDbContentClip.menuLeftIconOver  = menuLeftIconOver;
            clonedDbContentClip.menuRightIcon     = menuRightIcon;
            clonedDbContentClip.menuRightIconOver = menuRightIconOver;
            clonedDbContentClip.menuBreak         = menuBreak;


            if (status != null)
            {
                clonedDbContentClip.status = status;
            }

            if (parentCatalog != null)
            {
                clonedDbContentClip.parentCatalog = parentCatalog;
            }

            if (rating != null)
            {
                clonedDbContentClip.rating = rating;
            }

            if (references != null)
            {
                clonedDbContentClip.references = references.Clone();
            }

            if (workingDraft != null)
            {
                clonedDbContentClip.workingDraft = workingDraft;
            }

            if (authors != null)
            {
                clonedDbContentClip.authors = authors.Clone();
            }

            if (editors != null)
            {
                clonedDbContentClip.editors = editors.Clone();
            }

            return(clonedDbContentClip);
        }