cancel
Showing results for 
Search instead for 
Did you mean: 

Access all categories available in category management.

shanmugaraja
Champ in-the-making
Champ in-the-making
I am trying to access all categories in the category management through
Web services.

The following code is used how ever I am getting errors.   I am missing something in the path.  Any help is highly appreciated.

Thanks in advance


AuthenticationUtils.startSession("admin", "admin");
     Store storeRef = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
     Reference reference = new Reference(storeRef, null, "/cm:generalclassifiable/*");
     Node[] nodes = WebServiceFactory.getRepositoryService().get(new Predicate(new Reference[]{reference}, storeRef, null));
1 REPLY 1

shanmugaraja
Champ in-the-making
Champ in-the-making
I have used the code provided in - SDK samples in Webservices - Categories.java.

I could access all the categories. However I am not able to retrive the contents assiocated with categories.  I hope the path may not be correct.

The Categories.java has the code to retive the contents

The Generated paths are below.


PATH:"cm:generalclassifiable/cmSmiley Frustratedoftware_x0020_Document_x0020_Classification/cmSmiley Frustratedoftware_x0020_Descriptions/member" OR PATH:"cm:generalclassifiable/cmSmiley Frustratedoftware_x0020_Document_x0020_Classification/cm:Utilization_x0020_Documents/member" OR
PATH:"cm:generalclassifiable/cmSmiley Frustratedoftware_x0020_Document_x0020_Classification/cmSmiley Very Happyevelopment_x0020_Plans/member" OR PATH:"cm:generalclassifiable/cmSmiley Frustratedoftware_x0020_Document_x0020_Classification/cm:Quality_x0020_Documents/member" OR PATH:"cm:generalclassifiable/cmSmiley Frustratedoftware_x0020_Document_x0020_Classification/cm:Administrative_x0020_Documents/member"  



I have a content node under company_home and categorized to Software Document Classification category

How to get the content belong to a paticular category. Any help is appriciated.

Thanks in advance