org.esupportail.portal.channels.CStockage.config
Class ChannelConfiguration

java.lang.Object
  extended byorg.esupportail.portal.channels.CStockage.config.ChannelConfiguration

public class ChannelConfiguration
extends java.lang.Object


Field Summary
private  boolean allowDelNonEmptyFolder
           
private  java.lang.String allowedRegexp
           
private  java.util.Hashtable channelActions
           
private  java.util.ArrayList checkedAttributes
           
private static ChannelConfiguration config
          The instance of the channel configuration
private  java.lang.String configFilePath
           
private  boolean confirmDel
           
private  int count
           
private  boolean httpsRedirection
           
private  java.util.Vector invisibleRegexp
           
private  java.lang.String ldapPeople
           
private  java.lang.String ldapServerUrl
           
private  java.lang.String ldapUserDisplayNameAttribute
           
private  java.lang.String ldapUserKeyAttribute
           
protected static Log log
          Logger object
private  org.esupportail.portal.utils.database.Database pool
           
private  java.util.Hashtable serverAccess
           
private  java.util.ArrayList spaces
           
private  java.lang.String spacesPersonalization
           
private  java.lang.String usernameAttribute
           
 
Constructor Summary
private ChannelConfiguration()
          Constructor
 
Method Summary
 void addInvisibleRegexp(java.lang.String regexp)
           
 boolean getAllowDelNonEmptyFolder()
           
 java.lang.String getAllowedRegexp()
           
 java.util.Hashtable getChannelActions()
          return the channel actions list
 java.util.ArrayList getCheckedAttributes()
          Return the list of checked attributes
 boolean getConfirmDel()
           
 java.util.ArrayList getDefaultSpaces()
          return the spaces list
static ChannelConfiguration getInstance()
          Get an instance of the channel configuration
 java.util.Vector getInvisibleRegexp()
           
 java.lang.String getLdapPeople()
           
 java.lang.String getLdapServerUrl()
           
 java.lang.String getLdapUserDisplayNameAttribute()
           
 java.lang.String getLdapUserKeyAttribute()
           
 org.esupportail.portal.utils.database.Database getPool()
          return the pools list
 java.util.Hashtable getServerAccess()
          return the server access list
 java.lang.String getUsernameAttribute()
           
 boolean isHttpsRedirection()
           
 boolean isSpacesPersonalization()
           
 void setAllowDelNonEmptyFolder(java.lang.String allowDelNonEmptyFolder)
           
 void setAllowedRegexp(java.lang.String allowedRegexp)
           
 void setChannelActions(ChannelActionClass action)
          add a new channel action to the list
 void setCheckedAttributes(CheckedAttribute checkedAttribute)
          add a new checked attribute to the list
 void setConfirmDel(java.lang.String confirmDel)
           
 void setHttpsRedirection(java.lang.String httpsRedirection)
           
 void setLdapPeople(java.lang.String ldapPeople)
           
 void setLdapServerUrl(java.lang.String ldapServerUrl)
           
 void setLdapUserDisplayNameAttribute(java.lang.String ldapUserDisplayNameAttribute)
           
 void setLdapUserKeyAttribute(java.lang.String ldapUserKeyAttribute)
           
 void setPool(org.esupportail.portal.utils.database.Database pool)
          set the database pool
 void setServerAccess(ServerAccessClass access)
          add a new server access to the list
 void setSpaces(Space space)
          add a new space to the list
 void setSpacesPersonalization(java.lang.String spacesPersonalization)
           
 void setUsernameAttribute(java.lang.String usernameAttribute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Log log
Logger object


spacesPersonalization

private java.lang.String spacesPersonalization

serverAccess

private java.util.Hashtable serverAccess

channelActions

private java.util.Hashtable channelActions

checkedAttributes

private java.util.ArrayList checkedAttributes

count

private int count

spaces

private java.util.ArrayList spaces

ldapServerUrl

private java.lang.String ldapServerUrl

ldapPeople

private java.lang.String ldapPeople

ldapUserKeyAttribute

private java.lang.String ldapUserKeyAttribute

ldapUserDisplayNameAttribute

private java.lang.String ldapUserDisplayNameAttribute

pool

private org.esupportail.portal.utils.database.Database pool

usernameAttribute

private java.lang.String usernameAttribute

httpsRedirection

private boolean httpsRedirection

confirmDel

private boolean confirmDel

allowDelNonEmptyFolder

private boolean allowDelNonEmptyFolder

invisibleRegexp

private java.util.Vector invisibleRegexp

allowedRegexp

private java.lang.String allowedRegexp

configFilePath

private java.lang.String configFilePath

config

private static ChannelConfiguration config
The instance of the channel configuration

Constructor Detail

ChannelConfiguration

private ChannelConfiguration()
                      throws PropertiesException
Constructor

Throws:
PropertiesException
Method Detail

getInstance

public static ChannelConfiguration getInstance()
                                        throws PropertiesException
Get an instance of the channel configuration

Returns:
an instance of the channel configuration
Throws:
PropertiesException

getPool

public org.esupportail.portal.utils.database.Database getPool()
                                                       throws PropertiesException
return the pools list

Returns:
the pools list
Throws:
PropertiesException

setPool

public void setPool(org.esupportail.portal.utils.database.Database pool)
set the database pool

Parameters:
pool - the database pool

isSpacesPersonalization

public boolean isSpacesPersonalization()
Returns:
Returns the spacesPersonalization.

setSpacesPersonalization

public void setSpacesPersonalization(java.lang.String spacesPersonalization)
Parameters:
spacesPersonalization - The spacesPersonalization to set.

getDefaultSpaces

public java.util.ArrayList getDefaultSpaces()
                                     throws PropertiesException
return the spaces list

Returns:
the spaces list
Throws:
PropertiesException

setSpaces

public void setSpaces(Space space)
add a new space to the list

Parameters:
space - the space to add

getServerAccess

public java.util.Hashtable getServerAccess()
                                    throws PropertiesException
return the server access list

Returns:
the server access list
Throws:
PropertiesException

setServerAccess

public void setServerAccess(ServerAccessClass access)
add a new server access to the list

Parameters:
access - the server access to add

setCheckedAttributes

public void setCheckedAttributes(CheckedAttribute checkedAttribute)
add a new checked attribute to the list

Parameters:
checkedAttribute - the checked attribute to add

getCheckedAttributes

public java.util.ArrayList getCheckedAttributes()
Return the list of checked attributes

Returns:
the list of checked attributes

getChannelActions

public java.util.Hashtable getChannelActions()
                                      throws PropertiesException
return the channel actions list

Returns:
the channel actions list
Throws:
PropertiesException

setChannelActions

public void setChannelActions(ChannelActionClass action)
add a new channel action to the list

Parameters:
action - the channel action to add

getLdapPeople

public java.lang.String getLdapPeople()
Returns:
Returns the ldapPeople.

setLdapPeople

public void setLdapPeople(java.lang.String ldapPeople)
Parameters:
ldapPeople - The ldapPeople to set.

getLdapServerUrl

public java.lang.String getLdapServerUrl()
Returns:
Returns the ldapServerUrl.

setLdapServerUrl

public void setLdapServerUrl(java.lang.String ldapServerUrl)
Parameters:
ldapServerUrl - The ldapServerUrl to set.

getLdapUserDisplayNameAttribute

public java.lang.String getLdapUserDisplayNameAttribute()
Returns:
Returns the ldapUserDisplayNameAttribute.

setLdapUserDisplayNameAttribute

public void setLdapUserDisplayNameAttribute(java.lang.String ldapUserDisplayNameAttribute)
Parameters:
ldapUserDisplayNameAttribute - The ldapUserDisplayNameAttribute to set.

getLdapUserKeyAttribute

public java.lang.String getLdapUserKeyAttribute()
Returns:
Returns the ldapUserKeyAttribute.

setLdapUserKeyAttribute

public void setLdapUserKeyAttribute(java.lang.String ldapUserKeyAttribute)
Parameters:
ldapUserKeyAttribute - The ldapUserKeyAttribute to set.

getAllowDelNonEmptyFolder

public boolean getAllowDelNonEmptyFolder()
Returns:
Returns the allowDelNonEmptyFolder.

setAllowDelNonEmptyFolder

public void setAllowDelNonEmptyFolder(java.lang.String allowDelNonEmptyFolder)
Parameters:
allowDelNonEmptyFolder - The allowDelNonEmptyFolder to set.

getConfirmDel

public boolean getConfirmDel()

setConfirmDel

public void setConfirmDel(java.lang.String confirmDel)
Parameters:
confirmDel - The confirmDel to set.

getUsernameAttribute

public java.lang.String getUsernameAttribute()
                                      throws PropertiesException
Returns:
Returns the usernameAttribute.
Throws:
PropertiesException

setUsernameAttribute

public void setUsernameAttribute(java.lang.String usernameAttribute)
Parameters:
usernameAttribute - The usernameAttribute to set.

isHttpsRedirection

public boolean isHttpsRedirection()
Returns:
Returns the httpsRedirection.

setHttpsRedirection

public void setHttpsRedirection(java.lang.String httpsRedirection)
Parameters:
httpsRedirection - The httpsRedirection to set.

getInvisibleRegexp

public java.util.Vector getInvisibleRegexp()
                                    throws PropertiesException
Returns:
Returns the invisibleRexexp.
Throws:
PropertiesException

addInvisibleRegexp

public void addInvisibleRegexp(java.lang.String regexp)
Parameters:
regexp - The invisibleRexexp to set.

getAllowedRegexp

public java.lang.String getAllowedRegexp()
Returns:
Returns the allowedRegexp.

setAllowedRegexp

public void setAllowedRegexp(java.lang.String allowedRegexp)
Parameters:
allowedRegexp - The allowedRegexp to set.