org.nuxeo.theme.presets
Class PresetManager
java.lang.Object
org.nuxeo.theme.presets.PresetManager
public class PresetManager
- extends Object
Method Summary |
static void |
clearCustomPresets(String themeName)
|
static void |
createCustomPreset(String themeName,
String presetName,
String category,
String value,
String label,
String description)
|
static void |
deletePreset(String themeName,
String presetName)
|
static void |
editPreset(String themeName,
String presetName,
String value)
|
static String |
extractPresetName(String themeName,
String str)
|
static List<Type> |
getAllPresets()
|
static PresetType |
getCustomPreset(String themeName,
String presetName)
|
static List<PresetType> |
getCustomPresets(String themeName)
|
static List<PresetType> |
getCustomPresets(String themeName,
String category)
|
static List<PresetType> |
getGlobalPresets(String group,
String category)
|
static PresetType |
getPresetByName(String name)
|
static List<String> |
getUnidentifiedPresetNames(String themeName)
|
static void |
renamePreset(String themeName,
String oldName,
String newName)
|
static String |
resolvePresets(String themeName,
String propertyValue)
|
static void |
setPresetCategory(String themeName,
String presetName,
String category)
|
PresetManager
public PresetManager()
extractPresetName
public static String extractPresetName(String themeName,
String str)
getPresetByName
public static PresetType getPresetByName(String name)
getAllPresets
public static List<Type> getAllPresets()
getGlobalPresets
public static List<PresetType> getGlobalPresets(String group,
String category)
getCustomPreset
public static PresetType getCustomPreset(String themeName,
String presetName)
getCustomPresets
public static List<PresetType> getCustomPresets(String themeName)
getCustomPresets
public static List<PresetType> getCustomPresets(String themeName,
String category)
resolvePresets
public static String resolvePresets(String themeName,
String propertyValue)
createCustomPreset
public static void createCustomPreset(String themeName,
String presetName,
String category,
String value,
String label,
String description)
editPreset
public static void editPreset(String themeName,
String presetName,
String value)
setPresetCategory
public static void setPresetCategory(String themeName,
String presetName,
String category)
renamePreset
public static void renamePreset(String themeName,
String oldName,
String newName)
throws ThemeException
- Throws:
ThemeException
deletePreset
public static void deletePreset(String themeName,
String presetName)
throws ThemeException
- Throws:
ThemeException
clearCustomPresets
public static void clearCustomPresets(String themeName)
getUnidentifiedPresetNames
public static List<String> getUnidentifiedPresetNames(String themeName)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.