示例#1
0
 public ModuleConfigHelper(long domainID, ModuleID module,
     ModuleFeatureID feature)
 {
     _domainID = domainID;
     _module = module;
     _feature = feature;
 }
示例#2
0
 public DomainAccessToVendor(ModuleFeatureID vendorId, string paramVendorProxyAllowedIP, string paramIsProxyEnabled)
 {
     _vendorId = vendorId;
     _parameterVendorProxyAllowedIP = paramVendorProxyAllowedIP;
     _parameterVendorIsProxyEnabled = paramIsProxyEnabled;
     InitConfiguration();
 }
示例#3
0
 public ModuleConfigHelper(ModuleID module,
     ModuleFeatureID feature)
 {
     _domainID = SP.SessionContext.DomainID;
     _module = module;
     _feature = feature;
 }
示例#4
0
 public bool IsFeatureEnabled(long domainID, ModuleID moduleID,
     ModuleFeatureID moduleFeatureID)
 {
     return SP.ModuleConfigProvider.IsFeatureEnabled(
         domainID, moduleID, moduleFeatureID);
 }
示例#5
0
 public string FeatureParameterStrValue(long domainID, ModuleID moduleID,
     ModuleFeatureID moduleFeatureID, string paramName)
 {
     return SP.ModuleConfigProvider.FeatureParameterValue(
         domainID, moduleID, moduleFeatureID, paramName);
 }
示例#6
0
 public bool IsFeatureEnabled(ModuleID moduleID,
     ModuleFeatureID moduleFeatureID)
 {
     return IsFeatureEnabled(SP.SessionContext.DomainID, moduleID, moduleFeatureID);
 }
示例#7
0
 public bool FeatureParameterIsEnabled(long domainID, ModuleID moduleID,
     ModuleFeatureID moduleFeatureID, string paramName)
 {
     return SP.ModuleConfigProvider.FeatureParameterIsEnabled(
         domainID, moduleID, moduleFeatureID, paramName);
 }
示例#8
0
 public string FeatureParameterStrValue(ModuleID moduleID,
     ModuleFeatureID moduleFeatureID, string paramName)
 {
     return FeatureParameterStrValue(SP.SessionContext.DomainID, moduleID, moduleFeatureID, paramName);
 }
示例#9
0
 public bool FeatureParameterIsEnabled(ModuleID moduleID,
     ModuleFeatureID moduleFeatureID, string paramName)
 {
     return FeatureParameterIsEnabled(SP.SessionContext.DomainID, moduleID, moduleFeatureID, paramName);
 }
示例#10
0
 public int FeatureParameterIntValue(long domainID, ModuleID moduleID,
     ModuleFeatureID moduleFeatureID, string paramName)
 {
     return int.Parse(SP.ModuleConfigProvider.FeatureParameterValue(
         domainID, moduleID, moduleFeatureID, paramName));
 }
示例#11
0
 public string FeatureParameterValue(long domainID, ModuleID moduleID, ModuleFeatureID moduleFeatureID, string paramName)
 {
     Util.Check.Require(IsModuleEnabled(domainID, moduleID), string.Format("Module is not enabled {0}", moduleID));
     Util.Check.Require(IsFeatureEnabled(domainID, moduleID, moduleFeatureID), string.Format("Module feature is not enabled {0}", moduleFeatureID));
     return DomainModuleFeatureConfig[domainID][moduleID][moduleFeatureID][paramName];
 }
示例#12
0
 public bool FeatureParameterIsEnabled(long domainID, ModuleID moduleID, ModuleFeatureID moduleFeatureID, string paramName)
 {
     return IsFeatureEnabled(domainID, moduleID, moduleFeatureID) && FeatureParameterValue(domainID, moduleID, moduleFeatureID, paramName) == SP.Const.MOD_Yes;
 }
示例#13
0
 public bool IsFeatureEnabled(long domainID, ModuleID moduleID, ModuleFeatureID moduleFeatureID)
 {
     Util.Check.Require(DomainModuleFeature[domainID][moduleID].ContainsKey(moduleFeatureID),
                        string.Format(
                            "The following keys combination wasn't found in DomainModuleFeature dictionary: {0},{1},{2}",
                            domainID, moduleID, moduleFeatureID));
     return IsModuleEnabled(domainID, moduleID) &&
            DomainModuleFeature[domainID][moduleID][moduleFeatureID].IsEnabled;
 }