2 using System.Collections.Generic;
6 using erminas.SmartAPI.CMS.Project.Pages.Elements;
7 using erminas.SmartAPI.Exceptions;
8 using erminas.SmartAPI.Utils;
10 namespace erminas.SmartAPI.CMS.Project.Pages
16 AlsoCopyCompleteTree = 1,
17 CopyElementContentsInsteadOfReferencing = 2,
19 AdoptPublicationSettingsOfLinkElements = 8,
20 AdoptAuthorizationsOfLinkElements = 16,
21 AdoptAuthorizationsOfOtherElements = 32,
22 AdoptProjectVariantAssignments = 64,
23 AdoptTargetContainterReferenceFromNewlyCreatedContainer = 128
30 [Obsolete(
"This interface is experimental and will change in a future version")]
38 internal class PageCopyAndConnectJob : AbstractAsyncProjectJob, IPageCopyAndConnectJob
45 ConnectionTarget = linkElement;
49 public override void RunAsync()
54 @"<LINK action=""assign"" guid=""{0}"" reddotcacheguid=""""><PAGE action=""copy"" guid=""{1}"" copymode=""{2}"" /></LINK>";
55 Project.
Session.
ExecuteRQL(QUERY.RQLFormat(ConnectionTarget, PageToCopy, (
int) _flags), RQL.IODataFormat.SessionKeyAndLogonGuid);
73 public override void RunSync(TimeSpan maxWait)
75 throw new NotImplementedException(
"not yet implemented, please use RunAsync() for now");
78 public IPage PageToCopy {
get;
set; }