- Timestamp:
- 10/01/06 12:03:28 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Jav_BDP_FS/com/scenari/m/bdp/item/fs/HContentAccessFs.java
r6671 r6726 426 426 * com.scenari.m.bdp.transaction.IHTransaction, java.lang.String) 427 427 */ 428 public boolean hTransformItem2MultiRes(int pId, IHTransaction pTransaction, String p UriResCurrentStream) throws Exception {428 public boolean hTransformItem2MultiRes(int pId, IHTransaction pTransaction, String pNewUriRes) throws Exception { 429 429 XItemCache vItem = fRepos.fItems[pId]; 430 430 if (vItem == null) { throw HLogMgr.hNewException("l'id '" + pId + "' est inconnu."); } 431 431 432 432 IHSource vSource = vItem.fSource; 433 IHSource vParent = vSource.hFindSource("..");434 433 int vStatus = vSource.hGetStatus(); 435 434 if (vStatus == IHSource.STATUS_FILE) { 436 435 // c'est actuellement un fichier, on le transforme. 436 IHSource vParent = vSource.hFindSource(".."); 437 437 String vNewSuffix = vParent.hNewRandomFolder("tmp"); 438 438 if (vNewSuffix != null) { 439 439 IHSource vNewFolder = vSource.hFindSourceFromFile("tmp".concat(vNewSuffix)); 440 IHSource vNewUriRes = vNewFolder.hFindSource(p UriResCurrentStream);440 IHSource vNewUriRes = vNewFolder.hFindSource(pNewUriRes); 441 441 vNewUriRes.hMoveFrom(vSource); 442 442 vSource.hMoveFrom(vNewFolder);
Note: See TracChangeset
for help on using the changeset viewer.