001
014
015 package com.liferay.portal.kernel.util;
016
017 import com.liferay.portal.kernel.model.ColorScheme;
018 import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
019
020
023 public class ColorSchemeFactoryUtil {
024
025 public static ColorScheme getColorScheme() {
026 return getColorSchemeFactory().getColorScheme();
027 }
028
029 public static ColorScheme getColorScheme(String colorSchemeId) {
030 return getColorSchemeFactory().getColorScheme(colorSchemeId);
031 }
032
033 public static ColorScheme getColorScheme(
034 String colorSchemeId, String name, String cssClass) {
035
036 return getColorSchemeFactory().getColorScheme(
037 colorSchemeId, name, cssClass);
038 }
039
040 public static ColorSchemeFactory getColorSchemeFactory() {
041 PortalRuntimePermission.checkGetBeanProperty(
042 ColorSchemeFactoryUtil.class);
043
044 return _colorSchemeFactory;
045 }
046
047 public static ColorScheme getDefaultRegularColorScheme() {
048 return getColorSchemeFactory().getDefaultRegularColorScheme();
049 }
050
051 public static String getDefaultRegularColorSchemeId() {
052 return getColorSchemeFactory().getDefaultRegularColorSchemeId();
053 }
054
055 public void setColorSchemeFactory(ColorSchemeFactory colorSchemeFactory) {
056 PortalRuntimePermission.checkSetBeanProperty(getClass());
057
058 _colorSchemeFactory = colorSchemeFactory;
059 }
060
061 private static ColorSchemeFactory _colorSchemeFactory;
062
063 }