internal AuthorityGroupSummary CreateAuthorityGroupSummary(AuthorityGroup authorityGroup) { return new AuthorityGroupSummary( authorityGroup.GetRef(), authorityGroup.Name, authorityGroup.Description, authorityGroup.BuiltIn, authorityGroup.DataGroup); }
internal AuthorityGroupSummary CreateAuthorityGroupSummary(AuthorityGroup authorityGroup) { return(new AuthorityGroupSummary( authorityGroup.GetRef(), authorityGroup.Name, authorityGroup.Description, authorityGroup.BuiltIn, authorityGroup.DataGroup)); }
internal AuthorityGroupDetail CreateAuthorityGroupDetail(AuthorityGroup authorityGroup) { AuthorityTokenAssembler assembler = new AuthorityTokenAssembler(); List <AuthorityTokenSummary> tokens = CollectionUtils.Map <AuthorityToken, AuthorityTokenSummary>( authorityGroup.AuthorityTokens, assembler.GetAuthorityTokenSummary); return(new AuthorityGroupDetail( authorityGroup.GetRef(), authorityGroup.Name, authorityGroup.Description, authorityGroup.DataGroup, tokens)); }
internal AuthorityGroupDetail CreateAuthorityGroupDetail(AuthorityGroup authorityGroup) { AuthorityTokenAssembler assembler = new AuthorityTokenAssembler(); List<AuthorityTokenSummary> tokens = CollectionUtils.Map<AuthorityToken, AuthorityTokenSummary>( authorityGroup.AuthorityTokens, assembler.GetAuthorityTokenSummary); return new AuthorityGroupDetail( authorityGroup.GetRef(), authorityGroup.Name, authorityGroup.Description, authorityGroup.DataGroup, tokens); }