Update the list of role mapping entries for the specified security configuration at the domain level.
void setRoleMappings(java.lang.String securityConfiguration, java.util.Collection<RoleMappingVO> roleMappingVOs) throws SUPAdminException
If successful, returns silently. If unsuccessful, returns SUPAdminException.
domain=this.getSUPDomain("default");
Collection<RoleMappingVO> roleMappingVOs=new java.util.ArrayList<RoleMappingVO>();
RoleMappingVO rmvo1 = new RoleMappingVO();
rmvo1.setSourceRole("AllRole");
rmvo1.setRoleMappingType(ROLE_MAPPING_TYPE.AUTO);
roleMappingVOs.add(rmvo1);
domain.setRoleMappings("admin",roleMappingVOs );
If you use a particular role mapping for a package and a different role mapping at the domain level, the package mapping overrides the domain-level mapping.