|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.theme.ThemeManager
Manages instances of Themes. Provides data access methods and data generation methods.
Field Summary | |
static String |
DEFAULT_THEME_TABLE_NAME
|
Fields inherited from interface planetj.dataengine.theme.ITheme |
CSS_FILE, DEFAULT_THEME_ID, DESCRIPTION, OWNER_ID, PROPERTIES, SECURITY_ID, THEME, THEME_ID, TYPE, TYPE_DEFAULT |
Method Summary | |
Theme |
createTheme(String metaDataAlias,
Map values)
Creates a Theme using the given values. |
void |
createThemeTable(String systemAlias)
Creates a Theme table in the givin database. |
Theme |
getDefaultTheme(String metaDataAlias,
List columnNames)
Gets the Default Theme. |
String |
getLibraryName()
Gets the library containing the application table |
Theme |
getNonCachedTheme(String metaDataAlias,
int id,
List columnNames)
Gets a Theme by ID out of the DB (the cache is not checked). |
Theme |
getTheme(Application application,
List columnNames)
Gets a Theme associated with the given Application. |
Theme |
getTheme(String metaDataAlias,
int id,
List columnNames)
Gets a Theme by ID. |
RowCollection |
getThemes(String metaDataAlias,
int ownerId,
List columnNames)
Gets a RowCollection of all Theme objects available to the specified owner. |
RowCollection |
getThemes(String metaDataAlias,
List columnNames)
Gets a RowCollection of all Theme objects available to all owners. |
Table |
getThemeTable(String metaDataAlias)
Gets the Theme Table Object. |
String |
getThemeTableName()
Gets the name of the table containing theme information (the default name is THEME). |
static void |
setSingleton(ThemeManager newSingleton)
Allows a subclass of the ThemeManager to be set as the singleton instance. |
void |
setThemeTableName(String themeTableName)
Sets the name of the table containing theme information (the default name is THEME). |
static ThemeManager |
singleton()
Gets the singleton instance of the ThemeManager |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEFAULT_THEME_TABLE_NAME
Method Detail |
public Theme createTheme(String metaDataAlias, Map values) throws CMException
metaDataAlias
- Alias of the system containing the table of themesvalues
- Map of values for the newly created Theme.
CMException
public void createThemeTable(String systemAlias) throws CMException
systemAlias
- The alias of the system to create the Theme table in.
CMException
public Theme getDefaultTheme(String metaDataAlias, List columnNames) throws CMException
metaDataAlias
- Alias of the system containing the table of themes.columnNames
- Names of the columns to retrieve. If null, all columns will be retrieved.
CMException
public String getLibraryName()
public Theme getNonCachedTheme(String metaDataAlias, int id, List columnNames) throws CMException
metaDataAlias
- Alias of the system containing the table of themes.id
- Id of the theme to retrieve.columnNames
- Names of the columns to retrieve. If null, all columns will be retrieved.
CMException
public Theme getTheme(String metaDataAlias, int id, List columnNames) throws CMException
metaDataAlias
- Alias of the system containing the table of themes.id
- Id of the theme to retrieve.columnNames
- Names of the columns to retrieve. If null, all columns will be retrieved.
CMException
public Theme getTheme(Application application, List columnNames) throws CMException
application
- Application object to retrieve Theme for.columnNames
- Names of columns to retrieve. If null, all columns are retrieved.
CMException
public RowCollection getThemes(String metaDataAlias, int ownerId, List columnNames) throws CMException
metaDataAlias
- Alias of the system containing the table of themes.ownerId
- Id of owner for themes to retrieve for.columnNames
- Names of the columns to retrieve. If null, all columns will be retrieved.
CMException
public RowCollection getThemes(String metaDataAlias, List columnNames) throws CMException
metaDataAlias
- Alias of the system containing the table of themes.columnNames
- Names of the columns to retrieve. If null, all columns will be retrieved.
CMException
public Table getThemeTable(String metaDataAlias)
metaDataAlias
- Alias of system to get the Theme Table from.
public String getThemeTableName()
public static void setSingleton(ThemeManager newSingleton)
newSingleton
- ThemeManager to set as singleton instancepublic void setThemeTableName(String themeTableName)
themeTableName
- Name of table containing theme information.public static ThemeManager singleton()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |