org.alfresco.web.bean.users
Class UserPreferencesBean
java.lang.Object
org.alfresco.web.bean.users.UserPreferencesBean
- All Implemented Interfaces:
- java.io.Serializable
public class UserPreferencesBean
- extends java.lang.Object
- implements java.io.Serializable
Simple bean backing the user preferences settings.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREF_INTERFACELANGUAGE
public static final java.lang.String PREF_INTERFACELANGUAGE
- See Also:
- Constant Field Values
MSG_CONTENTALLLANGUAGES
public static final java.lang.String MSG_CONTENTALLLANGUAGES
- Remplacement message for set the filter at 'all languages'.
Must be considered as a null value.
- See Also:
- Constant Field Values
UserPreferencesBean
public UserPreferencesBean()
getLanguages
public javax.faces.model.SelectItem[] getLanguages()
- Returns:
- the list of available languages
getLanguage
public java.lang.String getLanguage()
- Returns:
- Returns the language selection for the current user session.
setLanguage
public void setLanguage(java.lang.String language)
- Parameters:
language
- The language selection to set.
getContentFilterLanguage
public java.lang.String getContentFilterLanguage()
- Returns:
- current content filter language, or null if all languages was selected
setContentFilterLanguage
public void setContentFilterLanguage(java.lang.String contentFilterLanguage)
- Parameters:
languageStr
- A valid locale string or UserPreferencesBean.MSG_CONTENTALLLANGUAGES
getContentFilterLanguages
public javax.faces.model.SelectItem[] getContentFilterLanguages()
- Returns:
- list of items for the content filtering language selection include the label 'all langaguages'
getContentFilterLanguages
public javax.faces.model.SelectItem[] getContentFilterLanguages(boolean includeAllLanguages)
- Parameters:
includeAllLanguages
- if true, the list must include the label 'all languages'
- Returns:
- list of items for the content filtering language selection
getAvailablesContentFilterLanguages
public javax.faces.model.SelectItem[] getAvailablesContentFilterLanguages(org.alfresco.service.cmr.repository.NodeRef translation,
boolean returnTranslationLanguage)
- return the list of languages in which the given node hasn't be translated yet.
- Parameters:
translation
- the translatable node refreturnTranslationLanguage
- if true, return the language of the given translation.
- Returns:
- the list of languages
getStartLocation
public java.lang.String getStartLocation()
- Returns:
- the start location for this user (@see NavigationBean)
setStartLocation
public void setStartLocation(java.lang.String location)
- Parameters:
location
- The current start location for this user (@see NavigationBean)
getStartLocations
public javax.faces.model.SelectItem[] getStartLocations()
- Returns:
- the list of available start locations
getAllowGuestConfig
public boolean getAllowGuestConfig()
- Returns:
- true if the Guest user is allowed to configure the user preferences
getMultilingualContentService
public org.alfresco.service.cmr.ml.MultilingualContentService getMultilingualContentService()
- Returns:
- the multilingualContentService
setMultilingualContentService
public void setMultilingualContentService(org.alfresco.service.cmr.ml.MultilingualContentService multilingualContentService)
- Parameters:
multilingualContentService
- the multilingualContentService to set
getNodeService
public org.alfresco.service.cmr.repository.NodeService getNodeService()
- Returns:
- the nodeService
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
- Parameters:
nodeService
- the nodeService to set
setContentFilterLanguagesService
public void setContentFilterLanguagesService(org.alfresco.service.cmr.ml.ContentFilterLanguagesService contentFilterLanguagesService)
- Parameters:
contentFilterLanguagesService
- the contentFilterLanguagesService to set
isDownloadAutomatically
public boolean isDownloadAutomatically()
- Returns:
- download files automatically for offline editing or not
setDownloadAutomatically
public void setDownloadAutomatically(boolean downloadAutomatically)
- Parameters:
downloadAutomatically
- the boolean value to set
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.