public AssociatedGroupToken(Web web, AssociatedGroupType groupType)
     : base(web, $"{{associated{groupType.ToString().TrimEnd('s')}group}}")
 {
     _groupType = groupType;
 }
 public AssociatedGroupToken(Web web, AssociatedGroupType groupType)
     : base(web, string.Format("{{associated{0}group}}", groupType.ToString().TrimEnd('s')))
 {
     _groupType = groupType;
 }
 public AssociatedGroupToken(Web web, AssociatedGroupType groupType)
     : base(web, string.Format("{{associated{0}group}}", groupType.ToString().TrimEnd('s')))
 {
     _groupType = groupType;
 }
 public AssociatedGroupToken(Web web, AssociatedGroupType groupType)
     : base(web, $"{{associated{groupType.ToString().TrimEnd('s')}group}}")
 {
     _groupType  = groupType;
     IsCacheable = false; //since TokenParser does not Update TokenDictionary in BuildTokenCache if IsCacheable=true and therefore not get the new group names after ObjectSiteSecurity renamed groups
 }
            public string GetAssosiatedGroupTitle(AssociatedGroupType groupType)
            {
                EnsureLoadAssotiatedGroups();

                string groupTitle;
                if (!this._dictValues.TryGetValue(groupType, out groupTitle))
                {
                    groupTitle = "";
                }
                return groupTitle;
            }
 private AssociatedGroupToken(Web web, AssociatedGroupType groupType, AssociatedGroupTokenLoader loader)
     : base(web, string.Format("{{associated{0}group}}", groupType.ToString().TrimEnd('s') ))
 {
     _groupType = groupType;
     _loader = loader;
 }