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

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

public class Server
extends java.lang.Object

Id: Server.java,v 1.0 14 avril 2005
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: Server
Original Author: Yohan Colmant
This represents a server in the configuration file


Field Summary
private  java.lang.String aclGroupPrefix
          The group prefix for the ACL
private  java.lang.String aclNamespace
          The ACL namespace
private  java.lang.String aclUportalGroup
          The uPortal group node for the ACL
private  java.lang.String aclUserPrefix
          The user prefix for the ACL
private static java.lang.String AUTH_ASKED
          ASKED authentication
private static java.lang.String AUTH_CAS
          CAS authentication
private static java.lang.String AUTH_TRUSTED
          TRUSTED authentication
private  java.lang.String authenticationMode
          The authentication mode.
private  java.lang.String cifsDisablePlainTextPassword
          The cifs disable plain text password
private  java.lang.String cifsDomain
          The cifs domain
private  java.lang.String cifsResolveOrder
          The Cifs resolve order
private  java.lang.String id
          The server id
private  java.lang.String initialLoginFromTheConfigurationFile
          The login if trusted authentication
protected static Log log
          Logger object
private  java.lang.String login
          The login if trusted authentication
private  boolean loginIsFromConfigurationFile
          If the login is from the configuration file
private  java.lang.String manageAcl
          If this space manage the acl for the sharing or for the injac mode
private  java.lang.String name
          The name of the server
private  java.lang.String nfsGidNumber
          The NFS Gid Number
 java.lang.String nfsUidNumber
          The NFS Uid Number
private  java.lang.String password
          The password if trusted authentication, or is asked authentication
private  java.lang.String serverAccessClass
          The class name used to manage the actions
private  java.lang.String serverType
          The server type
private  java.util.ArrayList spaces
          The spaces list into this server
private  java.lang.String url
          The server url
 
Constructor Summary
Server()
           
 
Method Summary
 void addSpace(Space space)
           
 void checkAttribute(java.lang.String attributeName, org.jasig.portal.security.IPerson person)
          we look for a {...} form in the attribute.
 java.lang.Object clone()
          Clone this object
 boolean equals(java.lang.Object o)
          Compare this to another object
 java.lang.String getAclGroupPrefix()
           
 java.lang.String getAclNamespace()
           
 java.lang.String getAclUportalGroup()
           
 java.lang.String getAclUserPrefix()
           
 java.lang.String getAuthenticationMode()
           
 java.lang.String getCifsDisablePlainTextPassword()
           
 java.lang.String getCifsDomain()
           
 java.lang.String getCifsResolveOrder()
           
 java.lang.String getId()
           
 java.lang.String getInitialLoginFromTheConfigurationFile()
           
 java.lang.StringBuffer getLocalXmlBegin()
          Get the xml in the configuration file style
 java.lang.StringBuffer getLocalXmlEnd()
          Get the xml in the configuration file style
 java.lang.String getLogin()
           
 java.lang.String getManageAcl()
           
 java.lang.String getName()
           
 java.lang.String getNfsGidNumber()
           
 java.lang.String getNfsUidNumber()
           
 java.lang.String getPassword()
           
 java.lang.String getServerAccessClass()
           
 java.lang.String getServerType()
           
 java.util.ArrayList getSpaces()
           
 java.lang.String getUrl()
           
 java.lang.String getXml()
          Get the xml in the configuration file style
 boolean hasAclParameterSet()
           
 void initServerAccessObjectForEachSpace(org.jasig.portal.security.IPerson person)
          init the server access object for this space
 boolean isAskedAuthentication()
          If the selected authentication is ASKED
 boolean isCasAuthentication()
          If the selected authentication is CAS
 boolean isLoginIsFromConfigurationFile()
           
 boolean isTrustedAuthentication()
          If the selected authentication is TRUSTED
 boolean managesAcl()
           
 void setAclGroupPrefix(java.lang.String aclGroupPrefix)
           
 void setAclNamespace(java.lang.String aclNamespace)
           
 void setAclUportalGroup(java.lang.String aclUportalGroup)
           
 void setAclUserPrefix(java.lang.String aclUserPrefix)
           
 void setAuthenticationMode(java.lang.String authenticationMode)
           
 void setCifsDisablePlainTextPassword(java.lang.String cifsDisablePlainTextPassword)
           
 void setCifsDomain(java.lang.String cifsDomain)
           
 void setCifsResolveOrder(java.lang.String cifsResolveOrder)
           
 void setId(java.lang.String id)
           
 void setInitialLoginFromTheConfigurationFile(java.lang.String initialLoginFromTheConfigurationFile)
           
 void setLogin(java.lang.String login)
           
 void setManageAcl(java.lang.String manageAcl)
           
 void setName(java.lang.String name)
           
 void setNfsGidNumber(java.lang.String nfsGidNumber)
           
 void setNfsUidNumber(java.lang.String nfsUidNumber)
           
 void setPassword(java.lang.String password)
           
 void setServerAccessClass(java.lang.String serverAccessClass)
           
 void setServerType(java.lang.String serverType)
           
 void setSpaces(java.util.ArrayList spaces)
           
 void setUrl(java.lang.String url)
           
 java.lang.String toString()
          Return a String representation of this space
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final Log log
Logger object


AUTH_CAS

private static final java.lang.String AUTH_CAS
CAS authentication

See Also:
Constant Field Values

AUTH_TRUSTED

private static final java.lang.String AUTH_TRUSTED
TRUSTED authentication

See Also:
Constant Field Values

AUTH_ASKED

private static final java.lang.String AUTH_ASKED
ASKED authentication

See Also:
Constant Field Values

spaces

private java.util.ArrayList spaces
The spaces list into this server


name

private java.lang.String name
The name of the server


id

private java.lang.String id
The server id


url

private java.lang.String url
The server url


serverType

private java.lang.String serverType
The server type


authenticationMode

private java.lang.String authenticationMode
The authentication mode. "cas" or "trusted"


login

private java.lang.String login
The login if trusted authentication


initialLoginFromTheConfigurationFile

private java.lang.String initialLoginFromTheConfigurationFile
The login if trusted authentication


loginIsFromConfigurationFile

private boolean loginIsFromConfigurationFile
If the login is from the configuration file


password

private java.lang.String password
The password if trusted authentication, or is asked authentication


manageAcl

private java.lang.String manageAcl
If this space manage the acl for the sharing or for the injac mode


aclNamespace

private java.lang.String aclNamespace
The ACL namespace


aclUserPrefix

private java.lang.String aclUserPrefix
The user prefix for the ACL


aclGroupPrefix

private java.lang.String aclGroupPrefix
The group prefix for the ACL


aclUportalGroup

private java.lang.String aclUportalGroup
The uPortal group node for the ACL


cifsDomain

private java.lang.String cifsDomain
The cifs domain


cifsResolveOrder

private java.lang.String cifsResolveOrder
The Cifs resolve order


cifsDisablePlainTextPassword

private java.lang.String cifsDisablePlainTextPassword
The cifs disable plain text password


nfsUidNumber

public java.lang.String nfsUidNumber
The NFS Uid Number


nfsGidNumber

private java.lang.String nfsGidNumber
The NFS Gid Number


serverAccessClass

private java.lang.String serverAccessClass
The class name used to manage the actions

Constructor Detail

Server

public Server()
Method Detail

getSpaces

public java.util.ArrayList getSpaces()
Returns:
Returns the spaces.

addSpace

public void addSpace(Space space)
Parameters:
space - The space to set.

setSpaces

public void setSpaces(java.util.ArrayList spaces)
Parameters:
spaces - The spaces to set.

managesAcl

public boolean managesAcl()
                   throws PropertiesException
Returns:
Returns the manageAcl.
Throws:
PropertiesException

setManageAcl

public void setManageAcl(java.lang.String manageAcl)
Parameters:
manageAcl - The manageAcl to set.

getManageAcl

public java.lang.String getManageAcl()
Returns:
Returns the manageAcl.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getCifsDisablePlainTextPassword

public java.lang.String getCifsDisablePlainTextPassword()
Returns:
Returns the cifsDisablePlainTextPassword.

setCifsDisablePlainTextPassword

public void setCifsDisablePlainTextPassword(java.lang.String cifsDisablePlainTextPassword)
Parameters:
cifsDisablePlainTextPassword - The cifsDisablePlainTextPassword to set.

getCifsDomain

public java.lang.String getCifsDomain()
Returns:
Returns the cifsDomain.

setCifsDomain

public void setCifsDomain(java.lang.String cifsDomain)
Parameters:
cifsDomain - The cifsDomain to set.

getCifsResolveOrder

public java.lang.String getCifsResolveOrder()
Returns:
Returns the cifsResolveOrder.

setCifsResolveOrder

public void setCifsResolveOrder(java.lang.String cifsResolveOrder)
Parameters:
cifsResolveOrder - The cifsResolveOrder to set.

getServerType

public java.lang.String getServerType()
Returns:
Returns the serverType.

setServerType

public void setServerType(java.lang.String serverType)
Parameters:
serverType - The serverType to set.

getAclUportalGroup

public java.lang.String getAclUportalGroup()
Returns:
Returns the aclUportalGroup.

setAclUportalGroup

public void setAclUportalGroup(java.lang.String aclUportalGroup)
Parameters:
aclUportalGroup - The aclUportalGroup to set.

getAclGroupPrefix

public java.lang.String getAclGroupPrefix()
Returns:
Returns the aclGroupPrefix.

setAclGroupPrefix

public void setAclGroupPrefix(java.lang.String aclGroupPrefix)
Parameters:
aclGroupPrefix - The aclGroupPrefix to set.

getAclNamespace

public java.lang.String getAclNamespace()
Returns:
Returns the aclNamespace.

setAclNamespace

public void setAclNamespace(java.lang.String aclNamespace)
Parameters:
aclNamespace - The aclNamespace to set.

hasAclParameterSet

public boolean hasAclParameterSet()
Returns:
Returns the supportAcl.

getAclUserPrefix

public java.lang.String getAclUserPrefix()
Returns:
Returns the aclUserPrefix.

setAclUserPrefix

public void setAclUserPrefix(java.lang.String aclUserPrefix)
Parameters:
aclUserPrefix - The aclUserPrefix to set.

isCasAuthentication

public boolean isCasAuthentication()
                            throws PropertiesException
If the selected authentication is CAS

Returns:
trus is cas is selected
Throws:
PropertiesException

isTrustedAuthentication

public boolean isTrustedAuthentication()
                                throws PropertiesException
If the selected authentication is TRUSTED

Returns:
true if trusted is selected
Throws:
PropertiesException

isAskedAuthentication

public boolean isAskedAuthentication()
                              throws PropertiesException
If the selected authentication is ASKED

Returns:
true if asked is selected
Throws:
PropertiesException

getLogin

public java.lang.String getLogin()
Returns:
Returns the login.

setLogin

public void setLogin(java.lang.String login)
Parameters:
login - The login to set.

setInitialLoginFromTheConfigurationFile

public void setInitialLoginFromTheConfigurationFile(java.lang.String initialLoginFromTheConfigurationFile)
Parameters:
initialLoginFromTheConfigurationFile - The login to set.

isLoginIsFromConfigurationFile

public boolean isLoginIsFromConfigurationFile()
Returns:
Returns the loginIsFromConfigurationFile.

getInitialLoginFromTheConfigurationFile

public java.lang.String getInitialLoginFromTheConfigurationFile()
Returns:
Returns the initialLoginFromTheConfigurationFile.

getPassword

public java.lang.String getPassword()
                             throws PropertiesException
Returns:
Returns the password.
Throws:
PropertiesException

setPassword

public void setPassword(java.lang.String password)
Parameters:
password - The trustedPassword to set.

getUrl

public java.lang.String getUrl()
                        throws PropertiesException
Returns:
Returns the url.
Throws:
PropertiesException

setUrl

public void setUrl(java.lang.String url)
Parameters:
url - The url to set.

setAuthenticationMode

public void setAuthenticationMode(java.lang.String authenticationMode)
Parameters:
authenticationMode - The authenticationMode to set.

getAuthenticationMode

public java.lang.String getAuthenticationMode()
Returns:
Returns the authenticationMode.

getServerAccessClass

public java.lang.String getServerAccessClass()
Returns:
Returns the serverAccessClass.

setServerAccessClass

public void setServerAccessClass(java.lang.String serverAccessClass)
Parameters:
serverAccessClass - The serverAccessClass to set.

getId

public java.lang.String getId()
Returns:
Returns the id.

setId

public void setId(java.lang.String id)
Parameters:
id - The id to set.

checkAttribute

public void checkAttribute(java.lang.String attributeName,
                           org.jasig.portal.security.IPerson person)
we look for a {...} form in the attribute. If yes, we replace it with the real value

Parameters:
attributeName - to check
person - uPortal person object

getNfsGidNumber

public java.lang.String getNfsGidNumber()
Returns:
Returns the nfsGidNumber.

setNfsGidNumber

public void setNfsGidNumber(java.lang.String nfsGidNumber)
Parameters:
nfsGidNumber - The nfsGidNumber to set.

getNfsUidNumber

public java.lang.String getNfsUidNumber()
Returns:
Returns the nfsUidNumber.

setNfsUidNumber

public void setNfsUidNumber(java.lang.String nfsUidNumber)
Parameters:
nfsUidNumber - The nfsUidNumber to set.

initServerAccessObjectForEachSpace

public void initServerAccessObjectForEachSpace(org.jasig.portal.security.IPerson person)
                                        throws java.net.MalformedURLException,
                                               PropertiesException
init the server access object for this space

Parameters:
person - the uportal person object
Throws:
java.net.MalformedURLException
PropertiesException

equals

public boolean equals(java.lang.Object o)
Compare this to another object

Parameters:
o - object to compare

toString

public java.lang.String toString()
Return a String representation of this space


clone

public java.lang.Object clone()
Clone this object

Returns:
a clone of this object

getLocalXmlBegin

public java.lang.StringBuffer getLocalXmlBegin()
Get the xml in the configuration file style

Returns:
the xml in the configuration file style

getLocalXmlEnd

public java.lang.StringBuffer getLocalXmlEnd()
Get the xml in the configuration file style

Returns:
the xml in the configuration file style

getXml

public java.lang.String getXml()
Get the xml in the configuration file style

Returns:
the xml in the configuration file style