public class WGTransientPortlet extends java.lang.Object implements WGPortlet, java.io.Serializable
WGTransientPortletRegistry| Modifier and Type | Field and Description |
|---|---|
java.util.Map<java.lang.String,WGTransientPortlet> |
_childPortlets |
| Constructor and Description |
|---|
WGTransientPortlet(WGTransientPortletRegistry registry,
java.lang.String appDb)
For root portlets without key supply
|
WGTransientPortlet(WGTransientPortletRegistry registry,
java.lang.String appDb,
java.lang.String key)
For root portlets with direct key supply
|
WGTransientPortlet(WGTransientPortletRegistry registry,
java.lang.String appDb,
WGTransientPortlet parentPortlet) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
generateKey(java.lang.String appDb,
java.lang.String parentPortletKey,
java.lang.String name)
Generates the portlet key for a transient portlet with the given specs.
|
java.lang.String |
getApplicationDb()
Returns the database key of the application using this portlet registration
|
java.util.Map<java.lang.String,WGTransientPortlet> |
getChildPortlets()
Returns the immediate child portlets of this portlet
|
java.lang.String |
getDesign()
Returns the name of the WebTML module used as portlet design
|
java.lang.String |
getDesignDb()
Returns the database key of the application containing the portlet design
|
java.lang.String |
getKey()
Returns the registration key of the portlet
|
java.lang.String |
getName()
Returns the registration name of the portlet
|
WGTransientPortlet |
getParentPortlet()
Returns the parent portlet of this portlet, null if it is the root portlet
|
java.lang.String |
getParentPortletKey()
Returns the registration key of the parent portlet
|
boolean |
isRoot()
Determines if this is the root portlet
|
void |
setDesign(java.lang.String design)
Sets the name of the WebTML module used as portlet design
|
void |
setDesignDb(java.lang.String db)
Sets the database key of the application containing the portlet design
|
void |
setName(java.lang.String name)
Sets the registration name of the portlet
|
public java.util.Map<java.lang.String,WGTransientPortlet> _childPortlets
public WGTransientPortlet(WGTransientPortletRegistry registry, java.lang.String appDb, WGTransientPortlet parentPortlet)
public WGTransientPortlet(WGTransientPortletRegistry registry, java.lang.String appDb, java.lang.String key)
registry - The portlet registryappDb - The application of the portletkey - The key of the portletpublic WGTransientPortlet(WGTransientPortletRegistry registry, java.lang.String appDb)
registry - The portlet registryappDb - The application of the portletpublic java.lang.String getKey()
WGPortletpublic static java.lang.String generateKey(java.lang.String appDb,
java.lang.String parentPortletKey,
java.lang.String name)
appDb - The application id of the portlet application, as given by WGPortletRegistry.getApplicationId(WGDatabase)parentPortletKey - The key of the parent portlet. null if the key should be generated for a root portlet.name - The name of the porlet. null if the key should be generated for a root portlet.public java.util.Map<java.lang.String,WGTransientPortlet> getChildPortlets()
public WGTransientPortlet getParentPortlet()
public java.lang.String getName()
WGPortletpublic java.lang.String getApplicationDb()
WGPortletgetApplicationDb in interface WGPortletpublic java.lang.String getDesign()
WGPortletpublic java.lang.String getDesignDb()
WGPortletgetDesignDb in interface WGPortletpublic void setDesignDb(java.lang.String db)
WGPortletsetDesignDb in interface WGPortletpublic void setDesign(java.lang.String design)
WGPortletpublic void setName(java.lang.String name)
WGPortletpublic java.lang.String getParentPortletKey()
WGPortletgetParentPortletKey in interface WGPortlet