Beispiel #1
0
 /// <summary>
 /// Deep copies the current GreyFoxSetting to another instance of GreyFoxSetting.
 /// </summary>
 /// <param name="GreyFoxSetting">The GreyFoxSetting to copy to.</param>
 /// <param name="isolation">Placeholders are used to isolate the GreyFoxSetting from its children.</param>
 public void CopyTo(GreyFoxSetting greyFoxSetting, bool isolation)
 {
     greyFoxSetting.iD            = iD;
     greyFoxSetting.isPlaceHolder = isPlaceHolder;
     greyFoxSetting.isSynced      = isSynced;
     greyFoxSetting.name          = name;
     greyFoxSetting.settingValue  = settingValue;
     if (parent != null)
     {
         if (isolation)
         {
             greyFoxSetting.parent = parent.NewPlaceHolder();
         }
         else
         {
             greyFoxSetting.parent = parent.Copy(false);
         }
     }
     if (modifyRole != null)
     {
         if (isolation)
         {
             greyFoxSetting.modifyRole = modifyRole.NewPlaceHolder();
         }
         else
         {
             greyFoxSetting.modifyRole = modifyRole.Copy(false);
         }
     }
     greyFoxSetting.isSystemSetting = isSystemSetting;
 }
Beispiel #2
0
        /// <summary>
        /// Deep copies the current GreyFoxSetting to another instance of GreyFoxSetting.
        /// </summary>
        /// <param name="GreyFoxSetting">The GreyFoxSetting to copy to.</param>
        /// <param name="isolation">Placeholders are used to isolate the GreyFoxSetting from its children.</param>
        public void CopyTo(GreyFoxSetting greyFoxSetting, bool isolation)
        {
            greyFoxSetting.iD            = iD;
            greyFoxSetting.isPlaceHolder = isPlaceHolder;
            greyFoxSetting.isSynced      = isSynced;
            greyFoxSetting.name          = name;
            greyFoxSetting.value         = value;

            if (modifyRole != null)
            {
                if (isolation)
                {
                    greyFoxSetting.modifyRole = modifyRole.NewPlaceHolder();
                }
                else
                {
                    greyFoxSetting.modifyRole = modifyRole.Copy(false);
                }
            }
        }
Beispiel #3
0
        /// <summary>
        /// Deep copies the current DbContentRating to another instance of DbContentRating.
        /// </summary>
        /// <param name="DbContentRating">The DbContentRating to copy to.</param>
        /// <param name="isolation">Placeholders are used to isolate the DbContentRating from its children.</param>
        public void CopyTo(DbContentRating dbContentRating, bool isolation)
        {
            dbContentRating.iD            = iD;
            dbContentRating.isPlaceHolder = isPlaceHolder;
            dbContentRating.isSynced      = isSynced;
            dbContentRating.createDate    = createDate;
            dbContentRating.modifyDate    = modifyDate;
            dbContentRating.name          = name;
            dbContentRating.description   = description;
            dbContentRating.iconUrl       = iconUrl;

            if (requiredRole != null)
            {
                if (isolation)
                {
                    dbContentRating.requiredRole = requiredRole.NewPlaceHolder();
                }
                else
                {
                    dbContentRating.requiredRole = requiredRole.Copy(false);
                }
            }
        }
Beispiel #4
0
        /// <summary>
        /// Deep copies the current DbContentCatalog to another instance of DbContentCatalog.
        /// </summary>
        /// <param name="DbContentCatalog">The DbContentCatalog to copy to.</param>
        /// <param name="isolation">Placeholders are used to isolate the DbContentCatalog from its children.</param>
        public void CopyTo(DbContentCatalog dbContentCatalog, bool isolation)
        {
            dbContentCatalog.iD                               = iD;
            dbContentCatalog.isPlaceHolder                    = isPlaceHolder;
            dbContentCatalog.isSynced                         = isSynced;
            dbContentCatalog.title                            = title;
            dbContentCatalog.description                      = description;
            dbContentCatalog.keywords                         = keywords;
            dbContentCatalog.status                           = status;
            dbContentCatalog.workflowMode                     = workflowMode;
            dbContentCatalog.commentsEnabled                  = commentsEnabled;
            dbContentCatalog.notifyOnComments                 = notifyOnComments;
            dbContentCatalog.enabled                          = enabled;
            dbContentCatalog.sortOrder                        = sortOrder;
            dbContentCatalog.icon                             = icon;
            dbContentCatalog.createDate                       = createDate;
            dbContentCatalog.modifyDate                       = modifyDate;
            dbContentCatalog.defaultTimeToPublish             = defaultTimeToPublish;
            dbContentCatalog.defaultTimeToExpire              = defaultTimeToExpire;
            dbContentCatalog.defaultTimeToArchive             = defaultTimeToArchive;
            dbContentCatalog.defaultKeywords                  = defaultKeywords;
            dbContentCatalog.defaultMenuLeftIcon              = defaultMenuLeftIcon;
            dbContentCatalog.defaultMenuRightIcon             = defaultMenuRightIcon;
            dbContentCatalog.menuLabel                        = menuLabel;
            dbContentCatalog.menuTooltip                      = menuTooltip;
            dbContentCatalog.menuEnabled                      = menuEnabled;
            dbContentCatalog.menuOrder                        = menuOrder;
            dbContentCatalog.menuLeftIcon                     = menuLeftIcon;
            dbContentCatalog.menuRightIcon                    = menuRightIcon;
            dbContentCatalog.menuBreakImage                   = menuBreakImage;
            dbContentCatalog.menuBreakCssClass                = menuBreakCssClass;
            dbContentCatalog.menuCssClass                     = menuCssClass;
            dbContentCatalog.menuCatalogCssClass              = menuCatalogCssClass;
            dbContentCatalog.menuCatalogSelectedCssClass      = menuCatalogSelectedCssClass;
            dbContentCatalog.menuCatalogChildSelectedCssClass = menuCatalogChildSelectedCssClass;
            dbContentCatalog.menuClipCssClass                 = menuClipCssClass;
            dbContentCatalog.menuClipSelectedCssClass         = menuClipSelectedCssClass;
            dbContentCatalog.menuClipChildSelectedCssClass    = menuClipChildSelectedCssClass;
            dbContentCatalog.menuClipChildExpandedCssClass    = menuClipChildExpandedCssClass;
            dbContentCatalog.menuOverrideFlags                = menuOverrideFlags;
            dbContentCatalog.menuIconFlags                    = menuIconFlags;

            if (parentCatalog != null)
            {
                if (isolation)
                {
                    dbContentCatalog.parentCatalog = parentCatalog.NewPlaceHolder();
                }
                else
                {
                    dbContentCatalog.parentCatalog = parentCatalog.Copy(false);
                }
            }
            if (childCatalogs != null)
            {
                if (isolation)
                {
                    dbContentCatalog.childCatalogs = childCatalogs.Copy(true);
                }
                else
                {
                    dbContentCatalog.childCatalogs = childCatalogs.Copy(false);
                }
            }
            if (defaultClip != null)
            {
                if (isolation)
                {
                    dbContentCatalog.defaultClip = defaultClip.NewPlaceHolder();
                }
                else
                {
                    dbContentCatalog.defaultClip = defaultClip.Copy(false);
                }
            }
            if (defaultStatus != null)
            {
                if (isolation)
                {
                    dbContentCatalog.defaultStatus = defaultStatus.NewPlaceHolder();
                }
                else
                {
                    dbContentCatalog.defaultStatus = defaultStatus.Copy(false);
                }
            }
            if (defaultRating != null)
            {
                if (isolation)
                {
                    dbContentCatalog.defaultRating = defaultRating.NewPlaceHolder();
                }
                else
                {
                    dbContentCatalog.defaultRating = defaultRating.Copy(false);
                }
            }
            if (defaultArchive != null)
            {
                if (isolation)
                {
                    dbContentCatalog.defaultArchive = defaultArchive.NewPlaceHolder();
                }
                else
                {
                    dbContentCatalog.defaultArchive = defaultArchive.Copy(false);
                }
            }
            if (templates != null)
            {
                if (isolation)
                {
                    dbContentCatalog.templates = templates.Copy(true);
                }
                else
                {
                    dbContentCatalog.templates = templates.Copy(false);
                }
            }
            if (authorRole != null)
            {
                if (isolation)
                {
                    dbContentCatalog.authorRole = authorRole.NewPlaceHolder();
                }
                else
                {
                    dbContentCatalog.authorRole = authorRole.Copy(false);
                }
            }
            if (editorRole != null)
            {
                if (isolation)
                {
                    dbContentCatalog.editorRole = editorRole.NewPlaceHolder();
                }
                else
                {
                    dbContentCatalog.editorRole = editorRole.Copy(false);
                }
            }
            if (reviewerRole != null)
            {
                if (isolation)
                {
                    dbContentCatalog.reviewerRole = reviewerRole.NewPlaceHolder();
                }
                else
                {
                    dbContentCatalog.reviewerRole = reviewerRole.Copy(false);
                }
            }
        }
 /// <summary>
 /// Deep copies the current DojoMemberTypeTemplate to another instance of DojoMemberTypeTemplate.
 /// </summary>
 /// <param name="DojoMemberTypeTemplate">The DojoMemberTypeTemplate to copy to.</param>
 /// <param name="isolation">Placeholders are used to isolate the DojoMemberTypeTemplate from its children.</param>
 public void CopyTo(DojoMemberTypeTemplate dojoMemberTypeTemplate, bool isolation)
 {
     dojoMemberTypeTemplate.iD            = iD;
     dojoMemberTypeTemplate.isPlaceHolder = isPlaceHolder;
     dojoMemberTypeTemplate.isSynced      = isSynced;
     dojoMemberTypeTemplate.createDate    = createDate;
     dojoMemberTypeTemplate.modifyDate    = modifyDate;
     dojoMemberTypeTemplate.name          = name;
     dojoMemberTypeTemplate.description   = description;
     dojoMemberTypeTemplate.orderNum      = orderNum;
     if (memberType != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.memberType = memberType.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.memberType = memberType.Copy(false);
         }
     }
     dojoMemberTypeTemplate.memberTypeTreeHash = memberTypeTreeHash;
     if (parent != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.parent = parent.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.parent = parent.Copy(false);
         }
     }
     if (root != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.root = root.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.root = root.Copy(false);
         }
     }
     if (initialRank != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.initialRank = initialRank.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.initialRank = initialRank.Copy(false);
         }
     }
     if (initialRole != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.initialRole = initialRole.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.initialRole = initialRole.Copy(false);
         }
     }
     dojoMemberTypeTemplate.initialEmailFrom   = initialEmailFrom;
     dojoMemberTypeTemplate.initialEmailBody   = initialEmailBody;
     dojoMemberTypeTemplate.allowGuestPurchase = allowGuestPurchase;
     dojoMemberTypeTemplate.allowPurchase      = allowPurchase;
     dojoMemberTypeTemplate.allowRenewal       = allowRenewal;
     dojoMemberTypeTemplate.allowAutoRenewal   = allowAutoRenewal;
     dojoMemberTypeTemplate.ageYearsMax        = ageYearsMax;
     dojoMemberTypeTemplate.ageYearsMin        = ageYearsMin;
     dojoMemberTypeTemplate.memberForMin       = memberForMin;
     dojoMemberTypeTemplate.memberForMax       = memberForMax;
     if (rankMin != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.rankMin = rankMin.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.rankMin = rankMin.Copy(false);
         }
     }
     if (rankMax != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.rankMax = rankMax.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.rankMax = rankMax.Copy(false);
         }
     }
     if (membershipTemplate1 != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.membershipTemplate1 = membershipTemplate1.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.membershipTemplate1 = membershipTemplate1.Copy(false);
         }
     }
     if (membershipTemplate2 != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.membershipTemplate2 = membershipTemplate2.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.membershipTemplate2 = membershipTemplate2.Copy(false);
         }
     }
     if (membershipTemplate3 != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.membershipTemplate3 = membershipTemplate3.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.membershipTemplate3 = membershipTemplate3.Copy(false);
         }
     }
     if (membershipTemplate4 != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.membershipTemplate4 = membershipTemplate4.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.membershipTemplate4 = membershipTemplate4.Copy(false);
         }
     }
     if (membershipTemplate5 != null)
     {
         if (isolation)
         {
             dojoMemberTypeTemplate.membershipTemplate5 = membershipTemplate5.NewPlaceHolder();
         }
         else
         {
             dojoMemberTypeTemplate.membershipTemplate5 = membershipTemplate5.Copy(false);
         }
     }
 }