18 using erminas.SmartAPI.Utils;
20 namespace erminas.SmartAPI.CMS.Project.Publication
27 internal class PublicationPackage : PartialRedDotProjectObject, IPublicationPackage
29 public PublicationPackage(
IProject project, Guid guid) : base(project, guid)
31 ExportSettings =
new PublicationSettings(
this);
34 public IPublicationSettings ExportSettings {
get;
private set; }
36 protected override void LoadWholeObject()
40 protected override XmlElement RetrieveWholeObject()
42 const string LOAD_PUBLICATION_PACKAGE =
@"<PROJECT><EXPORTPACKET action=""load"" guid=""{0}""/></PROJECT>";
43 XmlDocument xmlDoc = Project.ExecuteRQL(
string.Format(LOAD_PUBLICATION_PACKAGE, Guid.ToRQLString()));
44 return (XmlElement) xmlDoc.GetElementsByTagName(
"EXPORTPACKET")[0];