Oracle WebCenter Sites (MOSC)

MOSC Banner

REST parent aaset type search/load and sort ?

edited Mar 21, 2014 12:49PM in Oracle WebCenter Sites (MOSC) 4 commentsAnswered ✓

Where can I find a code example or documentation on how to load or search all assets of certain asset type (it's a prent asset type), with all their flex attributes, sort the result by according to a flex attribute ?

The REST API resources reference and beans reference aren't clear on how to send request, the search parameters, receive responses not mentioning troubleshooting.

Thank you.

EDIT:

I tried editing the ReadAsset.java sample code like the following (based on gusses)

WebResource webResource = client.resource("http://localhost:9080/cs/REST");
webResource = webResource.path("types").path(flexAssetTypeName).path("search")

for(AssetInfo assetInfo : resultsAsset.getAssetinfos()) {
     System.out.println("Asset ID: " + assetInfo.getId());
     for(FieldInfo fi :  assetInfo.getFieldinfos()) {
          System.out.println("--Field name: " + fi.getFieldname());
          System.out.println("--Field Value: " + fi.getData());
     }
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center