org.apache.archiva.configuration
Class RedbackRuntimeConfiguration

java.lang.Object
  extended by org.apache.archiva.configuration.RedbackRuntimeConfiguration
All Implemented Interfaces:
Serializable

public class RedbackRuntimeConfiguration
extends Object
implements Serializable

The runtime configuration.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Field Summary
private  Map configurationProperties
          Field configurationProperties.
private  LdapConfiguration ldapConfiguration
          the ldap configuration.
private  List<LdapGroupMapping> ldapGroupMappings
          Field ldapGroupMappings.
private  boolean migratedFromRedbackConfiguration
          flag to know if redback configuration has been checked/migrated.
private  List<String> rbacManagerImpls
          Field rbacManagerImpls.
private  List<String> userManagerImpls
          Field userManagerImpls.
private  CacheConfiguration usersCacheConfiguration
          the users cache configuration.
private  boolean useUsersCache
          flag to know if redback will use a cache to prevent searching users already found.
 
Constructor Summary
RedbackRuntimeConfiguration()
           
 
Method Summary
 void addConfigurationProperty(Object key, String value)
          Method addConfigurationProperty.
 void addLdapGroupMapping(LdapGroupMapping ldapGroupMapping)
          Method addLdapGroupMapping.
 void addRbacManagerImpl(String string)
          Method addRbacManagerImpl.
 void addUserManagerImpl(String string)
          Method addUserManagerImpl.
 Map getConfigurationProperties()
          Method getConfigurationProperties.
 LdapConfiguration getLdapConfiguration()
          Get the ldap configuration.
 List<LdapGroupMapping> getLdapGroupMappings()
          Method getLdapGroupMappings.
 List<String> getRbacManagerImpls()
          Method getRbacManagerImpls.
 List<String> getUserManagerImpls()
          Method getUserManagerImpls.
 CacheConfiguration getUsersCacheConfiguration()
          Get the users cache configuration.
 boolean isMigratedFromRedbackConfiguration()
          Get flag to know if redback configuration has been checked/migrated.
 boolean isUseUsersCache()
          Get flag to know if redback will use a cache to prevent searching users already found.
 void removeLdapGroupMapping(LdapGroupMapping ldapGroupMapping)
          Method removeLdapGroupMapping.
 void removeRbacManagerImpl(String string)
          Method removeRbacManagerImpl.
 void removeUserManagerImpl(String string)
          Method removeUserManagerImpl.
 void setConfigurationProperties(Map configurationProperties)
          Set extra properties for redback configuration.
 void setLdapConfiguration(LdapConfiguration ldapConfiguration)
          Set the ldap configuration.
 void setLdapGroupMappings(List<LdapGroupMapping> ldapGroupMappings)
          Set ldapGroupMappings.
 void setMigratedFromRedbackConfiguration(boolean migratedFromRedbackConfiguration)
          Set flag to know if redback configuration has been checked/migrated.
 void setRbacManagerImpls(List<String> rbacManagerImpls)
          Set the RBAC Manager impls to use.
 void setUserManagerImpls(List<String> userManagerImpls)
          Set the user manager impls to use.
 void setUsersCacheConfiguration(CacheConfiguration usersCacheConfiguration)
          Set the users cache configuration.
 void setUseUsersCache(boolean useUsersCache)
          Set flag to know if redback will use a cache to prevent searching users already found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

migratedFromRedbackConfiguration

private boolean migratedFromRedbackConfiguration
flag to know if redback configuration has been checked/migrated.


userManagerImpls

private List<String> userManagerImpls
Field userManagerImpls.


rbacManagerImpls

private List<String> rbacManagerImpls
Field rbacManagerImpls.


ldapConfiguration

private LdapConfiguration ldapConfiguration
the ldap configuration.


ldapGroupMappings

private List<LdapGroupMapping> ldapGroupMappings
Field ldapGroupMappings.


configurationProperties

private Map configurationProperties
Field configurationProperties.


useUsersCache

private boolean useUsersCache
flag to know if redback will use a cache to prevent searching users already found.


usersCacheConfiguration

private CacheConfiguration usersCacheConfiguration
the users cache configuration.

Constructor Detail

RedbackRuntimeConfiguration

public RedbackRuntimeConfiguration()
Method Detail

addConfigurationProperty

public void addConfigurationProperty(Object key,
                                     String value)
Method addConfigurationProperty.

Parameters:
key -
value -

addLdapGroupMapping

public void addLdapGroupMapping(LdapGroupMapping ldapGroupMapping)
Method addLdapGroupMapping.

Parameters:
ldapGroupMapping -

addRbacManagerImpl

public void addRbacManagerImpl(String string)
Method addRbacManagerImpl.

Parameters:
string -

addUserManagerImpl

public void addUserManagerImpl(String string)
Method addUserManagerImpl.

Parameters:
string -

getConfigurationProperties

public Map getConfigurationProperties()
Method getConfigurationProperties.

Returns:
Map

getLdapConfiguration

public LdapConfiguration getLdapConfiguration()
Get the ldap configuration.

Returns:
LdapConfiguration

getLdapGroupMappings

public List<LdapGroupMapping> getLdapGroupMappings()
Method getLdapGroupMappings.

Returns:
List

getRbacManagerImpls

public List<String> getRbacManagerImpls()
Method getRbacManagerImpls.

Returns:
List

getUserManagerImpls

public List<String> getUserManagerImpls()
Method getUserManagerImpls.

Returns:
List

getUsersCacheConfiguration

public CacheConfiguration getUsersCacheConfiguration()
Get the users cache configuration.

Returns:
CacheConfiguration

isMigratedFromRedbackConfiguration

public boolean isMigratedFromRedbackConfiguration()
Get flag to know if redback configuration has been checked/migrated.

Returns:
boolean

isUseUsersCache

public boolean isUseUsersCache()
Get flag to know if redback will use a cache to prevent searching users already found.

Returns:
boolean

removeLdapGroupMapping

public void removeLdapGroupMapping(LdapGroupMapping ldapGroupMapping)
Method removeLdapGroupMapping.

Parameters:
ldapGroupMapping -

removeRbacManagerImpl

public void removeRbacManagerImpl(String string)
Method removeRbacManagerImpl.

Parameters:
string -

removeUserManagerImpl

public void removeUserManagerImpl(String string)
Method removeUserManagerImpl.

Parameters:
string -

setConfigurationProperties

public void setConfigurationProperties(Map configurationProperties)
Set extra properties for redback configuration. String/String.

Parameters:
configurationProperties -

setLdapConfiguration

public void setLdapConfiguration(LdapConfiguration ldapConfiguration)
Set the ldap configuration.

Parameters:
ldapConfiguration -

setLdapGroupMappings

public void setLdapGroupMappings(List<LdapGroupMapping> ldapGroupMappings)
Set ldapGroupMappings.

Parameters:
ldapGroupMappings -

setMigratedFromRedbackConfiguration

public void setMigratedFromRedbackConfiguration(boolean migratedFromRedbackConfiguration)
Set flag to know if redback configuration has been checked/migrated.

Parameters:
migratedFromRedbackConfiguration -

setRbacManagerImpls

public void setRbacManagerImpls(List<String> rbacManagerImpls)
Set the RBAC Manager impls to use.

Parameters:
rbacManagerImpls -

setUseUsersCache

public void setUseUsersCache(boolean useUsersCache)
Set flag to know if redback will use a cache to prevent searching users already found.

Parameters:
useUsersCache -

setUserManagerImpls

public void setUserManagerImpls(List<String> userManagerImpls)
Set the user manager impls to use.

Parameters:
userManagerImpls -

setUsersCacheConfiguration

public void setUsersCacheConfiguration(CacheConfiguration usersCacheConfiguration)
Set the users cache configuration.

Parameters:
usersCacheConfiguration -


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.