Ignore:
Timestamp:
10/01/06 12:03:28 (6 years ago)
Author:
sys
Message:

Optimisation

File:
1 edited

Legend:

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

    r6671 r6726  
    426426         *      com.scenari.m.bdp.transaction.IHTransaction, java.lang.String) 
    427427         */ 
    428         public boolean hTransformItem2MultiRes(int pId, IHTransaction pTransaction, String pUriResCurrentStream) throws Exception { 
     428        public boolean hTransformItem2MultiRes(int pId, IHTransaction pTransaction, String pNewUriRes) throws Exception { 
    429429                XItemCache vItem = fRepos.fItems[pId]; 
    430430                if (vItem == null) { throw HLogMgr.hNewException("l'id '" + pId + "' est inconnu."); } 
    431431 
    432432                IHSource vSource = vItem.fSource; 
    433                 IHSource vParent = vSource.hFindSource(".."); 
    434433                int vStatus = vSource.hGetStatus(); 
    435434                if (vStatus == IHSource.STATUS_FILE) { 
    436435                        // c'est actuellement un fichier, on le transforme. 
     436                        IHSource vParent = vSource.hFindSource(".."); 
    437437                        String vNewSuffix = vParent.hNewRandomFolder("tmp"); 
    438438                        if (vNewSuffix != null) { 
    439439                                IHSource vNewFolder = vSource.hFindSourceFromFile("tmp".concat(vNewSuffix)); 
    440                                 IHSource vNewUriRes = vNewFolder.hFindSource(pUriResCurrentStream); 
     440                                IHSource vNewUriRes = vNewFolder.hFindSource(pNewUriRes); 
    441441                                vNewUriRes.hMoveFrom(vSource); 
    442442                                vSource.hMoveFrom(vNewFolder); 
Note: See TracChangeset for help on using the changeset viewer.