|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport
org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
org.apache.jetspeed.components.portletregistry.PersistenceBrokerPortletRegistry
public class PersistenceBrokerPortletRegistry
OjbPortletRegistry
| Field Summary |
|---|
| Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
|---|
repositoryPath |
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
PersistenceBrokerPortletRegistry(java.lang.String repositoryPath)
|
|
PersistenceBrokerPortletRegistry(java.lang.String repositoryPath,
PortletFactory portletFactory,
JetspeedCache applicationOidCache,
JetspeedCache portletOidCache,
JetspeedCache applicationNameCache,
JetspeedCache portletNameCache)
|
|
| Method Summary | |
|---|---|
void |
addRegistryListener(RegistryEventListener listener)
|
org.apache.pluto.om.common.Language |
createLanguage(java.util.Locale locale,
java.lang.String title,
java.lang.String shortTitle,
java.lang.String description,
java.util.Collection keywords)
|
java.util.Collection |
getAllPortletDefinitions()
|
MutablePortletApplication |
getPortletApplication(org.apache.pluto.om.common.ObjectID id)
Retreives a PortletApplication by it's unique ObjectID. |
MutablePortletApplication |
getPortletApplication(java.lang.String name)
Retreives a PortletApplication by it's unique name. |
MutablePortletApplication |
getPortletApplicationByIdentifier(java.lang.String identifier)
Locates a portlet application using it's unique identifier
field. |
java.util.Collection |
getPortletApplications()
|
PortletDefinitionComposite |
getPortletDefinition(org.apache.pluto.om.common.ObjectID id)
Locates the portlet defintion by its unique ObjectID. |
PortletDefinitionComposite |
getPortletDefinitionByIdentifier(java.lang.String identifier)
Locates a portlet using it's unique identifier
field. |
PortletDefinitionComposite |
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. |
boolean |
namedPortletApplicationExists(java.lang.String appName)
namedPortletApplicationExists |
void |
notifyElementAdded(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
ADDED notification for cache listeners |
void |
notifyElementChanged(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
CHANGE notification for cache listeners |
void |
notifyElementEvicted(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
EVICTED notification for cache listeners |
void |
notifyElementExpired(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
EXPIRED notification for cache listeners |
void |
notifyElementRemoved(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
REMOVE notification for cache listeners |
boolean |
portletApplicationExists(java.lang.String appIdentity)
Checks whether or not a portlet application with this identity has all ready been registered to the container. |
boolean |
portletDefinitionExists(java.lang.String portletIdentity)
Checks whether or not a portlet with this identity has all ready been registered to the container. |
boolean |
portletDefinitionExists(java.lang.String portletName,
MutablePortletApplication app)
Checks whether or not a portlet with this identity has all ready been registered to the PortletApplication. |
void |
registerPortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition newApp)
Creates a new PortletApplicationDefinition
within the Portal. |
void |
removeApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app)
|
void |
removeRegistryEventListner(RegistryEventListener listener)
|
void |
savePortletDefinition(org.apache.pluto.om.portlet.PortletDefinition portlet)
savePortletDefinition |
void |
updatePortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app)
Makes any changes to the PortletApplicationDefinition
persistent. |
| Methods inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
|---|
init |
| Methods inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
|---|
checkDaoConfig, closePersistenceBrokerIfNecessary, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate |
| Methods inherited from class org.springframework.dao.support.DaoSupport |
|---|
afterPropertiesSet, initDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistenceBrokerPortletRegistry(java.lang.String repositoryPath)
public PersistenceBrokerPortletRegistry(java.lang.String repositoryPath,
PortletFactory portletFactory,
JetspeedCache applicationOidCache,
JetspeedCache portletOidCache,
JetspeedCache applicationNameCache,
JetspeedCache portletNameCache)
| Method Detail |
|---|
public org.apache.pluto.om.common.Language createLanguage(java.util.Locale locale,
java.lang.String title,
java.lang.String shortTitle,
java.lang.String description,
java.util.Collection keywords)
throws RegistryException
createLanguage in interface PortletRegistryRegistryExceptionpublic java.util.Collection getAllPortletDefinitions()
getAllPortletDefinitions in interface PortletRegistrypublic MutablePortletApplication getPortletApplication(org.apache.pluto.om.common.ObjectID id)
PortletRegistry
getPortletApplication in interface PortletRegistrypublic MutablePortletApplication getPortletApplication(java.lang.String name)
PortletRegistry
getPortletApplication in interface PortletRegistrypublic MutablePortletApplication getPortletApplicationByIdentifier(java.lang.String identifier)
PortletRegistryidentifier
field.
getPortletApplicationByIdentifier in interface PortletRegistryidentifier - Unique id for this portlet application
public java.util.Collection getPortletApplications()
getPortletApplications in interface PortletRegistrypublic PortletDefinitionComposite getPortletDefinitionByIdentifier(java.lang.String identifier)
PortletRegistryidentifier
field.
getStoreableInstance(PortletDefinitionComposite portlet)
on the returned PortletEntityInstance
getPortletDefinitionByIdentifier in interface PortletRegistryidentifier - Unique id for this portlet
public PortletDefinitionComposite getPortletDefinitionByUniqueName(java.lang.String name)
PortletRegistrygetStoreableInstance(PortletDefinitionComposite portlet)
on the returned PortletEntityInstance
getPortletDefinitionByUniqueName in interface PortletRegistryname - portlets unique name.
public boolean portletApplicationExists(java.lang.String appIdentity)
PortletRegistry
portletApplicationExists in interface PortletRegistrytrue if a portlet application with this identity
is alreay registered, false if it has not.public boolean namedPortletApplicationExists(java.lang.String appName)
PortletRegistrynamedPortletApplicationExists
namedPortletApplicationExists in interface PortletRegistry
public boolean portletDefinitionExists(java.lang.String portletName,
MutablePortletApplication app)
PortletRegistry
portletDefinitionExists in interface PortletRegistryapp - PortletApplication to check .
true if a portlet with this identity
is alreay registered, false if it has not.public boolean portletDefinitionExists(java.lang.String portletIdentity)
PortletRegistry
portletDefinitionExists in interface PortletRegistryportletIdentity - portlet indetity to check for.
true if a portlet with this identity
is alreay registered, false if it has not.
public void registerPortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition newApp)
throws RegistryException
PortletRegistryPortletApplicationDefinition
within the Portal.
registerPortletApplication in interface PortletRegistryRegistryException
public void removeApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app)
throws RegistryException
removeApplication in interface PortletRegistryRegistryException
public void updatePortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app)
throws RegistryException
PortletRegistryPortletApplicationDefinition
persistent.
updatePortletApplication in interface PortletRegistryRegistryException
public void savePortletDefinition(org.apache.pluto.om.portlet.PortletDefinition portlet)
throws FailedToStorePortletDefinitionException
PortletRegistrysavePortletDefinition
savePortletDefinition in interface PortletRegistryFailedToStorePortletDefinitionExceptionpublic PortletDefinitionComposite getPortletDefinition(org.apache.pluto.om.common.ObjectID id)
PortletRegistryObjectID.
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.
getPortletDefinition in interface PortletRegistry
public void notifyElementAdded(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
JetspeedCacheEventListener
notifyElementAdded in interface JetspeedCacheEventListenercache - the Cache repoorting the changelocal - true if action was local, false if initiated by remote cachekey - key of objectelement - content of object
public void notifyElementChanged(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
JetspeedCacheEventListener
notifyElementChanged in interface JetspeedCacheEventListenercache - the Cache repoorting the changelocal - true if action was local, false if initiated by remote cachekey - key of objectelement - content of object
public void notifyElementEvicted(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
JetspeedCacheEventListener
notifyElementEvicted in interface JetspeedCacheEventListenercache - the Cache repoorting the changelocal - true if action was local, false if initiated by remote cachekey - key of objectelement - content of object
public void notifyElementExpired(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
JetspeedCacheEventListener
notifyElementExpired in interface JetspeedCacheEventListenercache - the Cache repoorting the changelocal - true if action was local, false if initiated by remote cachekey - key of objectelement - content of object
public void notifyElementRemoved(JetspeedCache cache,
boolean local,
java.lang.Object key,
java.lang.Object element)
JetspeedCacheEventListener
notifyElementRemoved in interface JetspeedCacheEventListenercache - the Cache repoorting the changelocal - true if action was local, false if initiated by remote cachekey - key of objectelement - content of objectpublic void addRegistryListener(RegistryEventListener listener)
addRegistryListener in interface PortletRegistrypublic void removeRegistryEventListner(RegistryEventListener listener)
removeRegistryEventListner in interface PortletRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||