|
||||||||||
| 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.portletpreferences.PortletPreferencesServiceImpl
public class PortletPreferencesServiceImpl
Pluto Preferences Service. This service is designed to work with an existing JPA service, in anticipation of deprecating OJB for JPA
| Field Summary | |
|---|---|
protected static java.lang.String |
APPLICATION_NAME
|
protected static java.lang.String |
DISCRIMINATOR_ENTITY
|
protected static java.lang.String |
DISCRIMINATOR_PORTLET
|
protected static java.lang.String |
DISCRIMINATOR_USER
|
protected static java.lang.String |
DTYPE
|
protected static java.lang.String |
EMPTY_VALUE
|
protected static java.lang.String |
ENTITY_ID
|
protected static java.lang.String |
KEY_SEPARATOR
|
protected static java.lang.String |
PORTLET_NAME
|
protected static java.lang.String |
USER_NAME
|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
PortletPreferencesServiceImpl(PortletFactory portletFactory,
JetspeedCache preferenceCache)
|
|
PortletPreferencesServiceImpl(PortletFactory portletFactory,
JetspeedCache preferenceCache,
java.util.List<java.lang.String> apps,
boolean preloadEntities)
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> |
getDefaultPreferences(org.apache.pluto.container.PortletWindow pw,
javax.portlet.PortletRequest request)
PLUTO: PortletPreferencesService |
java.util.Set<java.lang.String> |
getPortletWindowIds(PortletDefinition portletdefinition)
|
javax.portlet.PreferencesValidator |
getPreferencesValidator(org.apache.pluto.container.om.portlet.PortletDefinition pd)
PLUTO: PortletPreferencesService |
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> |
getStoredPreferences(org.apache.pluto.container.PortletWindow pw,
javax.portlet.PortletRequest request)
PLUTO: PortletPreferencesService |
java.util.Set<java.lang.String> |
getUserNames(PortletDefinition portletdefinition,
java.lang.String windowId)
|
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> |
getUserPreferences(PortletDefinition portletdefinition,
java.lang.String windowId,
java.lang.String userName)
|
void |
init()
|
boolean |
isUseEntityPreferences()
|
void |
preload()
|
void |
preloadApplicationPreferences(java.lang.String portletApplicationName)
Jetspeed: PortletPreferencesProvider |
void |
preloadUserPreferences()
Jetspeed: PortletPreferencesProvider |
void |
removeDefaults(PortletApplication app)
Jetspeed: PortletPreferencesProvider |
void |
removeDefaults(PortletDefinition pd)
Jetspeed: PortletPreferencesProvider |
void |
removeDefaults(PortletDefinition pd,
java.lang.String preferenceName)
|
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> |
retrieveDefaultPreferences(PortletDefinition pd)
Jetspeed: PortletPreferencesProvider |
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> |
retrieveEntityPreferences(PortletWindow window)
Jetspeed: PortletPreferencesProvider |
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> |
retrieveUserPreferences(PortletWindow window,
java.lang.String userName)
Jetspeed: PortletPreferencesProvider |
void |
setUseEntityPreferences(boolean useEntityPreferences)
|
void |
store(org.apache.pluto.container.PortletWindow pw,
javax.portlet.PortletRequest request,
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map)
PLUTO: PortletPreferencesService |
void |
storeDefaults(PortletApplication app)
Jetspeed: PortletPreferencesProvider |
void |
storeDefaults(PortletDefinition pd,
Preference preference)
|
void |
storeDefaults(PortletDefinition pd,
Preferences newprefs)
Jetspeed: PortletPreferencesProvider |
void |
storeEntityPreferences(java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map,
PortletWindow window)
Jetspeed: PortletPreferencesProvider |
void |
storePortletPreference(PortletDefinition portletdefinition,
java.lang.String windowId,
java.lang.String userName,
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map)
|
void |
storePortletPreference(java.lang.String appName,
java.lang.String portletName,
java.lang.String windowId,
java.lang.String userName,
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map)
|
void |
storeUserPreferences(java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map,
PortletWindow window,
java.lang.String userName)
Jetspeed: PortletPreferencesProvider |
| Methods inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
|---|
checkDaoConfig, 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 |
| Field Detail |
|---|
protected static final java.lang.String DISCRIMINATOR_PORTLET
protected static final java.lang.String DISCRIMINATOR_ENTITY
protected static final java.lang.String DISCRIMINATOR_USER
protected static final java.lang.String KEY_SEPARATOR
protected static final java.lang.String EMPTY_VALUE
protected static final java.lang.String DTYPE
protected static final java.lang.String APPLICATION_NAME
protected static final java.lang.String PORTLET_NAME
protected static final java.lang.String ENTITY_ID
protected static final java.lang.String USER_NAME
| Constructor Detail |
|---|
public PortletPreferencesServiceImpl(PortletFactory portletFactory,
JetspeedCache preferenceCache)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public PortletPreferencesServiceImpl(PortletFactory portletFactory,
JetspeedCache preferenceCache,
java.util.List<java.lang.String> apps,
boolean preloadEntities)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException| Method Detail |
|---|
public boolean isUseEntityPreferences()
public void setUseEntityPreferences(boolean useEntityPreferences)
public void init()
public void destroy()
public java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> getDefaultPreferences(org.apache.pluto.container.PortletWindow pw,
javax.portlet.PortletRequest request)
throws org.apache.pluto.container.PortletContainerException
getDefaultPreferences in interface org.apache.pluto.container.PortletPreferencesServiceorg.apache.pluto.container.PortletContainerException
public java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> getStoredPreferences(org.apache.pluto.container.PortletWindow pw,
javax.portlet.PortletRequest request)
throws org.apache.pluto.container.PortletContainerException
getStoredPreferences in interface org.apache.pluto.container.PortletPreferencesServiceorg.apache.pluto.container.PortletContainerException
public java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> retrieveUserPreferences(PortletWindow window,
java.lang.String userName)
retrieveUserPreferences in interface PortletPreferencesProviderwindow - userName -
org.apache.pluto.container.PortletContainerException
public void store(org.apache.pluto.container.PortletWindow pw,
javax.portlet.PortletRequest request,
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map)
throws org.apache.pluto.container.PortletContainerException
store in interface org.apache.pluto.container.PortletPreferencesServiceorg.apache.pluto.container.PortletContainerException
public void storeUserPreferences(java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map,
PortletWindow window,
java.lang.String userName)
throws PreferencesException
storeUserPreferences in interface PortletPreferencesProviderPreferencesException
public javax.portlet.PreferencesValidator getPreferencesValidator(org.apache.pluto.container.om.portlet.PortletDefinition pd)
throws javax.portlet.ValidatorException
getPreferencesValidator in interface org.apache.pluto.container.PortletPreferencesServicejavax.portlet.ValidatorExceptionpublic void preloadApplicationPreferences(java.lang.String portletApplicationName)
preloadApplicationPreferences in interface PortletPreferencesProviderpublic void preloadUserPreferences()
preloadUserPreferences in interface PortletPreferencesProvider
public void preload()
throws java.lang.Exception
preload in interface PortletPreferencesProviderjava.lang.Exceptionpublic void storeDefaults(PortletApplication app)
storeDefaults in interface PortletPreferencesProvider
public void storeDefaults(PortletDefinition pd,
Preferences newprefs)
storeDefaults in interface PortletPreferencesProvider
public void storeDefaults(PortletDefinition pd,
Preference preference)
storeDefaults in interface PortletPreferencesProviderpublic java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> retrieveEntityPreferences(PortletWindow window)
retrieveEntityPreferences in interface PortletPreferencesProvider
public void storeEntityPreferences(java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map,
PortletWindow window)
throws PreferencesException
storeEntityPreferences in interface PortletPreferencesProviderPreferencesExceptionpublic void removeDefaults(PortletDefinition pd)
removeDefaults in interface PortletPreferencesProvider
public void removeDefaults(PortletDefinition pd,
java.lang.String preferenceName)
removeDefaults in interface PortletPreferencesProviderpublic void removeDefaults(PortletApplication app)
removeDefaults in interface PortletPreferencesProviderpublic java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> retrieveDefaultPreferences(PortletDefinition pd)
retrieveDefaultPreferences in interface PortletPreferencesProviderpublic java.util.Set<java.lang.String> getPortletWindowIds(PortletDefinition portletdefinition)
getPortletWindowIds in interface PortletPreferencesProvider
public java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> getUserPreferences(PortletDefinition portletdefinition,
java.lang.String windowId,
java.lang.String userName)
getUserPreferences in interface PortletPreferencesProvider
public java.util.Set<java.lang.String> getUserNames(PortletDefinition portletdefinition,
java.lang.String windowId)
getUserNames in interface PortletPreferencesProvider
public void storePortletPreference(PortletDefinition portletdefinition,
java.lang.String windowId,
java.lang.String userName,
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map)
storePortletPreference in interface PortletPreferencesProvider
public void storePortletPreference(java.lang.String appName,
java.lang.String portletName,
java.lang.String windowId,
java.lang.String userName,
java.util.Map<java.lang.String,org.apache.pluto.container.PortletPreference> map)
storePortletPreference in interface PortletPreferencesProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||