public class DefaultConfigurationPersistingStrategy<CONFIG extends UIComponentConfiguration,JAXBCLASS> extends java.lang.Object implements ConfigurationPersistingStrategy<CONFIG>
COMPONENT_PERMISSION_CODE| Constructor and Description |
|---|
DefaultConfigurationPersistingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkPermissions(UserModel user) |
java.lang.String |
createXml(JAXBCLASS root) |
CockpitUIComponentConfigurationDao |
getCockpitUIComponentConfigurationDao() |
java.lang.Class<CONFIG> |
getComponentClass()
Provides the class this strategy is valid for.
|
java.lang.String |
getComponentClassName() |
java.lang.String |
getConfigurationFactory() |
protected java.lang.Object |
getJaxbElement(CONFIG config,
java.lang.Object element) |
MediaService |
getMediaService() |
ModelService |
getModelService() |
protected JAXBCLASS |
getRootJaxbElement(CONFIG config) |
void |
persistComponentConfiguration(CONFIG configuration,
UserModel user,
ObjectTemplate objectTemplate,
java.lang.String code)
Stores the configuration according to the strategy implementation
|
void |
setCockpitUIComponentConfigurationDao(CockpitUIComponentConfigurationDao cockpitConfigurationDao) |
void |
setComponentClassName(java.lang.String componentClass) |
void |
setConfigurationFactory(java.lang.String factory) |
void |
setJaxbClass(java.lang.Class<JAXBCLASS> jaxbClass) |
void |
setJaxbContextCache(JAXBContextCache jaxbContextCache) |
void |
setMediaService(MediaService mediaService) |
void |
setModelService(ModelService modelService) |
void |
setSchemaResource(Resource schemaResource) |
void |
setUiAccessRightService(UIAccessRightService uiAccessRightService) |
protected void |
storeConfigurationMedia(PrincipalModel principal,
java.lang.String xmlContent,
java.lang.String code,
java.lang.String objectTemplateCode,
java.lang.String factoryBeanId) |
JAXBCLASS |
updateJaxb(CONFIG configuration)
Converts/updates given configuration to the corresponding JAXB class - this method must be overriden by subclass!
|
public DefaultConfigurationPersistingStrategy()
public JAXBCLASS updateJaxb(CONFIG configuration)
configuration - the java configurationpublic void persistComponentConfiguration(CONFIG configuration, UserModel user, ObjectTemplate objectTemplate, java.lang.String code)
ConfigurationPersistingStrategypersistComponentConfiguration in interface ConfigurationPersistingStrategy<CONFIG extends UIComponentConfiguration>configuration - the configuration to storeuser - the user the configuration should be valid forobjectTemplate - the object template the configuration should be valid forcode - the component code of the configurationprotected boolean checkPermissions(UserModel user)
protected void storeConfigurationMedia(PrincipalModel principal, java.lang.String xmlContent, java.lang.String code, java.lang.String objectTemplateCode, java.lang.String factoryBeanId)
public java.lang.Class<CONFIG> getComponentClass()
ConfigurationPersistingStrategygetComponentClass in interface ConfigurationPersistingStrategy<CONFIG extends UIComponentConfiguration>public java.lang.String createXml(JAXBCLASS root)
public void setJaxbClass(java.lang.Class<JAXBCLASS> jaxbClass)
public java.lang.String getComponentClassName()
public void setComponentClassName(java.lang.String componentClass)
public java.lang.String getConfigurationFactory()
public void setConfigurationFactory(java.lang.String factory)
protected java.lang.Object getJaxbElement(CONFIG config, java.lang.Object element)
public void setSchemaResource(Resource schemaResource)
public ModelService getModelService()
public void setModelService(ModelService modelService)
public MediaService getMediaService()
public void setMediaService(MediaService mediaService)
public void setUiAccessRightService(UIAccessRightService uiAccessRightService)
public CockpitUIComponentConfigurationDao getCockpitUIComponentConfigurationDao()
public void setCockpitUIComponentConfigurationDao(CockpitUIComponentConfigurationDao cockpitConfigurationDao)
public void setJaxbContextCache(JAXBContextCache jaxbContextCache)
Copyright © 2018 SAP SE. All Rights Reserved.