Oracle Fusion Middleware REST API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.4)
E14258-03

Get Portlet

Retrieves information about a single Portlet, specified by definition or instance label

Namespace

/bea/wlp/api

HTTP Method

GET

URI

/bea/wlp/api/portlet/details/{portlet definition or instance label}

Parameters

Parameter
Type
Description
Allowed Values
Default Value
webapp (required)
String
The webapp that contains the Portlet.
format
String
The format of the results.
xml
json
xml
scope
String
The scope at which to get the Portlet.
library
admin
visitor
library
portal
String
For 'admin' or 'visitor' scope, the Portal the Portlet instance is contained in.
desktop
String
For 'admin' or 'visitor' scope, the Desktop the Portlet instance is contained in.
username
String
For 'visitor' scope only. If username is specified, the operation will be done as an administrator (and will require admin privileges), returning the specified username's customized Portlet instance. If username is omitted, the operation will be done as the logged-in user, returning their own Portlet instance.
locale
String
The locale to use for the title and/or description of the returned Portlet. Must be of the format: lang-country-variant ie. [nn], [nn-nn], or [nn-nn-nnnn].
Preferred locale from request.

Input Example

/bea/wlp/api/portlet/details/portlet_123?webapp=myWebApp&portal=myPortalPath&desktop=myDesktopPath&locale=en-us&scope=library

Return Example

<rsp>
    <title>My Portlet</title>
    <description>My Portlet</description>
    <content_uri>/portlets/Portlet1/my_portlet.jsp</content_uri>
    <forkable>false</forkable>
    <fork_render>false</fork_render>
    <is_public>true</is_public>
    <cacheable>false</cacheable>
    <cache_expires>-1</cache_expires>
    <portlet_file>/portlets/Portlet1/Portlet1.portlet</portlet_file>
    <deleted>false</deleted>
    <webapp>/myWebApp</webapp>
    <wsrp_user_properties_mode>3</wsrp_user_properties_mode>
    <state_change_flag>2</state_change_flag>
    <requires_url_templates>false</requires_url_templates>
    <templates_stored_in_session>false</templates_stored_in_session>
    <producer_offered_portlet>true</producer_offered_portlet>
    <created_date>2007-12-13 15:22:25.0</created_date>
    <modified_date>2007-12-13 15:22:25.0</modified_date>
</rsp>
Oracle Fusion Middleware REST API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.4)
E14258-03

Copyright 2011, Oracle. All rights reserved.