public void writePropertyObject(CmsRequestContext context, CmsResource resource, CmsProperty property)
    throws CmsException, CmsSecurityException {

        CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
        try {
            checkOfflineProject(dbc);
            checkPermissions(dbc, resource, CmsPermissionSet.ACCESS_WRITE, true, CmsResourceFilter.IGNORE_EXPIRATION);
            m_driverManager.writePropertyObject(dbc, resource, property);
        } catch (Exception e) {
            dbc.report(
                null,
                Messages.get().container(Messages.ERR_WRITE_PROP_2, property.getName(), context.getSitePath(resource)),
                e);
        } finally {
            dbc.clear();
        }
    }
public void writePropertyObject ( CmsRequestContext context , CmsResource resource , CmsProperty property ) throws CmsException , CmsSecurityException { CmsDbContext dbc = m_dbContextFactory . getDbContext ( context ) ; try { checkOfflineProject ( dbc ) ; checkPermissions ( dbc , resource , CmsPermissionSet . ACCESS_WRITE , true , CmsResourceFilter . IGNORE_EXPIRATION ) ; m_driverManager . writePropertyObject ( dbc , resource , property ) ; } catch ( Exception e ) { dbc . report ( null , Messages . get ( ) . container ( Messages . ERR_WRITE_PROP_2 , property . getName ( ) , context . getSitePath ( resource ) ) , e ) ; } finally { dbc . clear ( ) ; } }
Writes a property for a specified resource.<p>

@param context the current request context
@param resource the resource to write the property for
@param property the property to write

@throws CmsException if something goes wrong
@throws CmsSecurityException if the user has insufficient permission for the given resource ({@link CmsPermissionSet#ACCESS_WRITE} required)

@see CmsObject#writePropertyObject(String, CmsProperty)
@see org.opencms.file.types.I_CmsResourceType#writePropertyObject(CmsObject, CmsSecurityManager, CmsResource, CmsProperty)