Page 2 of 2

Re: Set Different Version Adapter Based on Folder

PostPosted:Thu Dec 17, 2015 7:36 pm
by jllort
Executing several times the PathUtils.getParent(String docPath); you navigate backwards until /okm:root node, iterating with :
Code: Select all
String fldPath="/okm:root/XXX/ZZZ/YYY"
while ("fldPath.equals("/okm:root")) {
  String fldUUID = OKMRepository.getInstance.getNodeUuid(fldPath);
  String fldPath = PathUtils.getParent(fldPath);
}
I do not know if it will help you in some way ?