private ConvertAccessRuleVisitor ConvertRules(AccessRightsBase accessRights) { var visitor = new ConvertAccessRuleVisitor(); accessRights.AccessRules.ForEach(x => x.Accept(visitor)); return(visitor); }
public AccessRuleBase FindAccessRule(AccessRightsBase accessRights, Data.Entities.AccessPoint accessPoint) { Contract.Requires(accessRights != null); Contract.Requires(accessPoint != null); return(null); }
/// <summary> /// Searches a rule for the specified access point. /// </summary> /// <param name="accessRights">The access rights.</param> /// <param name="accessPoint">The access point.</param> /// <returns></returns> public AccessRuleBase FindAccessRule(AccessRightsBase accessRights, Data.Entities.AccessPoint accessPoint) { return(accessRights.AccessRules.OfType <T>().FirstOrDefault(x => x.AccessPoint == accessPoint)); }