org.jasig.portal
Class ThemeStylesheetUserPreferences

java.lang.Object
  extended by org.jasig.portal.StylesheetUserPreferences
      extended by org.jasig.portal.ThemeStylesheetUserPreferences
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
StructureStylesheetUserPreferences

public class ThemeStylesheetUserPreferences
extends StylesheetUserPreferences

User preferences for stylesheets performing theme transformation

Version:
$Revision: 19776 $
Author:
Peter Kharchenko pkharchenko@interactivebusiness.coma
See Also:
Serialized Form

Field Summary
protected  Hashtable channelAttributeNumbers
           
protected  Hashtable channelAttributeValues
           
protected  ArrayList defaultChannelAttributeValues
           
 
Constructor Summary
ThemeStylesheetUserPreferences()
           
ThemeStylesheetUserPreferences(ThemeStylesheetUserPreferences ssup)
           
 
Method Summary
 void addChannel(String channelSubscribeId)
           
 void addChannelAttribute(String attributeName, String defaultValue)
           
 String getCacheKey()
           
 Enumeration getChannelAttributeNames()
           
 String getChannelAttributeValue(String channelSubscribeId, String attributeName)
           
 Enumeration getChannels()
           
 String getDefinedChannelAttributeValue(String channelSubscribeId, String attributeName)
          Returns channel attribute value only if it has been assigned specifically.
 boolean hasChannel(String channelSubscribeId)
           
 Object newInstance()
          Provides a copy of this object with all fields instantiated to reflect the values of this object.
 void removeChannel(String channelSubscribeId)
           
 void removeChannelAttribute(String attributeName)
           
 void setChannelAttributeDefaultValue(String attributeName, String defaultValue)
           
 void setChannelAttributeValue(String channelSubscribeId, String attributeName, String attributeValue)
           
 
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

channelAttributeNumbers

protected Hashtable channelAttributeNumbers

channelAttributeValues

protected Hashtable channelAttributeValues

defaultChannelAttributeValues

protected ArrayList defaultChannelAttributeValues
Constructor Detail

ThemeStylesheetUserPreferences

public ThemeStylesheetUserPreferences()

ThemeStylesheetUserPreferences

public ThemeStylesheetUserPreferences(ThemeStylesheetUserPreferences ssup)
Method Detail

newInstance

public Object newInstance()
Provides a copy of this object with all fields instantiated to reflect the values of this object. This allows subclasses to override to add correct copying behavior for their added fields.

Overrides:
newInstance in class StylesheetUserPreferences
Returns:
a copy of this object

getChannelAttributeValue

public String getChannelAttributeValue(String channelSubscribeId,
                                       String attributeName)

getDefinedChannelAttributeValue

public String getDefinedChannelAttributeValue(String channelSubscribeId,
                                              String attributeName)
Returns channel attribute value only if it has been assigned specifically.

Parameters:
channelSubscribeId - channel id
attributeName - name of the attribute
Returns:
attribute value or null if the value is determined by the attribute default

setChannelAttributeValue

public void setChannelAttributeValue(String channelSubscribeId,
                                     String attributeName,
                                     String attributeValue)

addChannelAttribute

public void addChannelAttribute(String attributeName,
                                String defaultValue)

setChannelAttributeDefaultValue

public void setChannelAttributeDefaultValue(String attributeName,
                                            String defaultValue)

removeChannelAttribute

public void removeChannelAttribute(String attributeName)

getChannelAttributeNames

public Enumeration getChannelAttributeNames()

addChannel

public void addChannel(String channelSubscribeId)

removeChannel

public void removeChannel(String channelSubscribeId)

getChannels

public Enumeration getChannels()

hasChannel

public boolean hasChannel(String channelSubscribeId)

getCacheKey

public String getCacheKey()
Overrides:
getCacheKey in class StylesheetUserPreferences


Copyright © 2010 Jasig. All Rights Reserved.