|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.RDBMPortletPreferencesStore
public class RDBMPortletPreferencesStore
An implementation of IPortletPreferencesStore which uses a RDBM data source to persist the data.
| Field Summary | |
|---|---|
private static org.apache.commons.logging.Log |
log
|
private static java.lang.String |
PREFIX
|
private static java.lang.String |
READ_ONLY_FALSE
|
private static java.lang.String |
READ_ONLY_TRUE
|
private static java.lang.String |
UP_PORTLET_PREFERENCE_VALUE
|
| Constructor Summary | |
|---|---|
RDBMPortletPreferencesStore()
|
|
| Method Summary | |
|---|---|
void |
deletePortletPreferencesByInstance(int userId,
int layoutId,
java.lang.String chanDescId)
Removes portlet preferences for the specific user and instance of a portlet. |
void |
deletePortletPreferencesByUser(int userId)
Removes all portlet preferences stored for the specified user. |
org.apache.pluto.om.common.PreferenceSet |
getDefinitionPreferences(int chanId)
Gets the definition level preferences for the specified channel into an implementation of the PreferenceSet interface. |
org.apache.pluto.om.common.PreferenceSet |
getEntityPreferences(int userId,
int layoutId,
java.lang.String chanDescId)
Gets the enitity level preferences for the specified channel into an implementation of the PreferenceSet interface. |
void |
setDefinitionPreferences(int chanId,
org.apache.pluto.om.common.PreferenceSet prefs)
Stores the definition level preferences described by the PreferenceSet interface. |
void |
setEntityPreferences(int userId,
int layoutId,
java.lang.String chanDescId,
org.apache.pluto.om.common.PreferenceSet prefs)
Stores the entity level preferences described by the PreferenceSet interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.commons.logging.Log log
private static final java.lang.String READ_ONLY_TRUE
private static final java.lang.String READ_ONLY_FALSE
private static final java.lang.String UP_PORTLET_PREFERENCE_VALUE
private static final java.lang.String PREFIX
| Constructor Detail |
|---|
public RDBMPortletPreferencesStore()
| Method Detail |
|---|
public void setDefinitionPreferences(int chanId,
org.apache.pluto.om.common.PreferenceSet prefs)
throws java.lang.Exception
IPortletPreferencesStore
setDefinitionPreferences in interface IPortletPreferencesStorechanId - The id of the channel to store the preferences for.prefs - The PreferenceSet which describes the data to store.
java.lang.Exception - If any error occurs while storing the data.IPortletPreferencesStore.setDefinitionPreferences(int, org.apache.pluto.om.common.PreferenceSet)
public org.apache.pluto.om.common.PreferenceSet getDefinitionPreferences(int chanId)
throws java.lang.Exception
IPortletPreferencesStore
getDefinitionPreferences in interface IPortletPreferencesStorechanId - The id of the channel to get the preferences for.
java.lang.Exception - If any error occurs while getting the data.IPortletPreferencesStore.getDefinitionPreferences(int)
public void setEntityPreferences(int userId,
int layoutId,
java.lang.String chanDescId,
org.apache.pluto.om.common.PreferenceSet prefs)
throws java.lang.Exception
IPortletPreferencesStore
setEntityPreferences in interface IPortletPreferencesStoreuserId - The id of the user to store the preferences for.layoutId - The layout fragment id to store the preferences for.chanDescId - The structure id to store the preferences for.prefs - The PreferenceSet which describes the data to store.
java.lang.Exception - If any error occurs while storing the data.IPortletPreferencesStore.setEntityPreferences(int, int, String, org.apache.pluto.om.common.PreferenceSet)
public org.apache.pluto.om.common.PreferenceSet getEntityPreferences(int userId,
int layoutId,
java.lang.String chanDescId)
throws java.lang.Exception
IPortletPreferencesStore
getEntityPreferences in interface IPortletPreferencesStoreuserId - The id of the user to get the preferences for.layoutId - The layout fragment id to get the preferences for.chanDescId - The structure id to get the preferences for.
java.lang.Exception - If any error occurs while getting the data.IPortletPreferencesStore.getEntityPreferences(int, int, java.lang.String)
public void deletePortletPreferencesByUser(int userId)
throws java.lang.Exception
IPortletPreferencesStore
deletePortletPreferencesByUser in interface IPortletPreferencesStoreuserId - The id of the user to remove the preferences for.
java.lang.Exception - If any error occurs while removing the data.IPortletPreferencesStore.deletePortletPreferencesByUser(int)
public void deletePortletPreferencesByInstance(int userId,
int layoutId,
java.lang.String chanDescId)
throws java.lang.Exception
IPortletPreferencesStore
deletePortletPreferencesByInstance in interface IPortletPreferencesStoreuserId - The id of the user to remove the preferences for.layoutId - The layout fragment id to remove the preferences for.chanDescId - The structure id to remove the preferences for.
java.lang.Exception - If any error occurs while removing the data.IPortletPreferencesStore.deletePortletPreferencesByInstance(int, int, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||