Sun Java System Portal Server 7 Developer's Guide

An RDMQuery

An RDMQuery represents the body of an RDM. An RDMQuery structure has one public field, soif, which is a SOIF containing a collection of attribute-value pairs. The allowable attribute names of the attribute-value pairs in the SOIF are:

You can use the following macros to get and set the string values of these attributes:

RDMQuery_GetScope(query)
RDMQuery_GetViewAttr(query)
RDMQuery_GetViewHits(query)
RDMQuery_GetViewOrder(query)
RDMQuery_GetViewTemplate(query)

RDMQuery_SetScope(query, value)
RDMQuery_SetViewAttr(query,value-list)
RDMQuery_SetViewHits(query,value)
RDMQuery_SetViewOrder(query,value-list)
RDMQuery_SetViewTemplate(query,value)
RDMQuery_Parse
NSAPI_PUBLIC RDMQuery *RDMQuery_Parse(SOIFStream *ss);
RDMQuery_Create
NSAPI_PUBLIC RDMQuery *RDMQuery_Create(const char *scope);
RDMQuery_Free
NSAPI_PUBLIC int RDMQuery_Free(RDMQuery *);
RDMQuery_Merge
NSAPI_PUBLIC int RDMQuery_Merge(RDMQuery *, SOIF *);

Other RDM Structures

In addition to RDMHeader and RDMQuery, the file rdm.h provides definitions and functions for the following auxiliary objects. See the file rdm.h in PortalServer-base/sdk/rdm/include directory for details.