public Suggestions(BuildSpecificationTypeConstant type, long specId, string name, IEnumerable <Suggestion> suggestions) : base(suggestions) { Type = type; SpecId = specId; Name = name; }
public PackagesScreen(BuildSpecificationTypeConstant buildSpecificationType, JustificationTypeConstant type, long specId, IEnumerable <Package> existing) { BuildSpecificationType = buildSpecificationType; SpecId = specId; PackageType = type; Packages = existing; }
public Justification(JustificationTypeConstant justificationType, string text, string justifier, BuildSpecificationTypeConstant fromSpecType, IEnumerable <Software> software) { JustificationType = justificationType; Justifier = justifier; FromSpecType = fromSpecType; Text = new HtmlString((text ?? string.Empty).Replace("\n", "<br/>")); Software = (software ?? Enumerable.Empty <Software>()).OrderBy(p => p.Name); }
public static IQueryable<BuildSpecification> OfBuildSpecType(this IQueryable<BuildSpecification> specs, BuildSpecificationTypeConstant type) { var @return = specs.Where(p => p.BuildSpecificationType == type); if (type == BuildSpecificationTypeConstant.Application) @return = specs.Where(p => p.ParentId != null); return @return; }
public static string SpecsWizardDone(this IUrlHelper helper, BuildSpecificationTypeConstant type) { var prefix = "Os"; if (type == BuildSpecificationTypeConstant.Application) { prefix = "App"; } return(helper.RouteUrl("default", new { controller = $"{prefix}Specs", action = "Done" })); }
public PortReportItem(string port, bool outgoing, bool external, PortTypeConstant portType, string justifier, string justification, BuildSpecificationTypeConstant buildSpecificationType, string buildSpecName) { Port = port; Outgoing = outgoing; External = external; PortType = portType; Justifier = justifier; Justification = justification; BuildSpecificationType = buildSpecificationType; BuildSpecName = buildSpecName; }
public Suggestion(BuildSpecificationTypeConstant specType, long specId, string specName, string specOwner, string specOwnerSam, JustificationTypeConstant suggestionType, PortTypeConstant?portType, string value, bool clone) { SpecType = specType; SpecId = specId; SpecName = specName; SpecOwner = specOwner; SpecOwnerSam = specOwnerSam; SuggestionType = suggestionType; PortType = portType; Value = value; Clone = clone; }
internal void SetCount(BuildSpecificationTypeConstant type, int count) { switch (type) { case BuildSpecificationTypeConstant.Application: AppSpecCount = count; break; case BuildSpecificationTypeConstant.OperatingSystem: OsSpecCount = count; break; } }
public Package(BuildSpecificationTypeConstant buildSpecificationType, JustificationTypeConstant packageType, long id, string name, string description, bool nonCore, long?justificationId, PciScopeConstant?pciScope, int[] environmentIds, string environmentDescription) { BuildSpecificationType = buildSpecificationType; PackageType = packageType; Id = id; Name = name; Description = description; NonCore = nonCore; JustificationId = justificationId; PciScope = pciScope; EnvironmentIds = environmentIds; EnvironmentDescription = environmentDescription; }
public BuildSpec(long id, BuildSpecificationTypeConstant type, string name, string owner, string osName, string osVersion, string wikiLink, string overview, Justification[] justifications, PortReportItems ports, Software[] unJustifiedThings, InventorySystemNode[] nodes) { Id = id; Type = type; Name = name; Owner = owner; OsName = osName; OsVersion = osVersion; WikiLink = wikiLink; Ports = ports; Overview = new HtmlString((overview ?? string.Empty).Replace("\n", "<br/>")); Justifications = (justifications ?? Enumerable.Empty <Justification>()).OrderBy(p => (int)p.JustificationType); UnjustifiedSoftware = (unJustifiedThings ?? Enumerable.Empty <Software>()).OrderBy(p => p.JustificationType).ThenBy(p => p.Name); Nodes = (nodes ?? Enumerable.Empty <InventorySystemNode>()).OrderBy(p => p.Fqdn); }
public OwnerScoreCardRow(long id, string specName, long?parentId, string parentName, BuildSpecificationTypeConstant buildSpecificationType, PlatformConstant platform, int nodeCount, int passingNodeCount, int failingNodeCount, ScoreCardCount totalSoftwareCount, ScoreCardCount unjustifiedSoftwareCount, ScoreCardCount portCount) { Id = id; SpecName = specName; ParentId = parentId; ParentName = parentName; BuildSpecificationType = buildSpecificationType; Platform = platform; NodeCount = nodeCount; PassingNodeCount = passingNodeCount; FailingNodeCount = failingNodeCount; TotalSoftwareCount = totalSoftwareCount; UnjustifiedSoftwareCount = unjustifiedSoftwareCount; PortCount = portCount; }
public async Task <PartialViewResult> New(JustificationTypeConstant id, BuildSpecificationTypeConstant specType, long specId) { return(PartialView(new NewPackage(id, specType, specId, await _nodeFactory.GetEnvironments()))); }
public SpecWizard(BuildSpecificationTypeConstant buildSpecificationType, long?id, bool fromClone) { BuildSpecificationType = buildSpecificationType; Id = id; FromClone = fromClone; }
public SpecDone(long specId, BuildSpecificationTypeConstant type) { SpecId = specId; Type = type; }
public static string PartialPackagesScreen(this IUrlHelper helper, BuildSpecificationTypeConstant specType, JustificationTypeConstant packageType) { return(helper.RouteUrl("default", new { controller = "Packages", action = "ForSpec", specType, id = packageType })); }
public static string PartialNewBulkPackages(this IUrlHelper helper, BuildSpecificationTypeConstant specType, JustificationTypeConstant packageType, long specId) { return(helper.RouteUrl("default", new { controller = "Packages", action = "NewBulk", id = packageType, specId, specType })); }
public static async Task<BuildSpecification> ById(this IQueryable<BuildSpecification> specs, BuildSpecificationTypeConstant type, long id) { return await specs.OfBuildSpecType(type).ById(id); }
protected SpecificationFactoryBase(ActDbContext ctx, BuildSpecificationTypeConstant buildSpecificationType) { Ctx = ctx; _buildSpecificationType = buildSpecificationType; }
public PartialViewResult NewBulk(JustificationTypeConstant id, BuildSpecificationTypeConstant specType, long specId) { return(PartialView(new NewBulkPackages(id, specType, specId))); }
public NewBulkPackages(JustificationTypeConstant packageType, BuildSpecificationTypeConstant buildSpecificationType, long specId) : base(packageType, buildSpecificationType, specId) { }
public async Task <PartialViewResult> ForSpec(JustificationTypeConstant id, BuildSpecificationTypeConstant specType, long specId) { return(PartialView(new PackagesScreen(specType, id, specId, await _packageFactory.GetSoftwareComponents(id, specId)))); }
public NewPackage(JustificationTypeConstant packageType, BuildSpecificationTypeConstant buildSpecificationType, long specId, IDictionary <int, (string name, string color)> allEnvironments) : base(packageType)