public CmsReplaceInfo getFileReplaceInfo(CmsUUID structureId) throws CmsRpcException {

        CmsReplaceInfo result = null;
        try {
            CmsObject cms = getCmsObject();
            CmsResource res = cms.readResource(structureId, CmsResourceFilter.IGNORE_EXPIRATION);
            CmsListInfoBean fileInfo = getPageInfo(res);
            boolean isLockable = cms.getLock(res).isLockableBy(cms.getRequestContext().getCurrentUser());
            long maxFileSize = OpenCms.getWorkplaceManager().getFileBytesMaxUploadSize(cms);
            result = new CmsReplaceInfo(fileInfo, cms.getSitePath(res), isLockable, maxFileSize);
        } catch (Throwable e) {
            error(e);
        }
        return result;
    }
public CmsReplaceInfo getFileReplaceInfo ( CmsUUID structureId ) throws CmsRpcException { CmsReplaceInfo result = null ; try { CmsObject cms = getCmsObject ( ) ; CmsResource res = cms . readResource ( structureId , CmsResourceFilter . IGNORE_EXPIRATION ) ; CmsListInfoBean fileInfo = getPageInfo ( res ) ; boolean isLockable = cms . getLock ( res ) . isLockableBy ( cms . getRequestContext ( ) . getCurrentUser ( ) ) ; long maxFileSize = OpenCms . getWorkplaceManager ( ) . getFileBytesMaxUploadSize ( cms ) ; result = new CmsReplaceInfo ( fileInfo , cms . getSitePath ( res ) , isLockable , maxFileSize ) ; } catch ( Throwable e ) { error ( e ) ; } return result ; }
@see org.opencms.gwt.shared.rpc.I_CmsVfsService#getFileReplaceInfo(org.opencms.util.CmsUUID)