code: public void addResourceToOrgUnit(CmsDbContext dbc, CmsOrganizationalUnit orgUnit, CmsResource resource)
      throws CmsException {
  
          m_monitor.flushCache(CmsMemoryMonitor.CacheType.HAS_ROLE, CmsMemoryMonitor.CacheType.ROLE_LIST);
          getUserDriver(dbc).addResourceToOrganizationalUnit(dbc, orgUnit, resource);
      }
docs: Adds a resource to the given organizational unit.<p>
  
  @param dbc the current db context
  @param orgUnit the organizational unit to add the resource to
  @param resource the resource that is to be added to the organizational unit
  
  @throws CmsException if something goes wrong
  
  @see org.opencms.security.CmsOrgUnitManager#addResourceToOrgUnit(CmsObject, String, String)
  @see org.opencms.security.CmsOrgUnitManager#addResourceToOrgUnit(CmsObject, String, String)