Hi.
I need java api to get context-dependent "folder.id" from soft type OIR.
I have soft type id looking like "wt.doc.WTDocument|ru.pts.TechDoc|ru.pts.DesignDoc".
I found two methods:
FolderContextHelper.getServerAssignedOIRFolder(typeInstance)
FolderContextHelper.getPregeneratedOIRFolder(typeInstance)
but they require TypeInstance and i don't know how to get it without object.
There is posibility to get folder by PersistableAdapter, but the result is context-independent.
Thanks.
Maybe a bit late, but I'd do it this way:
WTContainerReference containerRef; // container you want the OIR for
TypeIdentifier typeIdentifier = TypeHelper.getTypeIdentifier("wt.doc.WTDocument|ru.pts.TechDoc|ru.pts.DesignDoc");
Folder oirFolder = (Folder) new InitRuleFacade().getValue(RuleConstants.ATTR_FOLDER_ID, typeIdentifier, containerRef);