getPortletDefinitionByUniqueName(String name) unique name is a string formed by the combination of a portlet's
unique within it's parent application plus the parent application's
unique name within the portlet container using ":" as a delimiter.
portletApplicationExists(String appIentity) Checks whether or not a portlet application with this identity has all ready
been registered to the container.
Parameters: appIdentity - portlet application indetity to check for.
boolean
portletDefinitionExists(String portletIndentity) Checks whether or not a portlet with this identity has all ready
been registered to the container.
Parameters: portletIndentity - portlet indetity to check for.
boolean
portletDefinitionExists(String portletName, MutablePortletApplication app) Checks whether or not a portlet with this identity has all ready
been registered to the PortletApplication.
Parameters: portletIndentity - portlet indetity to check for. Parameters: app - PortletApplication to check .
void
registerPortletApplication(PortletApplicationDefinition newApp) Creates a new PortletApplicationDefinition
within the Portal.
Retreives a PortletApplication by it's unique ObjectID.
The unqiue ObjectID is generally a function of the native
storage mechanism of the container whether it be auto-generated
by an RDBMS, O/R tool or some other mechanism.
This is different than the portlet applaiction's unique indentfier
which is specified within the portlet.xml
Parameters: id -
Retreives a PortletApplication by it's unique name. We use
PortletApplicationComposite interface which extends the PortletApplication
and adds additional functionallity to it.
Parameters: id - PortletApplicationComposite
Locates a portlet application using it's unique identifier
field.
Parameters: identifier - Unique id for this portlet application portlet application matching this unique id.
Locates the portlet defintion by its unique ObjectID.
The ObjectID is generated internally by the portal when the portlet
definition is first registered and has no connection to the information
stored within the portlet.xml.
Parameters: id - PortletDefinitionComposite
Locates a portlet using it's unique identifier
field.
This method automatically calls
getStoreableInstance(PortletDefinitionComposite portlet) on the returned PortletEntityInstance Parameters: identifier - Unique id for this portlet Portlet matching this unique id. throws: java.lang.IllegalStateException - If PortletDefinitionComposite != null ANDPortletDefinitionComposite.getPortletApplicationDefinition() == null.The reason for this is that every PortletDefinition is required tohave a parent PortletApplicationDefinition
unique name is a string formed by the combination of a portlet's
unique within it's parent application plus the parent application's
unique name within the portlet container using ":" as a delimiter.
FORMAT: application name::portlet name EXAMPLE: com.myapp.portletApp1::weather-portlet
This methos automatically calls
getStoreableInstance(PortletDefinitionComposite portlet) on the returned PortletEntityInstance Parameters: name - portlets unique name. Portlet that matches the unique name throws: java.lang.IllegalStateException - If PortletDefinitionComposite != null ANDPortletDefinitionComposite.getPortletApplicationDefinition() == null.The reason for this is that every PortletDefinition is required tohave a parent PortletApplicationDefinition
Checks whether or not a portlet application with this identity has all ready
been registered to the container.
Parameters: appIdentity - portlet application indetity to check for. boolean true if a portlet application with this identityis alreay registered, false if it has not.
Checks whether or not a portlet with this identity has all ready
been registered to the container.
Parameters: portletIndentity - portlet indetity to check for. boolean true if a portlet with this identityis alreay registered, false if it has not.
Checks whether or not a portlet with this identity has all ready
been registered to the PortletApplication.
Parameters: portletIndentity - portlet indetity to check for. Parameters: app - PortletApplication to check . boolean true if a portlet with this identityis alreay registered, false if it has not.