internal AuthorityGroupSummary CreateAuthorityGroupSummary(AuthorityGroup authorityGroup)
		{
			return new AuthorityGroupSummary(
				authorityGroup.GetRef(),
				authorityGroup.Name,
				authorityGroup.Description,
				authorityGroup.BuiltIn,
				authorityGroup.DataGroup);
		}
예제 #2
0
 internal AuthorityGroupSummary CreateAuthorityGroupSummary(AuthorityGroup authorityGroup)
 {
     return(new AuthorityGroupSummary(
                authorityGroup.GetRef(),
                authorityGroup.Name,
                authorityGroup.Description,
                authorityGroup.BuiltIn,
                authorityGroup.DataGroup));
 }
예제 #3
0
        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));
        }
예제 #4
0
        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);
        }