|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SystemBiz
Business API for system settings and functions.
Field Summary | |
---|---|
static java.lang.String |
SETTING_KEY_SETUP_COMPLETE
The setting key for the setup complete flag. |
static java.lang.String |
SETTING_KEY_SETUP_REQUIRE_ADMIN
The setting key for the setup: require admin flag. |
static java.lang.String |
THEME_PROPERTIES_FILE_NAME
The name of the optional theme properties file. |
static java.lang.String |
THEME_PROPERTY_AUTHOR
The theme property for the author. |
static java.lang.String |
THEME_PROPERTY_AUTHOR_EMAIL
The theme property for the author's email. |
static java.lang.String |
THEME_PROPERTY_CREATED_DATE
The theme property for the created date (yyyy-mm-dd format). |
static java.lang.String |
THEME_PROPERTY_NAME
The theme property for the name. |
static java.lang.String |
THEME_XSLT_FILE_NAME
The name of the required theme XSLT file. |
Method Summary | ||
---|---|---|
void |
deleteTheme(Theme theme,
BizContext context)
Delete a Theme. |
|
void |
exportTheme(Theme theme,
java.io.OutputStream out,
java.io.File baseDirectory,
BizContext context)
Export a Theme, and associated resources. |
|
java.util.List<Locale> |
getAvailableLocales()
Get a list of available locales. |
|
java.util.List<Theme> |
getAvailableThemes()
Get a list of available themes. |
|
java.util.List<TimeZone> |
getAvailableTimeZones()
Get a list of available time zones. |
|
java.io.File |
getCacheDirectory()
Get a directory for caching items in. |
|
java.io.File |
getCollectionRootDirectory()
Get the root directory to store all collections within. |
|
Theme |
getDefaultTheme()
Get a default theme. |
|
TimeZone |
getDefaultTimeZone()
Get the system's default time zone. |
|
|
getPluginsOfType(java.lang.Class<T> pluginType)
Get all registered plugins of a specific type. |
|
java.io.File |
getResourceDirectory()
Get a directory for storing user resources in. |
|
java.lang.String |
getSharedAlbumUrl(Album album,
BizContext context)
Get the Matte URL for a shared album. |
|
Theme |
getThemeById(java.lang.Long themeId)
Get a Theme by its ID. |
|
org.springframework.core.io.Resource |
getThemeResource(Theme theme,
java.lang.String path,
BizContext context)
Get a Theme resource. |
|
TimeZone |
getTimeZoneForCode(java.lang.String code)
Get a specific TimeZone instance based on its code. |
|
boolean |
isApplicationConfigured()
Return the status of the overall application configuration. |
|
java.lang.Long |
storeTheme(AddThemeCommand themeCommand,
BizContext context)
Store a Theme, and associated resources, in the back end. |
|
java.lang.Long |
storeTheme(Theme theme,
BizContext context)
Store a Theme in the back end. |
Field Detail |
---|
static final java.lang.String THEME_XSLT_FILE_NAME
static final java.lang.String THEME_PROPERTIES_FILE_NAME
static final java.lang.String THEME_PROPERTY_NAME
static final java.lang.String THEME_PROPERTY_AUTHOR
static final java.lang.String THEME_PROPERTY_AUTHOR_EMAIL
static final java.lang.String THEME_PROPERTY_CREATED_DATE
static final java.lang.String SETTING_KEY_SETUP_COMPLETE
static final java.lang.String SETTING_KEY_SETUP_REQUIRE_ADMIN
Method Detail |
---|
java.util.List<TimeZone> getAvailableTimeZones()
java.util.List<Locale> getAvailableLocales()
TimeZone getTimeZoneForCode(java.lang.String code)
code
- the time zone code
TimeZone getDefaultTimeZone()
java.io.File getCollectionRootDirectory()
java.io.File getCacheDirectory()
java.io.File getResourceDirectory()
Theme getDefaultTheme()
Theme getThemeById(java.lang.Long themeId)
themeId
- the Theme ID
java.util.List<Theme> getAvailableThemes()
java.lang.Long storeTheme(Theme theme, BizContext context)
This method will accept new Theme instances as well as updates to existing themes.
theme
- the theme to storecontext
- the current context
org.springframework.core.io.Resource getThemeResource(Theme theme, java.lang.String path, BizContext context)
theme
- the themepath
- the path of the resource to getcontext
- the current context
java.lang.Long storeTheme(AddThemeCommand themeCommand, BizContext context)
themeCommand
- the theme command datacontext
- the current context
void exportTheme(Theme theme, java.io.OutputStream out, java.io.File baseDirectory, BizContext context)
Calling this method will write a Zip archive of the theme and all it's associated resources to the supplied OutputStream. This method shall not close the OutputStream when finished.
theme
- the theme to exportout
- the stream to output the theme tobaseDirectory
- the base directory the Theme is stored in,
or if null use the default external theme directorycontext
- the currenent contextvoid deleteTheme(Theme theme, BizContext context)
Note that internal themes cannot be deleted.
theme
- the Theme to deletecontext
- the current contextjava.lang.String getSharedAlbumUrl(Album album, BizContext context)
album
- the album to get the URL forcontext
- the current context
boolean isApplicationConfigured()
This configuration setting means the application has been started at least once and subsequently configured for the first time, and properly set up. Some other services may not want to start up if the application is not configured.
<T extends Plugin> java.util.List<T> getPluginsOfType(java.lang.Class<T> pluginType)
T
- the plugin class to getpluginType
- the type of plugins to get
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |