public RestrictionsConfig(string configPath) { if (!File.Exists(configPath)) { Logger.Warn("Couldn't find config file " + configPath); return; } XmlSerializer serializer = new XmlSerializer(typeof(RestrictionsConfigRoot)); using (FileStream fileStream = new FileStream(configPath, FileMode.Open)) { RestrictionsConfigRoot result = (RestrictionsConfigRoot)serializer.Deserialize(fileStream); ConfigEntries = result; } }
public RootSingletonDocumentRestriction(RestrictionsConfigRoot config) : base(config) { base._ruleName = "rootSingletonDocument"; }
public UnpublishParentWhenNoPublishedChildrenRestriction(RestrictionsConfigRoot config) : base(config) { base._ruleName = "unpublishParentWhenNoPublishedChildren"; }
public DoNotPublishWithoutChildrenRestriction(RestrictionsConfigRoot config) : base(config) { base._ruleName = "doNotPublishWithoutChildren"; }
public LeastOnceDocumentRootRestriction(RestrictionsConfigRoot config) : base(config) { base._ruleName = "leastOnceDocumentRoot"; }
public OnlyChildDocumentRestriction(RestrictionsConfigRoot config) { _config = config; }
public RestrictionBase(RestrictionsConfigRoot config) { _config = config; }
public RootSingletonDocumentRestriction(RestrictionsConfigRoot config) { _config = config; }
public LeastOnceDocumentRootRestriction(RestrictionsConfigRoot config) { _config = config; }
public OnlyChildDocumentRestriction(RestrictionsConfigRoot config) : base(config) { base._ruleName = "onlyChildDocument"; }