Liferay 7.0-ce-m3

com.liferay.portal.settings
Class SettingsFactoryImpl

java.lang.Object
  extended by com.liferay.portal.settings.SettingsFactoryImpl
All Implemented Interfaces:
SettingsFactory

public class SettingsFactoryImpl
extends Object
implements SettingsFactory


Constructor Summary
SettingsFactoryImpl()
           
 
Method Summary
protected  Settings applyFallbackKeys(String settingsId, Settings settings)
           
 void clearCache()
           
protected  PortletPreferences getCompanyPortletPreferences(long companyId, String settingsId)
           
 Settings getCompanyServiceSettings(long companyId, String serviceName)
           
protected  Settings getCompanySettings(long companyId, String settingsId)
           
protected  PortletPreferences getGroupPortletPreferences(long companyId, long groupId, String settingsId)
           
 Settings getGroupServiceCompanyDefaultSettings(long companyId, String serviceName)
           
 Settings getGroupServiceSettings(long groupId, String serviceName)
           
protected  Settings getGroupSettings(long groupId, String settingsId)
           
 List<String> getMultiValuedKeys(String settingsId)
           
protected  PortletPreferences getPortalPreferences(long companyId)
           
protected  PortletPreferencesSettings getPortalPreferencesSettings(long companyId, String settingsId)
           
protected  Properties getPortalProperties(String settingsId)
           
protected  PropertiesSettings getPortalPropertiesSettings(String settingsId)
           
 ArchivedSettings getPortletInstanceArchivedSettings(long groupId, String portletId, String name)
           
 List<ArchivedSettings> getPortletInstanceArchivedSettingsList(long groupId, String portletId)
           
 Settings getPortletInstanceCompanyDefaultSettings(long companyId, String portletId)
           
 Settings getPortletInstanceGroupDefaultSettings(long groupId, String portletId)
           
protected  PortletPreferences getPortletInstancePortletPreferences(Layout layout, String portletId)
           
 Settings getPortletInstanceSettings(Layout layout, String portletId)
           
protected  Properties getPortletProperties(String settingsId, ResourceManager resourceManager)
           
protected  PropertiesSettings getPortletPropertiesSettings(String settingsId)
           
protected  ResourceManager getResourceManager(String settingsId)
           
 void registerSettingsMetadata(String settingsId, FallbackKeys fallbackKeys, String[] multiValuedKeysArray, ResourceManager resourceManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingsFactoryImpl

public SettingsFactoryImpl()
Method Detail

clearCache

public void clearCache()
Specified by:
clearCache in interface SettingsFactory

getCompanyServiceSettings

public Settings getCompanyServiceSettings(long companyId,
                                          String serviceName)
Specified by:
getCompanyServiceSettings in interface SettingsFactory

getGroupServiceCompanyDefaultSettings

public Settings getGroupServiceCompanyDefaultSettings(long companyId,
                                                      String serviceName)
Specified by:
getGroupServiceCompanyDefaultSettings in interface SettingsFactory

getGroupServiceSettings

public Settings getGroupServiceSettings(long groupId,
                                        String serviceName)
                                 throws PortalException
Specified by:
getGroupServiceSettings in interface SettingsFactory
Throws:
PortalException

getMultiValuedKeys

public List<String> getMultiValuedKeys(String settingsId)
Specified by:
getMultiValuedKeys in interface SettingsFactory

getPortletInstanceArchivedSettings

public ArchivedSettings getPortletInstanceArchivedSettings(long groupId,
                                                           String portletId,
                                                           String name)
                                                    throws PortalException
Specified by:
getPortletInstanceArchivedSettings in interface SettingsFactory
Throws:
PortalException

getPortletInstanceArchivedSettingsList

public List<ArchivedSettings> getPortletInstanceArchivedSettingsList(long groupId,
                                                                     String portletId)
Specified by:
getPortletInstanceArchivedSettingsList in interface SettingsFactory

getPortletInstanceCompanyDefaultSettings

public Settings getPortletInstanceCompanyDefaultSettings(long companyId,
                                                         String portletId)
Specified by:
getPortletInstanceCompanyDefaultSettings in interface SettingsFactory

getPortletInstanceGroupDefaultSettings

public Settings getPortletInstanceGroupDefaultSettings(long groupId,
                                                       String portletId)
                                                throws PortalException
Specified by:
getPortletInstanceGroupDefaultSettings in interface SettingsFactory
Throws:
PortalException

getPortletInstanceSettings

public Settings getPortletInstanceSettings(Layout layout,
                                           String portletId)
                                    throws PortalException
Specified by:
getPortletInstanceSettings in interface SettingsFactory
Throws:
PortalException

registerSettingsMetadata

public void registerSettingsMetadata(String settingsId,
                                     FallbackKeys fallbackKeys,
                                     String[] multiValuedKeysArray,
                                     ResourceManager resourceManager)
Specified by:
registerSettingsMetadata in interface SettingsFactory

applyFallbackKeys

protected Settings applyFallbackKeys(String settingsId,
                                     Settings settings)

getCompanyPortletPreferences

protected PortletPreferences getCompanyPortletPreferences(long companyId,
                                                          String settingsId)

getCompanySettings

protected Settings getCompanySettings(long companyId,
                                      String settingsId)

getGroupPortletPreferences

protected PortletPreferences getGroupPortletPreferences(long companyId,
                                                        long groupId,
                                                        String settingsId)

getGroupSettings

protected Settings getGroupSettings(long groupId,
                                    String settingsId)
                             throws PortalException
Throws:
PortalException

getPortalPreferences

protected PortletPreferences getPortalPreferences(long companyId)

getPortalPreferencesSettings

protected PortletPreferencesSettings getPortalPreferencesSettings(long companyId,
                                                                  String settingsId)

getPortalProperties

protected Properties getPortalProperties(String settingsId)

getPortalPropertiesSettings

protected PropertiesSettings getPortalPropertiesSettings(String settingsId)

getPortletInstancePortletPreferences

protected PortletPreferences getPortletInstancePortletPreferences(Layout layout,
                                                                  String portletId)

getPortletProperties

protected Properties getPortletProperties(String settingsId,
                                          ResourceManager resourceManager)

getPortletPropertiesSettings

protected PropertiesSettings getPortletPropertiesSettings(String settingsId)

getResourceManager

protected ResourceManager getResourceManager(String settingsId)

Liferay 7.0-ce-m3