|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.StylesheetUserPreferences
org.jasig.portal.ThemeStylesheetUserPreferences
org.jasig.portal.StructureStylesheetUserPreferences
org.jasig.portal.layout.dlm.DistributedUserPreferences
public class DistributedUserPreferences
Distributed layout Extension to user preferences object for stylesheets performing structure or theme transformation. This extension adds support for user preferences set by layout owneres in incorporated elements.
| Field Summary | |
|---|---|
protected Hashtable |
incorporatedChannelAttributeValues
|
protected Hashtable |
incorporatedFolderAttributeValues
|
static String |
RCS_ID
|
| Fields inherited from class org.jasig.portal.StructureStylesheetUserPreferences |
|---|
defaultFolderAttributeValues, folderAttributeNumbers, folderAttributeValues |
| Fields inherited from class org.jasig.portal.ThemeStylesheetUserPreferences |
|---|
channelAttributeNumbers, channelAttributeValues, defaultChannelAttributeValues |
| Constructor Summary | |
|---|---|
DistributedUserPreferences()
Creates a new DistributedUserPreferences object with empty tables. |
|
DistributedUserPreferences(DistributedUserPreferences dup)
Creates a new DistributedUserPreferences object populated with all values from the passed-in instance. |
|
DistributedUserPreferences(StructureStylesheetUserPreferences ssup)
Creates a DistributedUserPreferences with values for super classes derived from those of the passed in StructureStylesheetUserPreferences object. |
|
DistributedUserPreferences(ThemeStylesheetUserPreferences tsup)
If instantiated with a theme stylesheet preferences then this object should only be used in place of a theme stylesheet user prefs since structure stylesheet oriented variables will not be initialized. |
|
| Method Summary | |
|---|---|
void |
changeChannelId(String oldChannelId,
String newChannelId)
Used when loading fragment layouts and converting them to their "fragmentized" version suitable for incorporating into other user's layouts. |
void |
changeFolderId(String oldFolderId,
String newFolderId)
Used when loading fragment layouts and converting them to their "fragmentized" version suitable for incorporating into other user's layouts. |
String |
getChannelAttributeValue(String channelSubscribeId,
String attributeName)
|
Enumeration |
getChannels()
|
String |
getDefaultChannelAttributeValue(String channelSubscribeId,
String attributeName)
Returns the default value for the specified attribute for the specified channel. |
String |
getDefaultFolderAttributeValue(String folderId,
String attributeName)
Returns the default value for the specified attribute for the specified folder. |
String |
getFolderAttributeValue(String folderId,
String attributeName)
|
Enumeration |
getFolders()
|
boolean |
hasChannel(String chanId)
|
boolean |
hasFolder(String folderId)
|
Object |
newInstance()
Provides a copy of this object with all fields instantiated to reflect the values of this object. |
void |
removeChannel(String channelSubscribeId)
|
void |
removeDefinedChannelAttributeValue(String channelID,
String attributeName)
|
void |
removeDefinedFolderAttributeValue(String folderID,
String attributeName)
|
void |
removeFolder(String folderID)
|
void |
setIncorporatedChannelAttributeValue(String channelSubscribeId,
String attributeName,
String attributeValue)
Sets the value of an attribute to the value that it had on the channel in the fragment from which it was incorporated. |
void |
setIncorporatedFolderAttributeValue(String folderSubscribeId,
String attributeName,
String attributeValue)
Sets the value of an attribute to the value that it had on the folder in the fragment from which it was incorporated. |
| Methods inherited from class org.jasig.portal.StructureStylesheetUserPreferences |
|---|
addFolder, addFolderAttribute, getCacheKey, getDefinedFolderAttributeValue, getFolderAttributeNames, removeFolderAttribute, setFolderAttributeDefaultValue, setFolderAttributeValue |
| Methods inherited from class org.jasig.portal.ThemeStylesheetUserPreferences |
|---|
addChannel, addChannelAttribute, getChannelAttributeNames, getDefinedChannelAttributeValue, removeChannelAttribute, setChannelAttributeDefaultValue, setChannelAttributeValue |
| Methods inherited from class org.jasig.portal.StylesheetUserPreferences |
|---|
deleteParameter, getParameterValue, getParameterValues, getStylesheetId, putParameterValue, setParameterValues, setStylesheetId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RCS_ID
protected Hashtable incorporatedChannelAttributeValues
protected Hashtable incorporatedFolderAttributeValues
| Constructor Detail |
|---|
public DistributedUserPreferences()
public DistributedUserPreferences(StructureStylesheetUserPreferences ssup)
ssup - public DistributedUserPreferences(ThemeStylesheetUserPreferences tsup)
public DistributedUserPreferences(DistributedUserPreferences dup)
dup - | Method Detail |
|---|
public Object newInstance()
newInstance in class StructureStylesheetUserPreferencespublic Enumeration getFolders()
getFolders in class StructureStylesheetUserPreferencespublic boolean hasFolder(String folderId)
hasFolder in class StructureStylesheetUserPreferences
public String getDefaultFolderAttributeValue(String folderId,
String attributeName)
public String getFolderAttributeValue(String folderId,
String attributeName)
getFolderAttributeValue in class StructureStylesheetUserPreferences
public void setIncorporatedFolderAttributeValue(String folderSubscribeId,
String attributeName,
String attributeValue)
folderSubscribeId - attributeName - attributeValue - public void removeFolder(String folderID)
removeFolder in class StructureStylesheetUserPreferencespublic void removeChannel(String channelSubscribeId)
removeChannel in class ThemeStylesheetUserPreferences
public void removeDefinedFolderAttributeValue(String folderID,
String attributeName)
public void changeFolderId(String oldFolderId,
String newFolderId)
oldFolderId - newFolderId - public Enumeration getChannels()
getChannels in class ThemeStylesheetUserPreferencespublic boolean hasChannel(String chanId)
hasChannel in class ThemeStylesheetUserPreferences
public String getDefaultChannelAttributeValue(String channelSubscribeId,
String attributeName)
public String getChannelAttributeValue(String channelSubscribeId,
String attributeName)
getChannelAttributeValue in class ThemeStylesheetUserPreferences
public void setIncorporatedChannelAttributeValue(String channelSubscribeId,
String attributeName,
String attributeValue)
channelSubscribeId - attributeName - attributeValue -
public void removeDefinedChannelAttributeValue(String channelID,
String attributeName)
public void changeChannelId(String oldChannelId,
String newChannelId)
oldChannelId - newChannelId -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||