18 using erminas.SmartAPI.CMS.Project;
19 using erminas.SmartAPI.Utils;
21 namespace erminas.SmartAPI.CMS.ServerManagement
26 CleanupLiveServer = 1,
27 EscalationProcedure = 2,
32 InheritPublicationPackage = 7,
34 RedDotDatabaseBackup = 9,
35 ContentClassReplacement = 10,
36 UploadMediaElement = 11,
41 DeletePagesViaFTP = 16,
44 StartUserdefinedJob = 19,
45 XCMSProjectNotifications = 20,
50 CheckReferencesToOtherProjects = 25,
51 DeletePagesViaFTPInheritPublicationPackage = 26,
61 internal class AsynchronousProcess : RedDotObject, IAsynchronousProcess
65 internal AsynchronousProcess(
ISession session, XmlElement xmlElement) : base(session, xmlElement)
70 public IProject Project {
get;
private set; }
77 public IUser User {
get;
private set; }
79 private void LoadXml()
82 if (_xmlElement.TryGetGuid(
"user", out userGuid))
84 User =
new User(Session, userGuid) {Name = XmlElement.GetAttributeValue(
"username")};
88 if (_xmlElement.TryGetGuid(
"project", out projectGuid))
90 Project =
new Project.Project(Session, projectGuid) {Name = XmlElement.GetAttributeValue(
"projectname")};