Package org.gluu.oxtrust.action
Class ConfigureCacheRefreshAction
- java.lang.Object
-
- org.gluu.oxtrust.action.ConfigureCacheRefreshAction
-
- All Implemented Interfaces:
java.io.Serializable,LdapConfigurationModel,SimpleCustomPropertiesListModel,SimplePropertiesListModel
@Named("configureCacheRefreshAction") @ConversationScoped @Secure("#{permissionService.hasPermission(\'configuration\', \'access\')}") public class ConfigureCacheRefreshAction extends java.lang.Object implements SimplePropertiesListModel, SimpleCustomPropertiesListModel, LdapConfigurationModel, java.io.SerializableAction class for configuring cache refresh- Author:
- Yuriy Movchan Date: 07.26.2011
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConfigureCacheRefreshAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItemToSimpleCustomProperties(java.util.List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties)voidaddItemToSimpleProperties(java.util.List<org.gluu.model.SimpleProperty> simpleProperties)voidaddLdapConfig(java.util.List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList)voidaddSourceConfig()java.lang.Stringcancel()booleancheckDuplicateKetattribute()org.gluu.model.ldap.GluuLdapConfigurationgetActiveLdapConfig()CacheRefreshUpdateMethod[]getAllCacheRefreshUpdateMethods()java.util.List<org.gluu.model.SimpleCustomProperty>getAttributeMapping()org.gluu.config.oxtrust.CacheRefreshConfigurationgetCacheRefreshConfig()intgetCacheRefreshEnabledIntervalMinutes()GluuConfigurationgetConfiguration()java.lang.StringgetInterceptorValidationMessage()org.gluu.model.ldap.GluuLdapConfigurationgetInumConfig()java.util.List<org.gluu.model.SimpleProperty>getKeyAttributes()java.util.List<org.gluu.model.SimpleProperty>getKeyObjectClasses()java.util.List<org.gluu.model.SimpleProperty>getSourceAttributes()java.util.List<org.gluu.model.ldap.GluuLdapConfiguration>getSourceConfigs()org.gluu.model.ldap.GluuLdapConfigurationgetTargetConfig()CacheRefreshUpdateMethodgetUpdateMethod()voidhideShowInterceptorValidationDialog()java.lang.Stringinit()booleanisCacheRefreshEnabled()booleanisInitialized()booleanisShowInterceptorValidationDialog()voidremoveItemFromSimpleCustomProperties(java.util.List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties, org.gluu.model.SimpleCustomProperty simpleCustomProperty)voidremoveItemFromSimpleProperties(java.util.List<org.gluu.model.SimpleProperty> simpleProperties, org.gluu.model.SimpleProperty simpleProperty)voidremoveLdapConfig(java.util.List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList, org.gluu.model.ldap.GluuLdapConfiguration removeLdapConfig)voidsetActiveLdapConfig(org.gluu.model.ldap.GluuLdapConfiguration activeLdapConfig)voidsetConfiguration(GluuConfiguration configuration)voidsetUpdateMethod(CacheRefreshUpdateMethod updateMethod)java.lang.StringtestLdapConnection(org.gluu.model.ldap.GluuLdapConfiguration ldapConfig)java.lang.Stringupdate()voidupdateBindPassword()java.lang.StringupdateImpl()voidvalidateInterceptorScript()voidvalidateProperty(javax.faces.context.FacesContext context, javax.faces.component.UIComponent comp, java.lang.Object value)
-
-
-
Method Detail
-
getConfiguration
public GluuConfiguration getConfiguration()
-
setConfiguration
public void setConfiguration(GluuConfiguration configuration)
-
init
public java.lang.String init()
-
update
public java.lang.String update()
-
updateImpl
public java.lang.String updateImpl()
-
cancel
public java.lang.String cancel()
-
isCacheRefreshEnabled
public boolean isCacheRefreshEnabled()
-
getCacheRefreshEnabledIntervalMinutes
public int getCacheRefreshEnabledIntervalMinutes()
-
addSourceConfig
public void addSourceConfig()
-
getSourceConfigs
public java.util.List<org.gluu.model.ldap.GluuLdapConfiguration> getSourceConfigs()
-
getInumConfig
public org.gluu.model.ldap.GluuLdapConfiguration getInumConfig()
-
getTargetConfig
public org.gluu.model.ldap.GluuLdapConfiguration getTargetConfig()
-
getCacheRefreshConfig
public org.gluu.config.oxtrust.CacheRefreshConfiguration getCacheRefreshConfig()
-
getAllCacheRefreshUpdateMethods
public CacheRefreshUpdateMethod[] getAllCacheRefreshUpdateMethods()
-
validateInterceptorScript
public void validateInterceptorScript()
-
getInterceptorValidationMessage
public java.lang.String getInterceptorValidationMessage()
-
isShowInterceptorValidationDialog
public boolean isShowInterceptorValidationDialog()
-
hideShowInterceptorValidationDialog
public void hideShowInterceptorValidationDialog()
-
isInitialized
public boolean isInitialized()
-
addItemToSimpleProperties
public void addItemToSimpleProperties(java.util.List<org.gluu.model.SimpleProperty> simpleProperties)
- Specified by:
addItemToSimplePropertiesin interfaceSimplePropertiesListModel
-
removeItemFromSimpleProperties
public void removeItemFromSimpleProperties(java.util.List<org.gluu.model.SimpleProperty> simpleProperties, org.gluu.model.SimpleProperty simpleProperty)- Specified by:
removeItemFromSimplePropertiesin interfaceSimplePropertiesListModel
-
addItemToSimpleCustomProperties
public void addItemToSimpleCustomProperties(java.util.List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties)
- Specified by:
addItemToSimpleCustomPropertiesin interfaceSimpleCustomPropertiesListModel
-
removeItemFromSimpleCustomProperties
public void removeItemFromSimpleCustomProperties(java.util.List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties, org.gluu.model.SimpleCustomProperty simpleCustomProperty)- Specified by:
removeItemFromSimpleCustomPropertiesin interfaceSimpleCustomPropertiesListModel
-
getActiveLdapConfig
public org.gluu.model.ldap.GluuLdapConfiguration getActiveLdapConfig()
-
updateBindPassword
public void updateBindPassword()
-
setActiveLdapConfig
public void setActiveLdapConfig(org.gluu.model.ldap.GluuLdapConfiguration activeLdapConfig)
- Specified by:
setActiveLdapConfigin interfaceLdapConfigurationModel
-
addLdapConfig
public void addLdapConfig(java.util.List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList)
- Specified by:
addLdapConfigin interfaceLdapConfigurationModel
-
removeLdapConfig
public void removeLdapConfig(java.util.List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList, org.gluu.model.ldap.GluuLdapConfiguration removeLdapConfig)- Specified by:
removeLdapConfigin interfaceLdapConfigurationModel
-
getUpdateMethod
public CacheRefreshUpdateMethod getUpdateMethod()
-
setUpdateMethod
public void setUpdateMethod(CacheRefreshUpdateMethod updateMethod)
-
getKeyAttributes
public java.util.List<org.gluu.model.SimpleProperty> getKeyAttributes()
-
getKeyObjectClasses
public java.util.List<org.gluu.model.SimpleProperty> getKeyObjectClasses()
-
getSourceAttributes
public java.util.List<org.gluu.model.SimpleProperty> getSourceAttributes()
-
getAttributeMapping
public java.util.List<org.gluu.model.SimpleCustomProperty> getAttributeMapping()
-
validateProperty
public void validateProperty(javax.faces.context.FacesContext context, javax.faces.component.UIComponent comp, java.lang.Object value)
-
checkDuplicateKetattribute
public boolean checkDuplicateKetattribute()
-
testLdapConnection
public java.lang.String testLdapConnection(org.gluu.model.ldap.GluuLdapConfiguration ldapConfig)
-
-