public interface IPortletHelper
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_ERROR_REPORTER_ALIAS_PROPERTY |
static String |
PORTLET_PROFILE |
static String |
PORTLET_PSEUDO |
static String |
PORTLET_PSEUDO_OLD |
static String |
RELATION_PSEUDO_PORTLET |
static String |
XTYPE_SHORTCUT |
Modifier and Type | Method and Description |
---|---|
IPortletPropertyListFilter |
getConfigurableInstancePropertyFilter(IContext ctx,
IURI portlet)
Filter for determining the wireable properties of a portlet
on a per-user, per-portlet basis.
|
IPortletPropertyListFilter |
getConfigurableInstancePropertyFilter(IContext ctx,
IURI portlet,
boolean checkAccess)
Filter for determining the wireable properties of a portlet
on a per-user, per-portlet basis.
|
IPortletBean |
getErrorBean(IContext ctx)
Gets the error portlet bean.
|
IPortletBean |
getFullyInitializedBean(IContext ctx,
PortletData portlet)
Instantiates portlet bean
and adds all (user, page, wired, and runtime) properties to it.
|
IPortletBean |
getFullyInitializedBean(IContext ctx,
PortletData portlet,
List<PortletData> circularWiringStack,
boolean resolveWiring) |
IPortletBean |
getInitializedBean(IContext ctx,
PortletData portlet)
Instantiates portlet bean
and adds all (user, page, and wired) properties to it, except for runtime properties.
|
IPortletBean |
getInitializedBean(IContext ctx,
PortletData portlet,
boolean resolveWiring) |
PageData |
getPage() |
IPortletBean |
getPersonalProfileBean(IContext ctx)
Gets the bean for the personal profile portlet.
|
IPortletBean |
getPseudoBean(IContext ctx,
IURI target)
Gets the pseudo portlet bean for the specified item.
|
IURI |
getPseudoId(IContext ctx,
IURI target)
Gets the pseudo portlet id for the specified item.
|
IPortletBean |
getTitlebar(IContext ctx,
PortletData portlet) |
IPortletPropertyListFilter |
getWireablePropertyFilter(IContext ctx,
IURI portlet)
Filter for determining the wireable properties of a portlet
on a per-user, per-portlet basis.
|
IPortletPropertyListFilter |
getWireablePropertyFilter(IContext ctx,
IURI portlet,
boolean checkAccess)
Filter for determining the wireable properties of a portlet
on a per-user, per-portlet basis.
|
List<Object> |
getWiringDestinationGroupsAndProperties(IContext ctx,
IURI portlet)
Returns a list of
IPortletPropertyInfo s to which
the specified user can wire. |
Map<String,Object> |
getWiringPreferences(IContext ctx,
IURI portlet) |
List<Object> |
getWiringSourceGroupsAndProperties(IContext ctx,
IURI portlet)
Returns a list of
IPortletPropertyInfo s from which
the specified user can wire. |
void |
initializePageProperties(IContext ctx,
IURI portlet,
IPortletBean bean)
Adds just page properties to the previously instantiated portlet bean.
|
void |
initializePageProperties(IContext ctx,
PortletData portlet,
IPortletBean bean)
Adds just page properties to the previously instantiated portlet bean.
|
void |
initializeRuntimeProperties(IContext ctx,
IURI portlet,
IPortletBean bean)
Adds just runtime properties to the previously instantiated portlet bean.
|
void |
initializeRuntimeProperties(IContext ctx,
PortletData portlet,
IPortletBean bean)
Adds just runtime properties to the previously instantiated portlet bean.
|
void |
initializeUserProperties(IContext ctx,
IURI portlet,
IPortletBean bean)
Adds just user properties to the previously instantiated portlet bean.
|
void |
initializeUserProperties(IContext ctx,
PortletData portlet,
IPortletBean bean)
Adds just user properties to the previously instantiated portlet bean.
|
void |
initializeWiredProperties(IContext ctx,
IURI portlet,
IPortletBean bean,
List<PortletData> circularWiringStack)
Adds just wired properties to the previously instantiated portlet bean.
|
void |
initializeWiredProperties(IContext ctx,
PortletData portlet,
IPortletBean bean,
List<PortletData> circularWiringStack)
Adds just wired properties to the previously instantiated portlet bean.
|
IPortletBean |
instantiateBean(IContext ctx,
IURI portlet)
Instantiates the bean for the specified portlet
without user, page, wired, or runtime properties.
|
IPortletBean |
instantiateBean(IContext ctx,
PortletData portlet)
Instantiates the bean for the specified portlet
without user, page, wired, or runtime properties.
|
void |
printJSON(IContext ctx,
IURI portlet,
Writer out)
Deprecated.
use
PortalJSONSerializer
Print out the JSON for the specified portlet, like the following:
name:'Stewie', description:'A folder', type:'folder', uri:'/meta/default/folder/00001234' |
void |
printMap(IContext ctx,
Map<String,Object> propertyMap,
Writer out)
Deprecated.
use
JSUtils#jsonProperties(Appendable, Map, Collection, Map)
Print out a property map using the JSON property filters, like the following: |
Reader |
renderContent(IContext ctx,
IURI portlet,
IPortletBean bean,
boolean allowDirectOutput)
Renders the specified portlet.
|
Reader |
renderContent(IContext ctx,
PortletData portlet,
boolean allowDirectOutput)
Renders the specified portlet.
|
void |
setPage(PageData page) |
static final String XTYPE_SHORTCUT
static final String PORTLET_PSEUDO_OLD
static final String PORTLET_PSEUDO
static final String PORTLET_PROFILE
static final String RELATION_PSEUDO_PORTLET
static final String CUSTOM_ERROR_REPORTER_ALIAS_PROPERTY
IPortletBean instantiateBean(IContext ctx, IURI portlet) throws PortalException
PortalException
IPortletBean instantiateBean(IContext ctx, PortletData portlet) throws PortalException
PortalException
void initializeUserProperties(IContext ctx, IURI portlet, IPortletBean bean) throws PortalException
PortalException
void initializeUserProperties(IContext ctx, PortletData portlet, IPortletBean bean) throws PortalException
PortalException
void initializePageProperties(IContext ctx, IURI portlet, IPortletBean bean) throws PortalException
PortalException
void initializePageProperties(IContext ctx, PortletData portlet, IPortletBean bean) throws PortalException
PortalException
void initializeWiredProperties(IContext ctx, IURI portlet, IPortletBean bean, List<PortletData> circularWiringStack) throws PortalException
circularWiringStack
- An array used internally to catch circular wiring.
Simply pass in a blank array.PortalException
void initializeWiredProperties(IContext ctx, PortletData portlet, IPortletBean bean, List<PortletData> circularWiringStack) throws PortalException
circularWiringStack
- An array used internally to catch circular wiring.
Simply pass in a blank array.PortalException
void initializeRuntimeProperties(IContext ctx, IURI portlet, IPortletBean bean) throws PortalException
PortalException
void initializeRuntimeProperties(IContext ctx, PortletData portlet, IPortletBean bean) throws PortalException
PortalException
IPortletBean getInitializedBean(IContext ctx, PortletData portlet) throws PortalException
PortalException
IPortletBean getInitializedBean(IContext ctx, PortletData portlet, boolean resolveWiring) throws PortalException
PortalException
IPortletBean getFullyInitializedBean(IContext ctx, PortletData portlet) throws PortalException
PortalException
IPortletBean getFullyInitializedBean(IContext ctx, PortletData portlet, List<PortletData> circularWiringStack, boolean resolveWiring) throws PortalException
PortalException
Reader renderContent(IContext ctx, PortletData portlet, boolean allowDirectOutput) throws PortalException
allowDirectOutput
- If true, the portlet may render its content
directly to the output stream. If the portlet does render directly
to the output stream, the returned Reader
will be null.
Otherwise, the portlet will not render its content directly,
and it will return a non-null Reader
containing its content.PortalException
Reader renderContent(IContext ctx, IURI portlet, IPortletBean bean, boolean allowDirectOutput) throws PortalException
allowDirectOutput
- If true, the portlet may render its content
directly to the output stream. If the portlet does render directly
to the output stream, the returned Reader
will be null.
Otherwise, the portlet will not render its content directly,
and it will return a non-null Reader
containing its content.PortalException
void printJSON(IContext ctx, IURI portlet, Writer out) throws PortalException
PortalJSONSerializer
Print out the JSON for the specified portlet, like the following:
name:'Stewie', description:'A folder', type:'folder', uri:'/meta/default/folder/00001234'
PortalException
void printMap(IContext ctx, Map<String,Object> propertyMap, Writer out) throws PortalException
JSUtils#jsonProperties(Appendable, Map, Collection, Map)
Print out a property map using the JSON property filters, like the following:PortalException
IPortletPropertyListFilter getConfigurableInstancePropertyFilter(IContext ctx, IURI portlet) throws PortalException
PortalException
IPortletPropertyListFilter getConfigurableInstancePropertyFilter(IContext ctx, IURI portlet, boolean checkAccess) throws PortalException
PortalException
IPortletPropertyListFilter getWireablePropertyFilter(IContext ctx, IURI portlet) throws PortalException
PortalException
IPortletPropertyListFilter getWireablePropertyFilter(IContext ctx, IURI portlet, boolean checkAccess) throws PortalException
PortalException
List<Object> getWiringSourceGroupsAndProperties(IContext ctx, IURI portlet) throws PortalException
Returns a list of IPortletPropertyInfo
s from which
the specified user can wire. Before each group of IPortletPropertyInfo
s
in the returned list is a IPortletPropertyGroupInfo
that contains
information about the following IPortletPropertyInfo
's group.
Empty groups are omitted.
An example of the result list follows:
IPortletPropertyGroupInfo
: Group 1IPortletPropertyInfo
: Property AIPortletPropertyInfo
: Property BIPortletPropertyGroupInfo
: Group 2IPortletPropertyInfo
: Property CPortalException
List<Object> getWiringDestinationGroupsAndProperties(IContext ctx, IURI portlet) throws PortalException
Returns a list of IPortletPropertyInfo
s to which
the specified user can wire. Before each group of IPortletPropertyInfo
s
in the returned list is a IPortletPropertyGroupInfo
that contains
information about the following IPortletPropertyInfo
's group.
Empty groups are omitted.
An example of the result list follows:
IPortletPropertyGroupInfo
: Group 1IPortletPropertyInfo
: Property AIPortletPropertyInfo
: Property BIPortletPropertyGroupInfo
: Group 2IPortletPropertyInfo
: Property CPortalException
IPortletBean getPersonalProfileBean(IContext ctx) throws PortalException
PortalException
IPortletBean getErrorBean(IContext ctx) throws PortalException
PortalException
IURI getPseudoId(IContext ctx, IURI target) throws PortalException
PortalException
IPortletBean getPseudoBean(IContext ctx, IURI target) throws PortalException
PortalException
IPortletBean getTitlebar(IContext ctx, PortletData portlet) throws PortalException
PortalException
PageData getPage()
void setPage(PageData page)