mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge Offline Edit dev branch to HEAD
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8527 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -56,9 +56,11 @@ public class UserPreferencesBean implements Serializable
|
||||
{
|
||||
private static final long serialVersionUID = -1262481849503163054L;
|
||||
|
||||
public static final String PREF_INTERFACELANGUAGE = "interface-language";
|
||||
|
||||
private static final String PREF_STARTLOCATION = "start-location";
|
||||
private static final String PREF_CONTENTFILTERLANGUAGE = "content-filter-language";
|
||||
public static final String PREF_INTERFACELANGUAGE = "interface-language";
|
||||
private static final String PREF_DOWNLOADAUTOMATICALLY = "download-automatically";
|
||||
|
||||
/**
|
||||
* Remplacement message for set the filter at 'all languages'.
|
||||
@@ -388,4 +390,28 @@ public class UserPreferencesBean implements Serializable
|
||||
}
|
||||
return contentFilterLanguagesService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return download files automatically for offline editing or not
|
||||
*/
|
||||
public boolean isDownloadAutomatically()
|
||||
{
|
||||
Boolean downloadAutomatically = (Boolean) PreferencesService.getPreferences().getValue(PREF_DOWNLOADAUTOMATICALLY);
|
||||
if (downloadAutomatically == null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return downloadAutomatically.booleanValue();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param downloadAutomatically the boolean value to set
|
||||
*/
|
||||
public void setDownloadAutomatically(boolean downloadAutomatically)
|
||||
{
|
||||
PreferencesService.getPreferences().setValue(PREF_DOWNLOADAUTOMATICALLY, downloadAutomatically);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user