Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 public RootSingletonDocumentRestriction(RestrictionsConfigRoot config) : base(config)
 {
     base._ruleName = "rootSingletonDocument";
 }
Esempio n. 3
0
 public UnpublishParentWhenNoPublishedChildrenRestriction(RestrictionsConfigRoot config) : base(config)
 {
     base._ruleName = "unpublishParentWhenNoPublishedChildren";
 }
 public DoNotPublishWithoutChildrenRestriction(RestrictionsConfigRoot config) : base(config)
 {
     base._ruleName = "doNotPublishWithoutChildren";
 }
Esempio n. 5
0
 public LeastOnceDocumentRootRestriction(RestrictionsConfigRoot config) : base(config)
 {
     base._ruleName = "leastOnceDocumentRoot";
 }
Esempio n. 6
0
 public OnlyChildDocumentRestriction(RestrictionsConfigRoot config)
 {
     _config = config;
 }
Esempio n. 7
0
 public RestrictionBase(RestrictionsConfigRoot config)
 {
     _config = config;
 }
Esempio n. 8
0
 public RootSingletonDocumentRestriction(RestrictionsConfigRoot config)
 {
     _config = config;
 }
 public LeastOnceDocumentRootRestriction(RestrictionsConfigRoot config)
 {
     _config = config;
 }
Esempio n. 10
0
 public OnlyChildDocumentRestriction(RestrictionsConfigRoot config) : base(config)
 {
     base._ruleName = "onlyChildDocument";
 }