public class DefaultUIConfigurationService extends AbstractServiceImpl implements UIConfigurationService
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultUIConfigurationService.MyEnumerationInvalidationListener |
modelService, typeService| Constructor and Description |
|---|
DefaultUIConfigurationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected CockpitConfigurationService |
getCockpitConfigurationService() |
<T extends UIComponentConfiguration> |
getComponentConfiguration(ObjectTemplate template,
java.lang.String code,
java.lang.Class<T> expectedClass)
Returns a UI component configuration for the given parameters and uses
the session role as role. |
<T extends UIComponentConfiguration> |
getComponentConfiguration(UIRole role,
ObjectTemplate objectTemplate,
java.lang.String code,
java.lang.Class<T> expectedClass)
Returns a UI component configuration for the given role, object template code and type.
|
ConfigurationPersistingStrategy |
getDefaultPersistingStrategy() |
UIRole |
getFallbackRole()
The ultimate role for ui configuration lookups
|
MediaService |
getMediaService() |
java.util.List<UIRole> |
getPossibleRoles()
Returns all roles of the session user for which there are ui components available.
|
java.util.List<UIRole> |
getPossibleRoles(UserModel user)
Returns all roles of the given user for which there are ui components available.
|
UIRole |
getSessionRole()
The role to look up ui configurations by default (if no role is given).
|
protected SessionService |
getSessionService() |
protected java.util.List<ObjectType> |
getTypePath(ObjectTemplate template) |
protected UserService |
getUserService() |
void |
init() |
void |
initPersistingStrategies() |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setCockpitConfigurationService(CockpitConfigurationService cockpitConfigurationService) |
void |
setDefaultPersistingStrategy(ConfigurationPersistingStrategy defaultPersistingStrategy) |
void |
setFallbackRoleName(java.lang.String roleName) |
<T extends UIComponentConfiguration> |
setLocalComponentConfiguration(T configuration,
UserModel user,
ObjectTemplate objectTemplate,
java.lang.String code,
java.lang.Class<T> expectedClass)
Stores given UI configuration for given user and given parameters.
|
void |
setLoginService(LoginService loginService) |
void |
setMediaService(MediaService mediaService) |
void |
setSessionRole(java.lang.String role)
Set the current session's role by name
|
void |
setSessionRole(UIRole role)
Set the current session's role
|
void |
setSessionService(SessionService sessionService) |
void |
setUiComponentCache(UIComponentCache componentCache) |
void |
setUserService(UserService userService) |
getEnum, getEnums, getLocalizedLabel, getLocalizedLabel, getModelService, getTypeService, setCockpitTypeService, setLabelResolver, setModelServicepublic UIRole getFallbackRole()
UIConfigurationServicegetFallbackRole in interface UIConfigurationServiceUIConfigurationService.getComponentConfiguration(UIRole, ObjectTemplate, String, Class)public UIRole getSessionRole()
UIConfigurationServicegetSessionRole in interface UIConfigurationServiceUIConfigurationService.getComponentConfiguration(ObjectTemplate, String, Class)public void setSessionRole(UIRole role)
UIConfigurationServicesetSessionRole in interface UIConfigurationServicerole - the rolepublic void setSessionRole(java.lang.String role)
UIConfigurationServicesetSessionRole in interface UIConfigurationServicerole - the name of the rolepublic <T extends UIComponentConfiguration> T getComponentConfiguration(UIRole role, ObjectTemplate objectTemplate, java.lang.String code, java.lang.Class<T> expectedClass)
UIConfigurationServiceUIConfigurationService.getFallbackRole()UIComponentConfigurationFactory registered for the expexted class to create a default
configurationgetComponentConfiguration in interface UIConfigurationServiceprotected java.util.List<ObjectType> getTypePath(ObjectTemplate template)
public <T extends UIComponentConfiguration> T getComponentConfiguration(ObjectTemplate template, java.lang.String code, java.lang.Class<T> expectedClass)
UIConfigurationServicethe session role as role.
See UIConfigurationService.getComponentConfiguration(UIRole, ObjectTemplate, String, Class) for details.getComponentConfiguration in interface UIConfigurationServiceT - the type of the ui component configurationtemplate - theUIConfigurationService.getComponentConfiguration(UIRole, ObjectTemplate, String, Class)public java.util.List<UIRole> getPossibleRoles()
UIConfigurationServicegetPossibleRoles in interface UIConfigurationServicepublic java.util.List<UIRole> getPossibleRoles(UserModel user)
UIConfigurationServicegetPossibleRoles in interface UIConfigurationServiceuser - the user to search roles forpublic void setLoginService(LoginService loginService)
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
BeansExceptionpublic void setFallbackRoleName(java.lang.String roleName)
public void setUiComponentCache(UIComponentCache componentCache)
public <T extends UIComponentConfiguration> void setLocalComponentConfiguration(T configuration, UserModel user, ObjectTemplate objectTemplate, java.lang.String code, java.lang.Class<T> expectedClass)
UIConfigurationServicesetLocalComponentConfiguration in interface UIConfigurationServiceconfiguration - the configuration to be storeduser - user to set the local configuration forobjectTemplate - the template this configuration is related tocode - the code this configuration is related toexpectedClass - the expected classpublic void initPersistingStrategies()
public void setDefaultPersistingStrategy(ConfigurationPersistingStrategy defaultPersistingStrategy)
public ConfigurationPersistingStrategy getDefaultPersistingStrategy()
public void init()
public void clear()
protected CockpitConfigurationService getCockpitConfigurationService()
public void setCockpitConfigurationService(CockpitConfigurationService cockpitConfigurationService)
protected UserService getUserService()
public void setUserService(UserService userService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
public MediaService getMediaService()
public void setMediaService(MediaService mediaService)
Copyright © 2018 SAP SE. All Rights Reserved.