| java.lang.Object org.jasig.portal.layout.simple.RDBMUserLayoutStore org.jasig.portal.layout.alm.AggregatedUserLayoutStore
AggregatedUserLayoutStore | public class AggregatedUserLayoutStore extends RDBMUserLayoutStore implements IAggregatedUserLayoutStore(Code) | | AggregatedUserLayoutStore implementation using the relational database with SQL 92.
Company: Instructional Media & Magic
Prior to uPortal 2.5, this class existed in the package org.jasig.portal.layout.
It was moved to its present package to reflect that it is part of Aggregated
Layouts.
author: Michael Ivanov version: $Revision: 42045 $ |
Inner Class :public class UserAttributes | |
Method Summary | |
public synchronized ALNode | addUserLayoutNode(IPerson person, UserProfile profile, ALNode node) Add the new user layout node. | public void | deleteFragment(IPerson person, String fragmentId) | public void | fillChannelDescription(IALChannelDescription channelDesc) | public IAggregatedLayout | getAggregatedLayout(IPerson person, UserProfile profile) Returns the user layout internal representation. | public ILayoutFragment | getFragment(IPerson person, String fragmentId) | protected ILayoutFragment | getFragment(String fragmentIdStr) | public Map | getFragments(IPerson person) | public Set | getIncorrectPushedFragmentNodes(IPerson person, UserProfile profile) Returns the list of pushed fragment node IDs that must be removed from the user layout. | public String | getNextFragmentId() Returns the next fragment ID. | public String | getNextNodeId(IPerson person) | public int[] | getPriorityRange(String groupKey) | public Collection | getPublishGroups(IPerson person, String fragmentId) | protected String | getStructId(int structId, int chanId) | public StructureStylesheetUserPreferences | getStructureStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId) | public Collection | getSubscribableFragments(IPerson person) | public ThemeStylesheetUserPreferences | getThemeStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId) | public synchronized void | setAggregatedLayout(IPerson person, UserProfile profile, IAggregatedLayout layoutImpl) | public void | setFragment(IPerson person, ILayoutFragment fragment, UserPreferences userPrefs) | public void | setPublishGroups(IGroupMember[] groups, IPerson person, String fragmentId) | public void | setStructureStylesheetUserPreferences(IPerson person, int profileId, StructureStylesheetUserPreferences ssup) | public void | setThemeStylesheetUserPreferences(IPerson person, int profileId, ThemeStylesheetUserPreferences tsup) |
CHANNEL_ADD_SQL | final protected static String CHANNEL_ADD_SQL(Code) | | |
CHANNEL_PARAM_ADD_SQL | final protected static String CHANNEL_PARAM_ADD_SQL(Code) | | |
CHANNEL_PARAM_UPDATE_SQL | final protected static String CHANNEL_PARAM_UPDATE_SQL(Code) | | |
CHANNEL_UPDATE_SQL | final protected static String CHANNEL_UPDATE_SQL(Code) | | |
FRAGMENT_ADD_SQL | final protected static String FRAGMENT_ADD_SQL(Code) | | |
FRAGMENT_RESTRICTION_ADD_SQL | final protected static String FRAGMENT_RESTRICTION_ADD_SQL(Code) | | |
FRAGMENT_RESTRICTION_UPDATE_SQL | final protected static String FRAGMENT_RESTRICTION_UPDATE_SQL(Code) | | |
FRAGMENT_UPDATE_SQL | final protected static String FRAGMENT_UPDATE_SQL(Code) | | |
LAYOUT_ADD_SQL | final protected static String LAYOUT_ADD_SQL(Code) | | |
LAYOUT_RESTRICTION_ADD_SQL | final protected static String LAYOUT_RESTRICTION_ADD_SQL(Code) | | |
LAYOUT_RESTRICTION_UPDATE_SQL | final protected static String LAYOUT_RESTRICTION_UPDATE_SQL(Code) | | |
LAYOUT_UPDATE_SQL | final protected static String LAYOUT_UPDATE_SQL(Code) | | |
AggregatedUserLayoutStore | public AggregatedUserLayoutStore() throws Exception(Code) | | |
addUserLayoutNode | public synchronized ALNode addUserLayoutNode(IPerson person, UserProfile profile, ALNode node) throws PortalException(Code) | | Add the new user layout node.
Parameters: person - an IPerson object specifying the user Parameters: profile - a user profile for which the layout is being stored Parameters: node - a ALNode object specifying the node a ALNode object specifying the node with the generated node ID exception: PortalException - if an error occurs |
deleteFragment | public void deleteFragment(IPerson person, String fragmentId) throws PortalException(Code) | | Deletes the layout fragment
Parameters: person - an IPerson object specifying the user Parameters: fragmentId - a fragment ID exception: PortalException - if an error occurs |
getAggregatedLayout | public IAggregatedLayout getAggregatedLayout(IPerson person, UserProfile profile) throws PortalException(Code) | | Returns the user layout internal representation.
Parameters: person - an IPerson object specifying the user Parameters: profile - a user profile for which the layout is being stored a IAggregatedLayout object containing the internal representation of the user layout exception: PortalException - if an error occurs |
getFragment | public ILayoutFragment getFragment(IPerson person, String fragmentId) throws PortalException(Code) | | Returns the layout fragment as a user layout
Parameters: person - an IPerson object specifying the user Parameters: fragmentId - a fragment ID a IAggregatedLayout object containing the internal representation of the user layout exception: PortalException - if an error occurs |
getFragment | protected ILayoutFragment getFragment(String fragmentIdStr) throws PortalException(Code) | | Returns the layout fragment as a user layout
Parameters: fragmentIdStr - a fragment ID a IAggregatedLayout object containing the internal representation of the user layout exception: PortalException - if an error occurs |
getFragments | public Map getFragments(IPerson person) throws PortalException(Code) | | Gets the fragment IDs/fragment descriptions for a given user
Parameters: person - an IPerson object specifying the user a Map object containing the IDs of the fragments the user owns exception: PortalException - if an error occurs |
getIncorrectPushedFragmentNodes | public Set getIncorrectPushedFragmentNodes(IPerson person, UserProfile profile) throws PortalException(Code) | | Returns the list of pushed fragment node IDs that must be removed from the user layout.
Parameters: person - an IPerson object specifying the user Parameters: profile - a user profile for which the layout is being stored a Set list containing the fragment node IDs to be deleted from the user layout exception: PortalException - if an error occurs |
getPriorityRange | public int[] getPriorityRange(String groupKey) throws PortalException(Code) | | Returns the priority range defined for the given user group
Parameters: groupKey - a String group key a int array containing the min and max priority values exception: PortalException - if an error occurs |
getPublishGroups | public Collection getPublishGroups(IPerson person, String fragmentId) throws PortalException(Code) | | Returns the user group keys which the fragment is published to
Parameters: person - an IPerson object specifying the user Parameters: fragmentId - a String value a Collection object containing the group keys exception: PortalException - if an error occurs |
getStructId | protected String getStructId(int structId, int chanId)(Code) | | Return the Structure ID tag (Overloaded)
Parameters: structId - Parameters: chanId - ID tag |
getSubscribableFragments | public Collection getSubscribableFragments(IPerson person) throws PortalException(Code) | | Returns the list of Ids of the fragments that the user can subscribe to
Parameters: person - an IPerson object specifying the user Collection a set of the fragment IDs exception: PortalException - if an error occurs |
setAggregatedLayout | public synchronized void setAggregatedLayout(IPerson person, UserProfile profile, IAggregatedLayout layoutImpl) throws PortalException(Code) | | Parameters: person - an IPerson object specifying the user Parameters: profile - a user profile for which the layout is being stored Parameters: layoutImpl - a IAggregatedLayout containing an aggregated user layout exception: PortalException - if an error occurs |
setPublishGroups | public void setPublishGroups(IGroupMember[] groups, IPerson person, String fragmentId) throws PortalException(Code) | | Persists the user groups which the fragment is published to
Parameters: groups - an array of IGroupMember objects Parameters: person - an IPerson object specifying the user Parameters: fragmentId - a String value exception: PortalException - if an error occurs |
Methods inherited from org.jasig.portal.layout.simple.RDBMUserLayoutStore | public Integer addStructureStylesheetDescription(StructureStylesheetDescription ssd) throws Exception(Code)(Java Doc) public Integer addStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI)(Code)(Java Doc) public UserProfile addSystemProfile(UserProfile profile) throws Exception(Code)(Java Doc) public Integer addThemeStylesheetDescription(ThemeStylesheetDescription tsd) throws Exception(Code)(Java Doc) public Integer addThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI)(Code)(Java Doc) public UserProfile addUserProfile(IPerson person, UserProfile profile) throws Exception(Code)(Java Doc) protected static boolean channelApproved(java.util.Date approvedDate)(Code)(Java Doc) final protected void createLayout(HashMap layoutStructure, Document doc, Element root, int structId) throws java.sql.SQLException, Exception(Code)(Java Doc) public void deleteSystemProfile(int profileId) throws Exception(Code)(Java Doc) public void deleteUserProfile(IPerson person, int profileId) throws Exception(Code)(Java Doc) final public static void dumpDoc(Node node, String indent)(Code)(Java Doc) public String generateNewChannelSubscribeId(IPerson person) throws Exception(Code)(Java Doc) public String generateNewFolderId(IPerson person) throws Exception(Code)(Java Doc) protected int getLayoutID(int userId, int profileId) throws SQLException(Code)(Java Doc) public Hashtable getMimeTypeList() throws Exception(Code)(Java Doc) protected synchronized String getNextStructId(IPerson person, String prefix) throws Exception(Code)(Java Doc) protected String getStructId(int structId, int chanId)(Code)(Java Doc) protected Element getStructure(Document doc, LayoutStructure ls) throws Exception(Code)(Java Doc) public StructureStylesheetDescription getStructureStylesheetDescription(int stylesheetId) throws Exception(Code)(Java Doc) public Integer getStructureStylesheetId(String ssName) throws Exception(Code)(Java Doc) public Hashtable getStructureStylesheetList(String mimeType) throws Exception(Code)(Java Doc) public Hashtable getStructureStylesheetList() throws Exception(Code)(Java Doc) public StructureStylesheetUserPreferences getStructureStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId) throws Exception(Code)(Java Doc) public UserProfile getSystemProfile(String userAgent) throws Exception(Code)(Java Doc) public UserProfile getSystemProfileById(int profileId) throws Exception(Code)(Java Doc) public Hashtable getSystemProfileList() throws Exception(Code)(Java Doc) public ThemeStylesheetDescription getThemeStylesheetDescription(int stylesheetId) throws Exception(Code)(Java Doc) public Integer getThemeStylesheetId(String tsName) throws Exception(Code)(Java Doc) public Hashtable getThemeStylesheetList(int structureStylesheetId) throws Exception(Code)(Java Doc) public Hashtable getThemeStylesheetList() throws Exception(Code)(Java Doc) public ThemeStylesheetUserPreferences getThemeStylesheetUserPreferences(IPerson person, int profileId, int stylesheetId) throws Exception(Code)(Java Doc) public Document getUserLayout(IPerson person, UserProfile profile) throws Exception(Code)(Java Doc) public UserPreferences getUserPreferences(IPerson person, int profileId) throws Exception(Code)(Java Doc) public UserPreferences getUserPreferences(IPerson person, UserProfile profile) throws Exception(Code)(Java Doc) public UserProfile getUserProfile(IPerson person, String userAgent) throws Exception(Code)(Java Doc) public UserProfile getUserProfileById(IPerson person, int profileId) throws Exception(Code)(Java Doc) public Hashtable getUserProfileList(IPerson person) throws Exception(Code)(Java Doc) public void putUserPreferences(IPerson person, UserPreferences up) throws Exception(Code)(Java Doc) public void removeStructureStylesheetDescription(int stylesheetId) throws Exception(Code)(Java Doc) public void removeThemeStylesheetDescription(int stylesheetId) throws Exception(Code)(Java Doc) protected int saveStructure(Node node, PreparedStatement structStmt, PreparedStatement parmStmt) throws Exception(Code)(Java Doc) public void setStructureStylesheetUserPreferences(IPerson person, int profileId, StructureStylesheetUserPreferences ssup) throws Exception(Code)(Java Doc) public void setSystemBrowserMapping(String userAgent, int profileId) throws Exception(Code)(Java Doc) public void setThemeStylesheetUserPreferences(IPerson person, int profileId, ThemeStylesheetUserPreferences tsup) throws Exception(Code)(Java Doc) public void setUserBrowserMapping(IPerson person, String userAgent, int profileId) throws Exception(Code)(Java Doc) public void setUserLayout(IPerson person, UserProfile profile, Document layoutXML, boolean channelsAdded) throws Exception(Code)(Java Doc) public boolean updateStructureStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId)(Code)(Java Doc) public void updateStructureStylesheetDescription(StructureStylesheetDescription ssd) throws Exception(Code)(Java Doc) public void updateSystemProfile(UserProfile profile) throws Exception(Code)(Java Doc) public boolean updateThemeStylesheetDescription(String stylesheetDescriptionURI, String stylesheetURI, int stylesheetId)(Code)(Java Doc) public void updateThemeStylesheetDescription(ThemeStylesheetDescription tsd) throws Exception(Code)(Java Doc) public void updateUserProfile(IPerson person, UserProfile profile) throws Exception(Code)(Java Doc) final protected static boolean xmlBool(String value)(Code)(Java Doc)
|
|
|