public virtual void Process(GetFacetMemberValuesArgs args)
 {
     Assert.ArgumentNotNull(args, "args");
     Assert.ArgumentNotNullOrEmpty(args.FacetName, "args.FacetName");
     Assert.ArgumentNotNullOrEmpty(args.MemberName, "args.MemberName");
     args.MemberType = ContactFacetHelper.GetFacetMemberType(args.FacetName, args.MemberName);
 }
 public virtual void Process(GetFacetMemberValuesArgs args)
 {
     Assert.ArgumentNotNull(args, "args");
     Assert.ArgumentNotNullOrEmpty(args.FacetName, "args.FacetName");
     Assert.ArgumentNotNullOrEmpty(args.MemberName, "args.MemberName");
     args.MemberType = ContactFacetHelper.GetFacetMemberType(args.FacetName, args.MemberName);
 }
 public virtual void Process(GetFacetMemberValuesArgs args)
 {
     Assert.ArgumentNotNull(args, "args");
     Assert.ArgumentNotNull(args.MemberType, "args.MemberType");
     if (args.MemberType == typeof(bool))
     {
         args.Values.Add("true", "true");
         args.Values.Add("false", "false");
     }
 }
     void AddContactFacetMemberValues(string facetName, string memberName, ID parentId)
 {
     var args = new GetFacetMemberValuesArgs(facetName, memberName);
     CorePipeline.Run("getFacetMemberValues", args);
     if (!args.Values.Any())
     {
         return;
     }
     foreach (var pair in args.Values)
     {
         IDTableHelper.GenerateIdForFacetMemberValue($"{facetName}-{memberName}-{pair.Key}", pair.Value, parentId, Sitecore.Strategy.Contacts.DataProviders.TemplateIDs.ContactFacetMemberValueTemplate);
     }
 }
 protected virtual void AddChildIDsForContactFacetMemberItem(IDList ids, ItemDefinition itemDefinition, CallContext context)
 {
     var itemId = itemDefinition.ID;
     var facetName = IDTableHelper.GetFacetMemberFacetName(itemId);
     var memberName = IDTableHelper.GetFacetMemberName(itemId);
     var args = new GetFacetMemberValuesArgs(facetName, memberName);
     CorePipeline.Run("getFacetMemberValues", args);
     if (!args.Values.Any())
     {
         return;
     }
     foreach (var pair in args.Values)
     {
         var id = IDTableHelper.GenerateIdForFacetMemberValue(pair.Key, pair.Value, itemId, Sitecore.Strategy.Contacts.DataProviders.TemplateIDs.ContactFacetMemberValueTemplate);
         ids.Add(id);
     }
 }
 public virtual void Process(GetFacetMemberValuesArgs args)
 {
     Assert.ArgumentNotNull(args, "args");
     Assert.ArgumentNotNullOrEmpty(args.FacetName, "args.FacetName");
     var type = ContactFacetHelper.GetContractTypeForFacet(args.FacetName);
     if (type == null)
     {
         return;
     }
     if (! typeof(IEmployeeData).IsAssignableFrom(type))
     {
         return;
     }
     if (args.MemberName == "Location")
     {
         args.Values.Add("NA", "North America");
         args.Values.Add("SA", "South America");
         args.Values.Add("EU", "Europe");
         args.Values.Add("APAC", "Asia-Pacific");
     }
 }