Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8347987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:33:07+00:00 2026-06-09T07:33:07+00:00

I am learning CMIS and Filenet P8 . using library apache-chemistry for CMIS. I

  • 0

I am learning CMIS and Filenet P8 .
using library apache-chemistry for CMIS.
I have problem in ChoiceList.

A choice List is associated with the PropertyDefination.
I was trying to display the choice list related to each PropertyDefinition.

ItemIterable<ObjectType> v = session.getTypeChildren("cmis:document", true);
Iterator<ObjectType> i = v.iterator();

while(i.hasNext()){
             ObjectType a = i.next();
             if(a!=null)
             {   

                 Map<String, PropertyDefinition<?>> d = a.getPropertyDefinitions();

                 Iterator<String> itr = d.keySet().iterator();
                     while(itr.hasNext()){

                         String key = itr.next().toString();

                         if ((Boolean.FALSE.equals(d.get(key).isInherited()))) {


                            PropertyDefinition<?> value = d.get(key);
// Choice List
                            List<?> ch = value.getChoices();
                            System.out.println("value " + value.getDisplayName()+ " " + " choice list " + ch.toString());
                            for (Object object : ch) {
                                System.out.println(object.toString());
                            }

                            Customproperties properties = new Customproperties(value.getDisplayName(),value.getPropertyType().toString(),value.getCardinality().name(),value.isRequired());
                            customPropertyList1.add(properties);
                        }
                     }


            }
}

Output

value Document Title  choice list []
value From  choice list []
value To  choice list []
value Cc  choice list []
value Subject  choice list [[extensions=null], [extensions=null]]
[extensions=null]
[extensions=null]
value Sent On  choice list []
value Received On  choice list []
value Link IDs  choice list []

// For the propertyDefination Subject there is a choice list but it’s showing me null.. I can’t retrieve the choice List properly.

How can I solve this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:33:08+00:00Added an answer on June 9, 2026 at 7:33 am
      List<Choice> ch = value.getChoices();
    
        for (Choice Choice : ch) {
              System.out.println(choice.getDisplayName());
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Learning jquery, so please be kind :) Using PHP, I have a table with
For learning purposes, I'm trying to make a function using Python that takes in
Learning Android I'm trying to find contacts using DISPLAY_NAME selector. I need to find
Learning xml, Can anyone help me? I have following XML code: **<book lang=en>name of
Learning CasperJS Trying to understand why the following is not displaying my results in
Learning spine.js I completed both the tutorials no problem, seems like a great framework,
Learning how to do a master page in asp.net. Trying to figure out how
Learning java server technologies, trying to clarify some things. There are few technologies that
Learning rails and something smells a little funny. I have the following form for
(learning c#) I have a C# WPF application which when a certain form is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.