*/
private void executeAssignAcl(ImsMetadataAdminDao adminDao, StringSet uuids,
Groups groups, ArrayList<String> selectedGroups)
throws ImsServiceException, SQLException, CatalogIndexException {
ActionResult result = getActionResult();
MetadataAcl acl = null;
if (selectedGroups != null && selectedGroups.size() > 0) {
if ((uuids.size() > 0) && (groups.size() > 0)) {
acl = new MetadataAcl(getRequestContext());
result.setNumberOfRecordsModified(adminDao.updateAcl(getPublisher(),
uuids, acl.buildAclGroups(groups, selectedGroups)));
} else if ((uuids.size() > 0) && (selectedGroups.size() > 0)) {
if (selectedGroups.get(0).equalsIgnoreCase("unrestricted")) {
result.setNumberOfRecordsModified(adminDao.updateAcl(getPublisher(),uuids, null));
} else {
StringBuilder sbAclXml = new StringBuilder();