|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUserLayoutStore
| Method Summary | |
|---|---|
Integer |
addStructureStylesheetDescription(String stylesheetDescriptionURI,
String stylesheetURI)
Registers new structure stylesheet with the portal database |
UserProfile |
addSystemProfile(UserProfile profile)
add a new system profile to the database. |
Integer |
addThemeStylesheetDescription(String stylesheetDescriptionURI,
String stylesheetURI)
Registers a new theme stylesheet with the portal databases |
UserProfile |
addUserProfile(IPerson person,
UserProfile profile)
Creates a new user profile in the database. |
void |
deleteSystemProfile(int profileId)
remove system profile from the database |
void |
deleteUserProfile(IPerson person,
int profileId)
remove user profile from the database |
org.dom4j.Element |
exportLayout(IPerson person,
UserProfile profile)
Returns an Element representing the user's layout and
UserPreferences (but not portlet preferences) formatted for
export. |
String |
generateNewChannelSubscribeId(IPerson person)
Generate an instance id for a channel being added to the user layout |
String |
generateNewFolderId(IPerson person)
Generate a folder id for a folder being added to the user layout |
Hashtable |
getMimeTypeList()
Obtains a list of mime types available on the installation |
StructureStylesheetDescription |
getStructureStylesheetDescription(int stylesheetId)
Obtains a complete description of the structure stylesheet |
Hashtable |
getStructureStylesheetList()
Obtain a list of strcture stylesheet descriptions registered on the system |
Hashtable |
getStructureStylesheetList(String mimeType)
Obtain a list of all structure stylesheet registered in the portal that (given a proper theme stylesheet choice) can support a given mime type. |
StructureStylesheetUserPreferences |
getStructureStylesheetUserPreferences(IPerson person,
int profileId,
int stylesheetId)
Obtain structure stylesheet user preferences |
UserProfile |
getSystemProfile(String userAgent)
retreive a system profile associated with a given browser |
UserProfile |
getSystemProfileByFname(String profileFname)
|
UserProfile |
getSystemProfileById(int profileId)
Obtain a system profile |
Hashtable |
getSystemProfileList()
obtain a list of system profiles |
ThemeStylesheetDescription |
getThemeStylesheetDescription(int stylesheetId)
Obtains a complete description of a theme stylesheet |
Hashtable |
getThemeStylesheetList()
Obtain a list of theme stylesheet descriptions registered on the system |
Hashtable |
getThemeStylesheetList(int structureStylesheetId)
Obtains a list of theme stylesheets available for a particular structure stylesheet. |
ThemeStylesheetUserPreferences |
getThemeStylesheetUserPreferences(IPerson person,
int profileId,
int stylesheetId)
Obtain theme stylesheet user preferences |
Document |
getUserLayout(IPerson Person,
UserProfile profile)
Retrieve a user layout document. |
UserPreferences |
getUserPreferences(IPerson person,
UserProfile profile)
Retreive the entire UserPreferences object |
UserProfile |
getUserProfile(IPerson person,
String userAgent)
Obtain user profile associated with a particular browser |
UserProfile |
getUserProfileByFname(IPerson person,
String profileFname)
Obtains a user profile by profile functional name. |
UserProfile |
getUserProfileById(IPerson person,
int profileId)
Obtains a user profile by profile id. |
Hashtable<Integer,UserProfile> |
getUserProfileList(IPerson person)
retreive a list of profiles associated with a user |
void |
importLayout(org.dom4j.Element layout)
Performs the reverse of exportLayout. |
void |
putUserPreferences(IPerson person,
UserPreferences up)
save user preferences |
void |
removeStructureStylesheetDescription(int stylesheetId)
removes stylesheet description |
void |
removeThemeStylesheetDescription(int stylesheetId)
Removes theme stylesheet |
void |
setStructureStylesheetUserPreferences(IPerson person,
int profileId,
StructureStylesheetUserPreferences fsup)
Save structure stylesheet user pferences |
void |
setSystemBrowserMapping(String userAgent,
int systemProfileId)
establish system profile browser mapping |
void |
setThemeStylesheetUserPreferences(IPerson person,
int profileId,
ThemeStylesheetUserPreferences ssup)
Save theme stylesheet user preferences |
void |
setUserBrowserMapping(IPerson person,
String userAgent,
int profileId)
establish a browser - user profile mapping |
void |
setUserLayout(IPerson Person,
UserProfile profile,
Document layoutXML,
boolean channelsAdded)
Persist user layout document. |
boolean |
updateStructureStylesheetDescription(String stylesheetDescriptionURI,
String stylesheetURI,
int stylesheetId)
Updates an existing structure stylesheet description. |
void |
updateSystemProfile(UserProfile profile)
update system profile |
boolean |
updateThemeStylesheetDescription(String stylesheetDescriptionURI,
String stylesheetURI,
int stylesheetId)
Updates an existing theme stylesheet description. |
void |
updateUserProfile(IPerson person,
UserProfile profile)
update user profile |
| Method Detail |
|---|
Document getUserLayout(IPerson Person,
UserProfile profile)
throws Exception
Person - an IPerson object specifying the userprofile - a user profile
Document containing user layout (conforms to userLayout.dtd)
Exception - if an error occurs
org.dom4j.Element exportLayout(IPerson person,
UserProfile profile)
Element representing the user's layout and
UserPreferences (but not portlet preferences) formatted for
export. This element must have an element name of <layout>.
Exported documents must not reference database identifiers and
should exclude unnecessary items like channel publishing
parameters, etc. Layout store implementations are may return
null for users that don't have layout or preferences
customizations.
person - An IPerson object specifying the userprofile - A valid profile for person
Document containing user layout and
UserPreferences data
Exception - if an error occursvoid importLayout(org.dom4j.Element layout)
exportLayout. The specified element
must have an element name of <layout> and UserPreferences data.
layout - XML representing a user's layout and UserPreferences
void setUserLayout(IPerson Person,
UserProfile profile,
Document layoutXML,
boolean channelsAdded)
throws Exception
Person - an IPerson object specifying the userprofile - a user profile for which the layout is being storedlayoutXML - a Document containing user layout (conforming to userLayout.dtd)channelsAdded - a boolean flag specifying if new channels have been added to the current user layout (for performance optimization purposes)
Exception - if an error occurs
UserProfile getUserProfile(IPerson person,
String userAgent)
throws Exception
person - UseruserAgent - User-Agent header string
null if no user profiles are associated with the given user agent.
Exception
void updateUserProfile(IPerson person,
UserProfile profile)
throws Exception
person - Userprofile - profile update
Exception
void deleteUserProfile(IPerson person,
int profileId)
throws Exception
person - UserprofileId - profile id
Exception
UserProfile addUserProfile(IPerson person,
UserProfile profile)
throws Exception
person - Userprofile - profile object (profile id in this object will be
overwritten)
Exception
UserProfile getUserProfileById(IPerson person,
int profileId)
throws Exception
person - an IPerson object representing the userprofileId - profile id
Exception
UserProfile getUserProfileByFname(IPerson person,
String profileFname)
throws Exception
person - an IPerson object representing the userprofileFname - profile functional name
Exception
Hashtable<Integer,UserProfile> getUserProfileList(IPerson person)
throws Exception
person - User
Hashtable mapping user profile ids (Integer objects) to the UserProfile objects
Exception
UserProfile getSystemProfile(String userAgent)
throws Exception
userAgent - User-Agent header string
Exception
void updateSystemProfile(UserProfile profile)
throws Exception
profile - profile object
Exception
void deleteSystemProfile(int profileId)
throws Exception
profileId - profile id
Exception
UserProfile addSystemProfile(UserProfile profile)
throws Exception
profile - profile object (profile id within will be overwritten)
Exception
UserProfile getSystemProfileById(int profileId)
throws Exception
profileId - system profile id
Exception
UserProfile getSystemProfileByFname(String profileFname)
throws Exception
Exception
Hashtable getSystemProfileList()
throws Exception
Hashtable mapping system profile ids (Integer objects) to the UserProfile objects
Exception
void setUserBrowserMapping(IPerson person,
String userAgent,
int profileId)
throws Exception
person - UseruserAgent - User-Agent header stringprofileId - profile id to which given user agent will be mapped
Exception
void setSystemBrowserMapping(String userAgent,
int systemProfileId)
throws Exception
userAgent - User-Agent header stringsystemProfileId - profile id of a profile to which given
user-agent will be mapped
Exception
UserPreferences getUserPreferences(IPerson person,
UserProfile profile)
throws Exception
person - Userprofile - profile
Exception
void putUserPreferences(IPerson person,
UserPreferences up)
throws Exception
person - Userup - user preferences object
Exception
StructureStylesheetUserPreferences getStructureStylesheetUserPreferences(IPerson person,
int profileId,
int stylesheetId)
throws Exception
person - UserprofileId - profile idstylesheetId - structure stylesheet id
Exception
ThemeStylesheetUserPreferences getThemeStylesheetUserPreferences(IPerson person,
int profileId,
int stylesheetId)
throws Exception
person - UserprofileId - profile idstylesheetId - theme stylesheet id
Exception
void setStructureStylesheetUserPreferences(IPerson person,
int profileId,
StructureStylesheetUserPreferences fsup)
throws Exception
person - UserprofileId - profile idfsup - structure stylesheet user preferences
Exception
void setThemeStylesheetUserPreferences(IPerson person,
int profileId,
ThemeStylesheetUserPreferences ssup)
throws Exception
person - UserprofileId - profile idssup - structure stylesheet user preferneces
Exception
String generateNewChannelSubscribeId(IPerson person)
throws Exception
person - an IPerson value
String value
Exception - if an error occurs
String generateNewFolderId(IPerson person)
throws Exception
person - an IPerson value
String value
Exception - if an error occurs
Hashtable getStructureStylesheetList(String mimeType)
throws Exception
mimeType - mime type that should be supported
Hashtable mapping stylesheet id (Integer objects) to StructureStylesheetDescription objects
Exception
Hashtable getThemeStylesheetList(int structureStylesheetId)
throws Exception
structureStylesheetId - id of the structure stylehsset
Hashtable mapping stylesheet id (Integer objects) to ThemeStylesheetDescription objects
Exception
Hashtable getStructureStylesheetList()
throws Exception
Hashtable mapping stylesheet id (Integer objects) to StructureStylesheetDescription objects
Exception
Hashtable getThemeStylesheetList()
throws Exception
Hashtable mapping stylesheet id (Integer objects) to ThemeStylesheetDescription objects
Exception
Hashtable getMimeTypeList()
throws Exception
Exception
StructureStylesheetDescription getStructureStylesheetDescription(int stylesheetId)
throws Exception
stylesheetId - id of the structure stylesheet
Exception
ThemeStylesheetDescription getThemeStylesheetDescription(int stylesheetId)
throws Exception
stylesheetId - id of a theme stylesheet
Exception
void removeStructureStylesheetDescription(int stylesheetId)
throws Exception
stylesheetId - id of the stylesheet
Exception
void removeThemeStylesheetDescription(int stylesheetId)
throws Exception
stylesheetId - id of the stylesheet
Exception
Integer addStructureStylesheetDescription(String stylesheetDescriptionURI,
String stylesheetURI)
throws Exception
stylesheetDescriptionURI - Location of the stylesheet description XML filestylesheetURI - Location of the actual stylesshet XML file
Exception
boolean updateStructureStylesheetDescription(String stylesheetDescriptionURI,
String stylesheetURI,
int stylesheetId)
stylesheetDescriptionURI - Location of the stylesheet description XML filestylesheetURI - Location of the actual stylesshet XML filestylesheetId - the id of the existing stylesheet description
boolean updateThemeStylesheetDescription(String stylesheetDescriptionURI,
String stylesheetURI,
int stylesheetId)
throws Exception
stylesheetDescriptionURI - Location of the stylesheet description XML filestylesheetURI - Location of the actual stylesshet XML filestylesheetId - the id of the existing stylesheet description
Exception
Integer addThemeStylesheetDescription(String stylesheetDescriptionURI,
String stylesheetURI)
throws Exception
stylesheetDescriptionURI - Location of the stylesheet description
XML filestylesheetURI - Location of the actual stylesheet XML file
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||