|
||||||||||
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 PortletRegistry
RegistryException
public java.util.Collection getAllPortletDefinitions()
getAllPortletDefinitions
in interface PortletRegistry
public MutablePortletApplication getPortletApplication(org.apache.pluto.om.common.ObjectID id)
PortletRegistry
getPortletApplication
in interface PortletRegistry
public MutablePortletApplication getPortletApplication(java.lang.String name)
PortletRegistry
getPortletApplication
in interface PortletRegistry
public MutablePortletApplication getPortletApplicationByIdentifier(java.lang.String identifier)
PortletRegistry
identifier
field.
getPortletApplicationByIdentifier
in interface PortletRegistry
identifier
- Unique id for this portlet application
public java.util.Collection getPortletApplications()
getPortletApplications
in interface PortletRegistry
public PortletDefinitionComposite getPortletDefinitionByIdentifier(java.lang.String identifier)
PortletRegistry
identifier
field.
getStoreableInstance(PortletDefinitionComposite portlet)
on the returned PortletEntityInstance
getPortletDefinitionByIdentifier
in interface PortletRegistry
identifier
- Unique id for this portlet
public PortletDefinitionComposite getPortletDefinitionByUniqueName(java.lang.String name)
PortletRegistry
getStoreableInstance(PortletDefinitionComposite portlet)
on the returned PortletEntityInstance
getPortletDefinitionByUniqueName
in interface PortletRegistry
name
- portlets unique name.
public boolean portletApplicationExists(java.lang.String appIdentity)
PortletRegistry
portletApplicationExists
in interface PortletRegistry
true
if a portlet application with this identity
is alreay registered, false
if it has not.public boolean namedPortletApplicationExists(java.lang.String appName)
PortletRegistry
namedPortletApplicationExists
namedPortletApplicationExists
in interface PortletRegistry
public boolean portletDefinitionExists(java.lang.String portletName, MutablePortletApplication app)
PortletRegistry
portletDefinitionExists
in interface PortletRegistry
app
- 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 PortletRegistry
portletIdentity
- 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
PortletRegistry
PortletApplicationDefinition
within the Portal.
registerPortletApplication
in interface PortletRegistry
RegistryException
public void removeApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app) throws RegistryException
removeApplication
in interface PortletRegistry
RegistryException
public void updatePortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app) throws RegistryException
PortletRegistry
PortletApplicationDefinition
persistent.
updatePortletApplication
in interface PortletRegistry
RegistryException
public void savePortletDefinition(org.apache.pluto.om.portlet.PortletDefinition portlet) throws FailedToStorePortletDefinitionException
PortletRegistry
savePortletDefinition
savePortletDefinition
in interface PortletRegistry
FailedToStorePortletDefinitionException
public PortletDefinitionComposite getPortletDefinition(org.apache.pluto.om.common.ObjectID id)
PortletRegistry
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
.
getPortletDefinition
in interface PortletRegistry
public void notifyElementAdded(JetspeedCache cache, boolean local, java.lang.Object key, java.lang.Object element)
JetspeedCacheEventListener
notifyElementAdded
in interface JetspeedCacheEventListener
cache
- the Cache repoorting the changelocal
- true if action was local, false if initiated by remote cachekey
- key of objectelement
- content of objectpublic void notifyElementChanged(JetspeedCache cache, boolean local, java.lang.Object key, java.lang.Object element)
JetspeedCacheEventListener
notifyElementChanged
in interface JetspeedCacheEventListener
cache
- the Cache repoorting the changelocal
- true if action was local, false if initiated by remote cachekey
- key of objectelement
- content of objectpublic void notifyElementEvicted(JetspeedCache cache, boolean local, java.lang.Object key, java.lang.Object element)
JetspeedCacheEventListener
notifyElementEvicted
in interface JetspeedCacheEventListener
cache
- the Cache repoorting the changelocal
- true if action was local, false if initiated by remote cachekey
- key of objectelement
- content of objectpublic void notifyElementExpired(JetspeedCache cache, boolean local, java.lang.Object key, java.lang.Object element)
JetspeedCacheEventListener
notifyElementExpired
in interface JetspeedCacheEventListener
cache
- the Cache repoorting the changelocal
- true if action was local, false if initiated by remote cachekey
- key of objectelement
- content of objectpublic void notifyElementRemoved(JetspeedCache cache, boolean local, java.lang.Object key, java.lang.Object element)
JetspeedCacheEventListener
notifyElementRemoved
in interface JetspeedCacheEventListener
cache
- 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 PortletRegistry
public void removeRegistryEventListner(RegistryEventListener listener)
removeRegistryEventListner
in interface PortletRegistry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |