need help to get object properties in DFS search service

karthick
edited September 24, 2008 in Documentum #1

Hi all,

I am using DFS StructuredQuery to implement search

service.I can get some of the attributes of object like

object_name owner_name,a_content_type,r_source,r_modify_date using the propertyset.But i could not get many of the properties of object like

r_lock_owner,lock_date,a_category,r_full_content_size and many more.

How do i get those all

properties.

Any help…

Regards,

karthick s

Comments

  • david.matheson
    edited September 24, 2008 #2

    Hey, Karthick. You get all these properties by passing an OperationsObject object to the execute method of the search service:

    queryResult = searchServicePort.execute(query, execution, getSearchOptions());

    Where the getSearchOptions() method looks like:

    private OperationOptions getSearchOptions() {

    OperationOptions options = new OperationOptions();

    PropertyProfile profile = new PropertyProfile();

    profile.setFilterMode(PropertyFilterMode.SPECIFIED_BY_INCLUDE);

    List<![CDATA[<String>]]> includeProperties = profile.getIncludeProperties();

    includeProperties.add("title");

    includeProperties.add("object_name");

    includeProperties.add("r_object_type");

    includeProperties.add("r_lock_owner");

    includeProperties.add("r_lock_date");

    includeProperties.add("a_category");

    includeProperties.add("r_full_content_size");

    options.getProfiles().add(profile);

    return options;

    }

    Let me know if this helps.

    Dave

  • karthick
    edited September 24, 2008 #3

    Hi david,

    Thanks a lot ....Its working...

    Regards,

    karthick s