com.ibm.portal.admin
Interface ThemeList<T extends java.lang.Object & Theme>

All Superinterfaces:
Invalidatable, InvalidatableListModel<T>, ListModel<T>, LocatorProvider<T>, SearchableListModel<T>
All Known Subinterfaces:
ThemeListController<T,M>

public interface ThemeList<T extends java.lang.Object & Theme>
extends SearchableListModel<T>, InvalidatableListModel<T>

Model interface for a list of installed portal themes. Elements of this list are objects implementing the Theme interface.

Since:
5.1.0.1

Method Summary
 Theme getDefault()
          Returns the default theme.
 Theme getTheme(ObjectID anObjectID)
          Deprecated. Use com.ibm.portal.LocatorProvider#getLocator()#findByID()
 
Methods inherited from interface com.ibm.portal.LocatorProvider
getLocator
 
Methods inherited from interface com.ibm.portal.ListModel
iterator
 
Methods inherited from interface com.ibm.portal.Invalidatable
invalidate, invalidate
 

Method Detail

getDefault

Theme getDefault()
                 throws ModelException,
                        DataException
Returns the default theme.

Returns:
the default theme, or null if there is no default theme.
Throws:
ModelException - if an error occured while accessing model information
DataException - if the default theme cannot be retrieved, due to a database error.

getTheme

Theme getTheme(ObjectID anObjectID)
               throws ModelException,
                      DataException,
                      ObjectNotFoundException
Deprecated. Use com.ibm.portal.LocatorProvider#getLocator()#findByID()

Returns the theme with the specified object ID.

Parameters:
anObjectID - the object ID of the theme to return.
Returns:
the theme for the given object ID, never null
Throws:
DataException - if a database error occurs while accessing the data backend
ModelException - if an error occured while accessing model information
ObjectNotFoundException - if no theme with the given ID exists, or the user has no permission to view this object.