public class UserPreferencesBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
MSG_CONTENTALLLANGUAGES
Remplacement message for set the filter at 'all languages'.
|
static String |
PREF_INTERFACELANGUAGE |
Constructor and Description |
---|
UserPreferencesBean() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowGuestConfig() |
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.
|
String |
getContentFilterLanguage() |
SelectItem[] |
getContentFilterLanguages() |
SelectItem[] |
getContentFilterLanguages(boolean includeAllLanguages) |
String |
getLanguage() |
SelectItem[] |
getLanguages() |
MultilingualContentService |
getMultilingualContentService() |
org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
String |
getStartLocation() |
SelectItem[] |
getStartLocations() |
boolean |
isDownloadAutomatically() |
void |
setContentFilterLanguage(String contentFilterLanguage) |
void |
setContentFilterLanguagesService(ContentFilterLanguagesService contentFilterLanguagesService) |
void |
setDownloadAutomatically(boolean downloadAutomatically) |
void |
setLanguage(String language) |
void |
setMultilingualContentService(MultilingualContentService multilingualContentService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setStartLocation(String location) |
public static final String PREF_INTERFACELANGUAGE
public static final String MSG_CONTENTALLLANGUAGES
public SelectItem[] getLanguages()
public String getLanguage()
public void setLanguage(String language)
language
- The language selection to set.public String getContentFilterLanguage()
public void setContentFilterLanguage(String contentFilterLanguage)
contentFilterLanguage
- A valid locale string or MSG_CONTENTALLLANGUAGES
public SelectItem[] getContentFilterLanguages()
public SelectItem[] getContentFilterLanguages(boolean includeAllLanguages)
includeAllLanguages
- if true, the list must include the label 'all languages'public SelectItem[] getAvailablesContentFilterLanguages(org.alfresco.service.cmr.repository.NodeRef translation, boolean returnTranslationLanguage)
translation
- the translatable node refreturnTranslationLanguage
- if true, return the language of the given translation.public String getStartLocation()
public void setStartLocation(String location)
location
- The current start location for this user (@see NavigationBean)public SelectItem[] getStartLocations()
public boolean getAllowGuestConfig()
public MultilingualContentService getMultilingualContentService()
public void setMultilingualContentService(MultilingualContentService multilingualContentService)
multilingualContentService
- the multilingualContentService to setpublic org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- the nodeService to setpublic void setContentFilterLanguagesService(ContentFilterLanguagesService contentFilterLanguagesService)
contentFilterLanguagesService
- the contentFilterLanguagesService to setpublic boolean isDownloadAutomatically()
public void setDownloadAutomatically(boolean downloadAutomatically)
downloadAutomatically
- the boolean value to setCopyright © 2005–2017 Alfresco Software. All rights reserved.