if(role==null)
{
result.setFailed(AUTHORITY_NOT_EXIST);
return result;
}
GroupAuthorities groupAuthority = new GroupAuthorities();
groupAuthority.setId(new GroupAuthoritiesId(groupID,authority));
groupAuthority.setGroups(group);
groupAuthority.setSrole(role);
groupAuthoritiesDAO.merge(groupAuthority);
result.setSucceed();
return result;
}