Ignore:
Timestamp:
03/02/09 16:02:44 (3 years ago)
Author:
sys
Message:

Amélioration gestion events d'update d'items multi-flux + réduction des appels aux refresh pour checker les modifs externes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Jav_BDP_FS/com/scenari/m/bdp/item/fs/HContentAccessFs.java

    r12843 r12932  
    5050import java.util.List; 
    5151 
     52import com.scenari.m.bdp.context.ContextBdp; 
    5253import com.scenari.m.bdp.item.IHItemDef; 
    5354import com.scenari.m.bdp.item.fs.TransfCacheMgr.CacheDef; 
     
    7071import com.scenari.src.feature.paths.SrcFeaturePaths; 
    7172import com.scenari.src.feature.random.SrcFeatureRandom; 
    72 import com.scenari.src.feature.refresh.SrcFeatureRefresh; 
    7373import com.scenari.src.feature.rights.SrcFeatureRights; 
    7474import com.scenari.src.fs.mini.FsMiniFactory; 
     
    158158                if (vItem == null) { return null; } 
    159159                ISrcNode vItemSrc = vItem.getSource(); 
    160                 // vItem.hRefresh(); 
    161160                if (pTransforms == null) { 
    162161                        ISrcNode vSource; 
     
    431430 
    432431                if (vSource != vItemSource) { 
    433                         //Si on a modifié une ressource dans l'item, on force un refresh de l'item.  
    434                         SrcFeatureRefresh.refresh(vItemSource); 
     432                        //Si on a modifié une ressource dans l'item, on force un recalcul de l'item.  
     433                        vItem.reloadAfterUpdate(ContextBdp.getThreadClient()); 
    435434                } 
    436435        } 
     
    472471        public final int hDeleteRes(IHItemDef pItemDef, String pFormat, String pUriRes, IHTransaction pTransaction) throws Exception { 
    473472                XItemCache vItem = xGetItemCache(pItemDef); 
    474                 // vItem.hRefresh(); 
    475473                if (vItem == null) { return 0; } 
    476474                ISrcNode vItemSrc = vItem.getSource(); 
     
    483481                int vResult = vContent.removeSrc() ? 1 : 0; 
    484482                if (vItemSrc != vContent) { 
    485                         //Si on a modifié une ressource dans l'item, on force un refresh de l'item.  
    486                         SrcFeatureRefresh.refresh(vItemSrc); 
     483                        //Si on a modifié une ressource dans l'item, on force un recalcul de l'item.  
     484                        vItem.reloadAfterUpdate(ContextBdp.getThreadClient()); 
    487485                } 
    488486                return vResult; 
Note: See TracChangeset for help on using the changeset viewer.