public RoleIdentifier GetRoleIdentifier(Scope scope, bool IsAdmin, bool IsShipDirector) { return(RoleIdentifiers.Where(r => r.IsAdmin == IsAdmin && r.Scope == scope && r.IsShipDirector == IsShipDirector).FirstOrDefault()); }
protected void BuildCMSRoleIDs() { RoleIdentifiers.Add(new RoleIdentifier(Scope.CMS, false)); RoleIdentifiers.Add(new RoleIdentifier(Scope.CMS, true)); }
protected void BuildCMSRegionRoleIDs() { RoleIdentifiers.Add(new RoleIdentifier(Scope.CMSRegional, false)); }
protected void BuildStateRoleIDs() { RoleIdentifiers.Add(new RoleIdentifier(Scope.State, false)); RoleIdentifiers.Add(new RoleIdentifier(Scope.State, true)); RoleIdentifiers.Add(new RoleIdentifier(Scope.State, true, true)); }
protected void BuildSubStateRoleIDs() { RoleIdentifiers.Add(new RoleIdentifier(Scope.SubStateRegion, false)); RoleIdentifiers.Add(new RoleIdentifier(Scope.SubStateRegion, true)); }
protected void BuildAgencyRoleIDs() { RoleIdentifiers.Add(new RoleIdentifier(Scope.Agency, false)); RoleIdentifiers.Add(new RoleIdentifier(Scope.Agency, true)); }