|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletRegistry
PortletRegistryComponentImpl
Method Summary | |
---|---|
void |
addRegistryListener(RegistryEventListener listener)
|
PortletDefinition |
clonePortletDefinition(PortletDefinition source,
java.lang.String newPortletName)
Create a portlet instance |
java.util.Collection<PortletDefinition> |
getAllCloneDefinitions()
Retrieve all clone definitions system wide |
java.util.Collection<PortletDefinition> |
getAllDefinitions()
Retrieves all portlet definitions for this deployment including both clones and portlet definitions |
java.util.Collection<PortletDefinition> |
getAllPortletDefinitions()
Retrieve all portlet definitions system wide The collection does not include clones |
PortletApplication |
getPortletApplication(java.lang.String name)
Retrieves a PortletApplication by it's unique name. |
PortletApplication |
getPortletApplication(java.lang.String name,
boolean fromCache)
Retreives a PortletApplication by it's unique name. |
java.util.Collection<PortletApplication> |
getPortletApplications()
|
PortletDefinition |
getPortletDefinitionByUniqueName(java.lang.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(java.lang.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(java.lang.String name)
Checks whether or not a portlet application with this name has all ready been registered to the container. |
boolean |
portletDefinitionExists(java.lang.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. |
Method Detail |
---|
java.util.Collection<PortletDefinition> getAllDefinitions()
java.util.Collection<PortletDefinition> getAllPortletDefinitions()
java.util.Collection<PortletDefinition> getAllCloneDefinitions()
PortletApplication getPortletApplication(java.lang.String name)
name
-
PortletApplication getPortletApplication(java.lang.String name, boolean fromCache)
name
- fromCache
- when true first try to retrieve a shared instance from cache
java.util.Collection<PortletApplication> getPortletApplications()
PortletDefinition getPortletDefinitionByUniqueName(java.lang.String name)
name
- portlets unique name.
PortletDefinition getPortletDefinitionByUniqueName(java.lang.String name, boolean fromCache)
name
- portlets unique name.fromCache
- when true first try to retrieve a shared instance from cache
boolean portletApplicationExists(java.lang.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(java.lang.String portletName, PortletApplication app)
portletIndentity
- portlet indetity 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
-
RegistryException
void removeApplication(PortletApplication app) throws RegistryException
RegistryException
void updatePortletApplication(PortletApplication app) throws RegistryException
PortletApplicationDefinition
persistent.
app
-
RegistryException
void savePortletDefinition(PortletDefinition portlet) throws FailedToStorePortletDefinitionException
savePortletDefinition
portlet
-
FailedToStorePortletDefinitionException
void addRegistryListener(RegistryEventListener listener)
void removeRegistryEventListener(RegistryEventListener listener)
PortletDefinition clonePortletDefinition(PortletDefinition source, java.lang.String newPortletName) throws FailedToStorePortletDefinitionException
source
- create an instance from this given portlet definitionnewPortletName
- a unique portlet name
FailedToStorePortletDefinitionException
int restoreClones(PortletApplication pa) throws RegistryException
pa
-
RegistryException
void removeClone(PortletDefinition clone) throws RegistryException
clone
- the portlet definition
RegistryException
void removeAllClones(PortletApplication pa) throws RegistryException
pa
- the portlet application
RegistryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |