Class ConfigureCacheRefreshAction

java.lang.Object
org.gluu.oxtrust.action.ConfigureCacheRefreshAction
All Implemented Interfaces:
Serializable, LdapConfigurationModel, SimpleCustomPropertiesListModel, SimplePropertiesListModel

@Named("configureCacheRefreshAction") @ConversationScoped @Secure("#{permissionService.hasPermission(\'configuration\', \'access\')}") public class ConfigureCacheRefreshAction extends Object implements SimplePropertiesListModel, SimpleCustomPropertiesListModel, LdapConfigurationModel, Serializable
Action class for configuring cache refresh
Author:
Yuriy Movchan Date: 07.26.2011
See Also:
  • Constructor Details

    • ConfigureCacheRefreshAction

      public ConfigureCacheRefreshAction()
  • Method Details

    • getConfiguration

      public GluuConfiguration getConfiguration()
    • setConfiguration

      public void setConfiguration(GluuConfiguration configuration)
    • init

      public String init()
    • update

      public String update()
    • updateImpl

      public String updateImpl()
    • cancel

      public String cancel()
    • isCacheRefreshEnabled

      public boolean isCacheRefreshEnabled()
    • getCacheRefreshEnabledIntervalMinutes

      public int getCacheRefreshEnabledIntervalMinutes()
    • addSourceConfig

      public void addSourceConfig()
    • getSourceConfigs

      public 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 String getInterceptorValidationMessage()
    • isShowInterceptorValidationDialog

      public boolean isShowInterceptorValidationDialog()
    • hideShowInterceptorValidationDialog

      public void hideShowInterceptorValidationDialog()
    • isInitialized

      public boolean isInitialized()
    • addItemToSimpleProperties

      public void addItemToSimpleProperties(List<org.gluu.model.SimpleProperty> simpleProperties)
      Specified by:
      addItemToSimpleProperties in interface SimplePropertiesListModel
    • removeItemFromSimpleProperties

      public void removeItemFromSimpleProperties(List<org.gluu.model.SimpleProperty> simpleProperties, org.gluu.model.SimpleProperty simpleProperty)
      Specified by:
      removeItemFromSimpleProperties in interface SimplePropertiesListModel
    • addItemToSimpleCustomProperties

      public void addItemToSimpleCustomProperties(List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties)
      Specified by:
      addItemToSimpleCustomProperties in interface SimpleCustomPropertiesListModel
    • removeItemFromSimpleCustomProperties

      public void removeItemFromSimpleCustomProperties(List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties, org.gluu.model.SimpleCustomProperty simpleCustomProperty)
      Specified by:
      removeItemFromSimpleCustomProperties in interface SimpleCustomPropertiesListModel
    • getActiveLdapConfig

      public org.gluu.model.ldap.GluuLdapConfiguration getActiveLdapConfig()
    • updateBindPassword

      public void updateBindPassword()
    • cancelBindPassword

      public void cancelBindPassword()
    • setActiveLdapConfig

      public void setActiveLdapConfig(org.gluu.model.ldap.GluuLdapConfiguration activeLdapConfig)
      Specified by:
      setActiveLdapConfig in interface LdapConfigurationModel
    • addLdapConfig

      public void addLdapConfig(List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList)
      Specified by:
      addLdapConfig in interface LdapConfigurationModel
    • removeLdapConfig

      public void removeLdapConfig(List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList, org.gluu.model.ldap.GluuLdapConfiguration removeLdapConfig)
      Specified by:
      removeLdapConfig in interface LdapConfigurationModel
    • getUpdateMethod

      public CacheRefreshUpdateMethod getUpdateMethod()
    • setUpdateMethod

      public void setUpdateMethod(CacheRefreshUpdateMethod updateMethod)
    • getKeyAttributes

      public List<org.gluu.model.SimpleProperty> getKeyAttributes()
    • getKeyObjectClasses

      public List<org.gluu.model.SimpleProperty> getKeyObjectClasses()
    • getSourceAttributes

      public List<org.gluu.model.SimpleProperty> getSourceAttributes()
    • getAttributeMapping

      public List<org.gluu.model.SimpleCustomProperty> getAttributeMapping()
    • validateProperty

      public void validateProperty(jakarta.faces.context.FacesContext context, jakarta.faces.component.UIComponent comp, Object value)
    • checkDuplicateAttribute

      public boolean checkDuplicateAttribute(List<org.gluu.model.SimpleProperty> attributes)
    • checkDuplicateKeyAttribute

      public boolean checkDuplicateKeyAttribute()
    • testLdapConnection

      public String testLdapConnection(org.gluu.model.ldap.GluuLdapConfiguration ldapConfig)