Hello Experts,
I have implemented a ucf component listener that calls the import functionality.
I have followed this tutorial from the component exchange site.
The listener is working fine but the documents are currently getting imported in to the home cabinet of the user.
foloowing is the code :
sessionManager = SessionManagerHttpBinding.getSessionManager();
String strCurrentDocbase = SessionManagerHttpBinding.getCurrentDocbase();
dfSession = sessionManager.getSession(strCurrentDocbase);
String strUserName = dfSession.getLoginUserName();
System.out.println("User name: " + strUserName);
IDfUser dfUser = dfSession.getUser(strUserName);
String strUserHomeCabinetName = dfUser.getDefaultFolder();
System.out.println("User home cabinet name is" +strUserHomeCabinetName);
m_strFolderId= FolderUtil.getFolderId(strUserHomeCabinetName);
System.out.println("Home cabinet ID is " + m_strFolderId);
componentArgs.add("objectId", m_strFolderId);
ActionService.execute("import", componentArgs, this.getContext(), this, new CallbackDoneListener(
this, "onComplete"));
I want the documents to be uploaded in the current folder path location of the user.
How do i get the folder id of the current folder .
Please reply......