public TeamMentor_Article transform() { // fix the issue with older SI Library Articles if (this.phase == null) { this.phase = this.Rule_Type; this.Rule_Type = this.Type; } var teamMentor_Article = new TeamMentor_Article(); teamMentor_Article.Metadata = new TeamMentor_Article_Metadata() { Id = this.id.guid(), Id_History = this.id_Original, Library_Id = this.libraryId.guid(), Title = this.title, Category = this.Category, Phase = this.phase, Technology = this.Technology, Type = this.Rule_Type, Author = this.Author, Priority = this.Priority, Status = this.Status, Source = this.Source, DirectLink = "", Tag = "", Security_Demand = "", }; teamMentor_Article.Content = new TeamMentor_Article_Content() { Sanitized = true, DataType = "Html" }; teamMentor_Article.Content.Data.Value = this.content; teamMentor_Article.setHashes(); teamMentor_Article.htmlEncode(); //encode contents return(teamMentor_Article); }
public TeamMentor_Article transform() { // fix the issue with older SI Library Articles if (this.phase == null) { this.phase = this.Rule_Type; this.Rule_Type = this.Type; } var teamMentor_Article = new TeamMentor_Article(); teamMentor_Article.Metadata = new TeamMentor_Article_Metadata() { Id = this.id.guid(), Id_History = this.id_Original, Library_Id = this.libraryId.guid(), Title = this.title, Category = this.Category, Phase = this.phase, Technology = this.Technology, Type = this.Rule_Type, Author = this.Author, Priority = this.Priority, Status = this.Status, Source = this.Source, DirectLink = "", Tag = "", Security_Demand = "", }; teamMentor_Article.Content = new TeamMentor_Article_Content() { Sanitized = true, DataType = "Html" }; teamMentor_Article.Content.Data.Value = this.content; teamMentor_Article.setHashes(); teamMentor_Article.htmlEncode(); //encode contents return teamMentor_Article; }