Professional Documents
Culture Documents
Please let me know whether you have migrated from folder_g to FF and if yes,let me know
whether you have followed all the steps mentioned in the below document.
Note that ddCollectionID, the identifier used in Folders_g to uniquely identify a folder and
for FrameworkFolders identifier fFolderGUID.
Have tried WebCenter Content data control approach to get the folder Id. I created an UCM
connection and created a data control for the same. I defined the below metadata field for folder
id in data control. But i am getting Null for folder id from data control, where as I am getting
correct value for other data like Name, URL from data control.
Name: folderID
Type: long
JCR Path: jcr:content/idc:metadata/idc:fFolderGUID
IdcService FLD_BROWSE provides data on the number of conten items and sub-
folders present under a specific folder . It can be used to have a list of (or tracking)
purposes for specific folders which are used most by end-users as a means of data
tracking .
// Retrieve the LocalData from the data binder-DataObject being used since this the
values are part of LocalData
DataObject localData = responseData.getLocalData();
This will show the details (in numbers) for the Folder which is specified in request .
Sample Code:
/*
* @author Srinath Menon - Oracle Inc
*
* This is a class used to list the total number of files and sub-folders which are present under a
given Framework Folder .
* It uses FLD_BROWSE service call , then iterate LocalData section to list the details .
*/
/**
* @param args
*/
public static void main(String[] args) {
// Create a new IdcClientManager
IdcClientManager manager = new IdcClientManager ();
try{
// Create a new IdcClient Connection using idc protocol (i.e. socket
connection to Content Server)
IdcClient idcClient = manager.createClient ("idc://<ucm host
name>:<intradocserver port>");
//for using the web connection - start
// IdcClient idcClient = manager.createClient("http://<ucmhost>:<web
port>/cs/idcplg");
// IdcContext userContext = new IdcContext("weblogic", "<password as
set>");
//for using web connection - end
// Retrieve the LocalData from the data binder-DataObject being used since this the
values are part of LocalData
DataObject localData = responseData.getLocalData();
}
I am able to get the folder id using path.
Below is the code i used.