code: public void importAccessControlEntries(
          CmsRequestContext context,
          CmsResource resource,
          List<CmsAccessControlEntry> acEntries)
      throws CmsException, CmsSecurityException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              checkOfflineProject(dbc);
              checkPermissions(dbc, resource, CmsPermissionSet.ACCESS_CONTROL, true, CmsResourceFilter.ALL);
              m_driverManager.importAccessControlEntries(dbc, resource, acEntries);
          } catch (Exception e) {
              dbc.report(
                  null,
                  Messages.get().container(Messages.ERR_IMPORT_ACL_ENTRIES_1, context.getSitePath(resource)),
                  e);
          } finally {
              dbc.clear();
          }
      }
docs: Writes a list of access control entries as new access control entries of a given resource.<p>
  
  Already existing access control entries of this resource are removed before.<p>
  
  Access is granted, if:<p>
  <ul>
  <li>the current user has control permission on the resource</li>
  </ul><p>
  
  @param context the current request context
  @param resource the resource
  @param acEntries a list of <code>{@link CmsAccessControlEntry}</code> objects
  
  @throws CmsException if something goes wrong
  @throws CmsSecurityException if the required permissions are not satisfied