public interface PortletRegistry
PortletRegistryComponentImpl
| Modifier and Type | Method and Description |
|---|---|
void |
addRegistryListener(RegistryEventListener listener) |
PortletDefinition |
clonePortletDefinition(PortletDefinition source,
String newPortletName)
Create a portlet instance
|
Collection<PortletDefinition> |
getAllCloneDefinitions()
Retrieve all clone definitions system wide
|
Collection<PortletDefinition> |
getAllDefinitions()
Retrieves all portlet definitions for this deployment
including both clones and portlet definitions
|
Collection<PortletDefinition> |
getAllPortletDefinitions()
Retrieve all portlet definitions system wide
The collection does not include clones
|
PortletApplication |
getPortletApplication(String name)
Retrieves a PortletApplication by it's unique name.
|
PortletApplication |
getPortletApplication(String name,
boolean fromCache)
Retreives a PortletApplication by it's unique name.
|
Collection<PortletApplication> |
getPortletApplications() |
PortletDefinition |
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.
|
PortletDefinition |
getPortletDefinitionByUniqueName(String name,
boolean fromCache)
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.
|
boolean |
portletApplicationExists(String name)
Checks whether or not a portlet application with this name has all ready
been registered to the container.
|
boolean |
portletDefinitionExists(String portletName,
PortletApplication app)
Checks whether or not a portlet with this identity has all ready
been registered to the PortletApplication.
|
void |
registerPortletApplication(PortletApplication newApp)
Creates a new
PortletApplicationDefinition
within the Portal. |
void |
removeAllClones(PortletApplication pa)
Remove all clones from a given portlet application
|
void |
removeApplication(PortletApplication app) |
void |
removeClone(PortletDefinition clone)
Remove a clone from a given portlet definition
|
void |
removeRegistryEventListener(RegistryEventListener listener) |
int |
restoreClones(PortletApplication pa)
Restores all orphaned clones to a re-registered portlet application
|
void |
savePortletDefinition(PortletDefinition portlet)
savePortletDefinition
|
void |
updatePortletApplication(PortletApplication app)
Makes any changes to the
PortletApplicationDefinition
persistent. |
Collection<PortletDefinition> getAllDefinitions()
Collection<PortletDefinition> getAllPortletDefinitions()
Collection<PortletDefinition> getAllCloneDefinitions()
PortletApplication getPortletApplication(String name)
name - PortletApplication getPortletApplication(String name, boolean fromCache)
name - fromCache - when true first try to retrieve a shared instance from cacheCollection<PortletApplication> getPortletApplications()
PortletDefinition getPortletDefinitionByUniqueName(String name)
name - portlets unique name.PortletDefinition getPortletDefinitionByUniqueName(String name, boolean fromCache)
name - portlets unique name.fromCache - when true first try to retrieve a shared instance from cacheboolean portletApplicationExists(String name)
name - portlet application name to check for.true if a portlet application with this name
is alreay registered, false if it has not.boolean portletDefinitionExists(String portletName, PortletApplication app)
portletName - portlet identity to check for.app - PortletApplication to check .true if a portlet with this identity
is alreay registered, false if it has not.void registerPortletApplication(PortletApplication newApp) throws RegistryException
PortletApplicationDefinition
within the Portal.newApp - RegistryExceptionvoid removeApplication(PortletApplication app) throws RegistryException
RegistryExceptionvoid updatePortletApplication(PortletApplication app) throws RegistryException
PortletApplicationDefinition
persistent.app - RegistryExceptionvoid savePortletDefinition(PortletDefinition portlet) throws FailedToStorePortletDefinitionException
savePortletDefinition
portlet - FailedToStorePortletDefinitionExceptionvoid addRegistryListener(RegistryEventListener listener)
void removeRegistryEventListener(RegistryEventListener listener)
PortletDefinition clonePortletDefinition(PortletDefinition source, String newPortletName) throws FailedToStorePortletDefinitionException
source - create an instance from this given portlet definitionnewPortletName - a unique portlet nameFailedToStorePortletDefinitionExceptionint restoreClones(PortletApplication pa) throws RegistryException
pa - RegistryExceptionvoid removeClone(PortletDefinition clone) throws RegistryException
clone - the portlet definitionRegistryExceptionvoid removeAllClones(PortletApplication pa) throws RegistryException
pa - the portlet applicationRegistryExceptionCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.