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.Serializable
Action 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 void
addItemToSimpleCustomProperties(java.util.List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties)
void
addItemToSimpleProperties(java.util.List<org.gluu.model.SimpleProperty> simpleProperties)
void
addLdapConfig(java.util.List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList)
void
addSourceConfig()
java.lang.String
cancel()
boolean
checkDuplicateKetattribute()
org.gluu.model.ldap.GluuLdapConfiguration
getActiveLdapConfig()
CacheRefreshUpdateMethod[]
getAllCacheRefreshUpdateMethods()
java.util.List<org.gluu.model.SimpleCustomProperty>
getAttributeMapping()
org.gluu.config.oxtrust.CacheRefreshConfiguration
getCacheRefreshConfig()
int
getCacheRefreshEnabledIntervalMinutes()
GluuConfiguration
getConfiguration()
java.lang.String
getInterceptorValidationMessage()
org.gluu.model.ldap.GluuLdapConfiguration
getInumConfig()
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.GluuLdapConfiguration
getTargetConfig()
CacheRefreshUpdateMethod
getUpdateMethod()
void
hideShowInterceptorValidationDialog()
java.lang.String
init()
boolean
isCacheRefreshEnabled()
boolean
isInitialized()
boolean
isShowInterceptorValidationDialog()
void
removeItemFromSimpleCustomProperties(java.util.List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties, org.gluu.model.SimpleCustomProperty simpleCustomProperty)
void
removeItemFromSimpleProperties(java.util.List<org.gluu.model.SimpleProperty> simpleProperties, org.gluu.model.SimpleProperty simpleProperty)
void
removeLdapConfig(java.util.List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList, org.gluu.model.ldap.GluuLdapConfiguration removeLdapConfig)
void
setActiveLdapConfig(org.gluu.model.ldap.GluuLdapConfiguration activeLdapConfig)
void
setConfiguration(GluuConfiguration configuration)
void
setUpdateMethod(CacheRefreshUpdateMethod updateMethod)
java.lang.String
testLdapConnection(org.gluu.model.ldap.GluuLdapConfiguration ldapConfig)
java.lang.String
update()
void
updateBindPassword()
java.lang.String
updateImpl()
void
validateInterceptorScript()
void
validateProperty(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:
addItemToSimpleProperties
in interfaceSimplePropertiesListModel
-
removeItemFromSimpleProperties
public void removeItemFromSimpleProperties(java.util.List<org.gluu.model.SimpleProperty> simpleProperties, org.gluu.model.SimpleProperty simpleProperty)
- Specified by:
removeItemFromSimpleProperties
in interfaceSimplePropertiesListModel
-
addItemToSimpleCustomProperties
public void addItemToSimpleCustomProperties(java.util.List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties)
- Specified by:
addItemToSimpleCustomProperties
in interfaceSimpleCustomPropertiesListModel
-
removeItemFromSimpleCustomProperties
public void removeItemFromSimpleCustomProperties(java.util.List<org.gluu.model.SimpleCustomProperty> simpleCustomProperties, org.gluu.model.SimpleCustomProperty simpleCustomProperty)
- Specified by:
removeItemFromSimpleCustomProperties
in 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:
setActiveLdapConfig
in interfaceLdapConfigurationModel
-
addLdapConfig
public void addLdapConfig(java.util.List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList)
- Specified by:
addLdapConfig
in interfaceLdapConfigurationModel
-
removeLdapConfig
public void removeLdapConfig(java.util.List<org.gluu.model.ldap.GluuLdapConfiguration> ldapConfigList, org.gluu.model.ldap.GluuLdapConfiguration removeLdapConfig)
- Specified by:
removeLdapConfig
in 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)
-
-