|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.dataengine.theme.ThemeManager
Manages instances of Themes. Provides data access methods and data generation methods.
Field Summary | |
static java.lang.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 |
Constructor Summary | |
protected |
ThemeManager()
|
Method Summary | |
Theme |
createTheme(java.lang.String metaDataAlias,
java.util.Map values)
Creates a Theme using the given values. |
void |
createThemeTable(java.lang.String systemAlias)
Creates a Theme table in the givin database. |
protected void |
createThemeTable(java.lang.String systemAlias,
java.lang.String libraryName,
java.lang.String tableName)
Creates a Theme table in the givin database |
Theme |
getDefaultTheme(java.lang.String metaDataAlias,
java.util.List columnNames)
Gets the Default Theme. |
java.lang.String |
getLibraryName()
Gets the library containing the application table |
Theme |
getNonCachedTheme(java.lang.String metaDataAlias,
int id,
java.util.List columnNames)
Gets a Theme by ID out of the DB (the cache is not checked). |
Theme |
getTheme(Application application,
java.util.List columnNames)
Gets a Theme associated with the given Application. |
Theme |
getTheme(java.lang.String metaDataAlias,
int id,
java.util.List columnNames)
Gets a Theme by ID. |
protected Theme |
getTheme(java.lang.String metaDataAlias,
java.lang.String libraryName,
java.lang.String tableName,
int id,
java.util.List columnNames,
boolean checkCache)
Gets a theme by ID. |
RowCollection |
getThemes(java.lang.String metaDataAlias,
int ownerId,
java.util.List columnNames)
Gets a RowCollection of all Theme objects available to the specified owner. |
RowCollection |
getThemes(java.lang.String metaDataAlias,
java.util.List columnNames)
Gets a RowCollection of all Theme objects available to all owners. |
protected RowCollection |
getThemes(java.lang.String metaDataAlias,
java.lang.String tableName,
int ownerId,
java.util.List columnNames)
Gets a RowCollection of all Theme objects available to all owners. |
protected RowCollection |
getThemes(java.lang.String metaDataAlias,
java.lang.String tableName,
java.util.List columnNames)
Gets a RowCollection of all Theme objects available to all owners. |
Table |
getThemeTable(java.lang.String metaDataAlias)
Gets the Theme Table Object. |
java.lang.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(java.lang.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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_THEME_TABLE_NAME
Constructor Detail |
protected ThemeManager()
Method Detail |
public Theme createTheme(java.lang.String metaDataAlias, java.util.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(java.lang.String systemAlias) throws CMException
systemAlias
- The alias of the system to create the Theme table in.
CMException
protected void createThemeTable(java.lang.String systemAlias, java.lang.String libraryName, java.lang.String tableName) throws CMException
systemAlias
- Alias of the system containing the table of themeslibraryName
- Name of the library containing the table of themestableName
- Name of the table containing the themes information
CMException
public Theme getDefaultTheme(java.lang.String metaDataAlias, java.util.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 java.lang.String getLibraryName()
public Theme getNonCachedTheme(java.lang.String metaDataAlias, int id, java.util.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(java.lang.String metaDataAlias, int id, java.util.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
protected Theme getTheme(java.lang.String metaDataAlias, java.lang.String libraryName, java.lang.String tableName, int id, java.util.List columnNames, boolean checkCache) throws CMException
metaDataAlias
- Alias of the system containing the table of themes.libraryName
- Name of the library containing the table of themes.tableName
- Name of the table containing the theme information.id
- Id of the application to retrieve.columnNames
- Names of the columns to retrieve. If null, all columns will be retrieved.checkCache
- If the cache should be checked.
CMException
public Theme getTheme(Application application, java.util.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(java.lang.String metaDataAlias, int ownerId, java.util.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(java.lang.String metaDataAlias, java.util.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(java.lang.String metaDataAlias)
metaDataAlias
- Alias of system to get the Theme Table from.
public java.lang.String getThemeTableName()
public static void setSingleton(ThemeManager newSingleton)
newSingleton
- ThemeManager to set as singleton instancepublic void setThemeTableName(java.lang.String themeTableName)
themeTableName
- Name of table containing theme information.public static ThemeManager singleton()
protected RowCollection getThemes(java.lang.String metaDataAlias, java.lang.String tableName, int ownerId, java.util.List columnNames) throws CMException
metaDataAlias
- Alias of the system containing the table of themes.tableName
- Name of the table containing the theme informationcolumnNames
- Names of the columns to retrieve. If null, all columns will be retrieved.
CMException
protected RowCollection getThemes(java.lang.String metaDataAlias, java.lang.String tableName, java.util.List columnNames) throws CMException
metaDataAlias
- Alias of the system containing the table of themes.tableName
- Name of the table containing the theme informationcolumnNames
- Names of the columns to retrieve. If null, all columns will be retrieved.
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |