|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.ChannelListener
com.jalios.jcmsplugin.virtualdesktop.DesktopManager
public class DesktopManager
Singleton class used to manage all virtual desktop properties an such.
Field Summary | |
---|---|
static String |
DEFAULT_DESKTOP_XML_PATH_PROP
Property name of the default desktop xml path to use for Virtual Desktop |
static String |
DESKTOP_EXTRAINFO_EXPIRATIONDELAY_PROP
Property name for the expiration delay of Desktop storage in extrainfo. |
static String |
DESKTOP_ICONS_LABEL_PROP
Property name for the icons translation prefix |
static String |
DESKTOP_ICONS_PROP
Property name for the list of icons |
static String |
DESKTOP_POLICY_FILTER_CLASS_PROP
Property name of the desktop policy filter to be instanciated and used by Virtual Desktop |
static String |
DESKTOP_THEMES_LABEL_PROP
Property name for the css/theme translation prefix |
static String |
DESKTOP_THEMES_PROP
Property name for the list of css/theme |
static String |
PORTLET_RSS_VIRTUAL_ID
Default Portlet RSS virtual id. |
static String |
SERVICE_COLORS_PROP
Property name for the list of service colors |
Fields inherited from class com.jalios.jcms.ChannelListener |
---|
order, REVISION |
Fields inherited from interface com.jalios.jcms.plugin.PluginComponent |
---|
REVISION |
Fields inherited from interface com.jalios.util.JPropertiesListener |
---|
REVISION |
Fields inherited from interface com.jalios.jdring.AlarmListener |
---|
REVISION |
Constructor Summary | |
---|---|
DesktopManager()
|
Method Summary | |
---|---|
static DesktopManager |
getDesktopManager()
|
DesktopPolicyFilter |
getDesktopPolicyFilter()
Retrieve the DesktopPolicyFilter in use. |
String |
getIconCss(String iconName)
Return the css classnames to use for the specified icon. |
String |
getIconLabel(String lang,
String iconName)
Return the label to use for the specified icon, in the specified language. |
SortedSet<String> |
getIcons()
Return the icons available for the desktop. |
static org.apache.log4j.Logger |
getLogger()
|
List<String> |
getServiceColors()
Retrieve the list of css color scheme name that can be used for Services. |
String |
getThemeCss(String themeName)
Return the StyleSheet to use with the specified theme. |
String |
getThemeLabel(String lang,
String themeName)
Return the label to use for the specified theme, in the specified language. |
String |
getThemePreview(String themeName)
Return the Preview image to use with the specified theme. |
Set<String> |
getThemes()
Return the themes available for the desktop. |
void |
handleAlarm(AlarmEntry entry)
Invoked when an alarm is triggered. |
void |
handleFinalize()
Called when the channel is finalized |
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration |
void |
initAfterStoreLoad()
Called just after the store has been loaded and the channel has been initialized. |
void |
initBeforeStoreLoad()
Called just before the store has been loaded. |
boolean |
isInitialized()
Check if the Desktop Manager and its plugin have been initialized correctly. |
void |
propertiesChange(JProperties properties)
|
protected void |
reloadProperties()
Load properties used by DesktopManager. |
void |
setDesktopPolicyFilter(String policyClassName)
Instanciate the DesktopPolicyFilter to be use (reset it on null or invalid classname). |
boolean |
useDesktopPolicyFilter()
Check if a valid DesktopPolicyFilter has been defined and can be used. |
Methods inherited from class com.jalios.jcms.ChannelListener |
---|
compareTo, equals |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_DESKTOP_XML_PATH_PROP
public static final String DESKTOP_POLICY_FILTER_CLASS_PROP
public static final String DESKTOP_THEMES_PROP
public static final String DESKTOP_THEMES_LABEL_PROP
public static final String DESKTOP_ICONS_PROP
public static final String DESKTOP_ICONS_LABEL_PROP
public static final String SERVICE_COLORS_PROP
public static final String PORTLET_RSS_VIRTUAL_ID
$jcmsplugin.virtualdesktop.rss-portlet
public static final String DESKTOP_EXTRAINFO_EXPIRATIONDELAY_PROP
Constructor Detail |
---|
public DesktopManager()
Method Detail |
---|
public static DesktopManager getDesktopManager()
public static org.apache.log4j.Logger getLogger()
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
init
in class ChannelListener
plugin
- the calling plugin
PluginComponent.init(Plugin)
public boolean isInitialized()
public void initBeforeStoreLoad() throws Exception
ChannelListener
initBeforeStoreLoad
in class ChannelListener
Exception
- any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.public void initAfterStoreLoad() throws Exception
ChannelListener
initAfterStoreLoad
in class ChannelListener
Exception
- any exception you may want to throw if a problem occurs needing to interrupt JCMS startup.public void handleFinalize()
ChannelListener
handleFinalize
in class ChannelListener
public void propertiesChange(JProperties properties)
propertiesChange
in interface JPropertiesListener
properties
- the JProperties which have changedJPropertiesListener.propertiesChange(JProperties)
public void handleAlarm(AlarmEntry entry)
handleAlarm
in interface AlarmListener
entry
- the AlarmEntry which has been triggered.protected void reloadProperties()
public Set<String> getThemes()
As of current implementation, themes are find from all properties starting
with "jcmsplugins.virtualdesktop.themes."
.
{"blueberry", "raspberry"}
, never return null.public String getThemeCss(String themeName)
themeName
- a theme value as returned by getThemes()
, e.g: "blueberry"
.
"custom/blueberry.css"
*without begining slash*
or an empty String if css path could not be found.public String getThemePreview(String themeName)
themeName
- a theme value as returned by getThemes()
, e.g: "blueberry"
.
"custom/blueberry.jpg"
*without begining slash*
or an empty String if image path could not be found.public String getThemeLabel(String lang, String themeName)
lang
- the language in which to retrieve the labelthemeName
- a theme name as returned by getThemes()
, e.g: "blueberry"
.
public SortedSet<String> getIcons()
As of current implementation, icons are find from all properties starting
with "jcmsplugins.virtualdesktop.icons."
.
{"fff-bell", "fff-bell"}
, never return null.public String getIconCss(String iconName)
iconName
- an icon name as returned by getIcons()
, e.g: "fff-bell"
.
"ss_sprite ss_bell"
.public String getIconLabel(String lang, String iconName)
lang
- the language in which to retrieve the labeliconName
- an icon name as returned by getIcons()
, e.g: "fff-bell"
.
public List<String> getServiceColors()
As of current implementation, icons are find from property
"jcmsplugins.virtualdesktop.services.colors"
.
public void setDesktopPolicyFilter(String policyClassName)
policyClassName
- a fully qualified class name to be instanciantedpublic DesktopPolicyFilter getDesktopPolicyFilter()
public boolean useDesktopPolicyFilter()
getDesktopPolicyFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |