code: public void setDateReleased(CmsRequestContext context, CmsResource resource, long dateReleased)
      throws CmsException, CmsSecurityException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              checkOfflineProject(dbc);
              checkPermissions(dbc, resource, CmsPermissionSet.ACCESS_WRITE, true, CmsResourceFilter.IGNORE_EXPIRATION);
              m_driverManager.setDateReleased(dbc, resource, dateReleased);
          } catch (Exception e) {
              dbc.report(
                  null,
                  Messages.get().container(
                      Messages.ERR_SET_DATE_RELEASED_2,
                      new Object[] {new Date(dateReleased), context.getSitePath(resource)}),
                  e);
          } finally {
              dbc.clear();
          }
      }
docs: Changes the "release" date of a resource.<p>
  
  @param context the current request context
  @param resource the resource to touch
  @param dateReleased the new release date of the changed resource
  
  @throws CmsException if something goes wrong
  @throws CmsSecurityException if the user has insufficient permission for the given resource (write access permission is required)
  
  @see CmsObject#setDateReleased(String, long, boolean)
  @see org.opencms.file.types.I_CmsResourceType#setDateReleased(CmsObject, CmsSecurityManager, CmsResource, long, boolean)