|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.esupportail.portal.channels.CWebdav.config.Space
Id: Space.java,v 1.0 9 juil. 2004
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: Space
Original Author: Yohan Colmant
This represents a file space on the server
Field Summary | |
private ServerAccess |
access
The attribute used to access the server |
private java.lang.String |
aclGroupPrefix
The group prefix for the ACL |
private java.lang.String |
aclNamespace
The ACL namespace |
private java.lang.String |
aclUserPrefix
The user prefix for the ACL |
private java.lang.String |
actionType
The channel action type |
static java.lang.String |
AUTH_ASKED
ASKED authentication |
static java.lang.String |
AUTH_CAS
CAS authentication |
static java.lang.String |
AUTH_TRUSTED
TRUSTED authentication |
private java.lang.String |
authenticationMode
The authentication mode. |
private java.util.ArrayList |
authorizations
The authorization list for this space |
private AbstractChannelAction |
channelAction
To manage the actions in funtion of the access class |
private java.lang.String |
channelActionClass
The class name used to manage the actions |
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.util.Vector |
currentPath
The currentPath used |
private java.lang.String |
key
The space key |
private java.lang.String |
label
The label of this space |
protected static org.apache.commons.logging.Log |
log
Logger object |
private java.lang.String |
login
The trusted login if trusted authentication. |
private java.lang.String |
password
The password if trusted authentication, or is asked authentication |
private boolean |
personnalSpace
If this space is a personnal one |
private java.lang.String |
serverAccessClass
The class name used to manage the actions |
private java.lang.String |
serverType
The server type |
private java.lang.String |
url
The server url |
Constructor Summary | |
Space()
|
Method Summary | |
void |
addPathElement(java.lang.String pathElement)
Add a path element to the current directory |
boolean |
canRead(ServerAccess access)
Check if we are authorized to read this space |
void |
checkPath(org.jasig.portal.security.IPerson person,
java.lang.String trustedAttributeName,
java.lang.String trustedAttributeValue)
We check if the is a {...} form in the path. |
java.lang.String |
getAclGroupPrefix()
|
java.lang.String |
getAclNamespace()
|
java.lang.String |
getAclUserPrefix()
|
java.lang.String |
getActionType()
|
java.util.ArrayList |
getAuthorization()
return the authorization list |
java.lang.String |
getChannelActionClass()
|
AbstractChannelAction |
getChannelActionObject()
Get the channel action object |
java.lang.String |
getCifsDisablePlainTextPassword()
|
java.lang.String |
getCifsDomain()
|
java.lang.String |
getCifsResolveOrder()
|
java.lang.String |
getKey()
|
java.lang.String |
getLabel()
|
java.lang.String |
getLogin()
|
java.lang.String |
getPassword()
|
java.lang.String |
getPath()
|
private java.lang.String |
getPath(java.util.Vector currentPath)
Return the path due to a current path vector |
java.lang.String |
getPathElementAt(int index)
Return the current element path at the good index |
int |
getPathSize()
Return the path size |
java.lang.String |
getServerAccessClass()
|
ServerAccess |
getServerAccessObject()
Return the object used to access the server |
java.lang.String |
getServerType()
|
java.lang.String |
getUrl()
|
boolean |
isAskedAuthentication()
If the selected authentication is ASKED |
boolean |
isCasAuthentication()
If the selected authentication is CAS |
boolean |
isPersonnalSpace()
|
boolean |
isTrustedAuthentication()
If the selected authentication is TRUSTED |
void |
removePathElement(int index)
Remove an element from the current path |
void |
setAclGroupPrefix(java.lang.String aclGroupPrefix)
|
void |
setAclNamespace(java.lang.String aclNamespace)
|
void |
setAclUserPrefix(java.lang.String aclUserPrefix)
|
void |
setActionType(java.lang.String actionType)
|
void |
setAuthenticationMode(java.lang.String authenticationMode)
|
void |
setAuthorization(AuthorizationSpaceParameter authorization)
add a new authorization to the list |
void |
setChannelActionClass(java.lang.String channelActionClass)
|
boolean |
setChannelActionObject(java.util.ArrayList spaces,
ChannelConfiguration config,
BufferAction buffer,
java.lang.String userPortalLogin,
java.util.Vector userGroups)
Set the object used to manage the actions of the channel |
void |
setCifsDisablePlainTextPassword(java.lang.String cifsDisablePlainTextPassword)
|
void |
setCifsDomain(java.lang.String cifsDomain)
|
void |
setCifsResolveOrder(java.lang.String cifsResolveOrder)
|
void |
setKey(java.lang.String key)
|
void |
setLabel(java.lang.String label)
|
void |
setLogin(java.lang.String login)
|
void |
setPassword(java.lang.String password)
|
void |
setPath(java.lang.String path)
|
void |
setPersonnalSpace(boolean personnalSpace)
|
void |
setServerAccessClass(java.lang.String serverAccessClass)
|
boolean |
setServerAccessObject()
Set the server access object for this space |
void |
setServerAccessObject(ServerAccess access)
Set the server access object |
void |
setServerType(java.lang.String serverType)
|
void |
setUrl(java.lang.String url)
|
boolean |
supportsAcl()
|
java.lang.String |
toString()
Return a String representation of this space |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final org.apache.commons.logging.Log log
private java.lang.String key
private java.lang.String label
private java.lang.String url
private java.lang.String serverType
private java.lang.String actionType
private java.lang.String channelActionClass
private java.lang.String serverAccessClass
private java.lang.String authenticationMode
public static final java.lang.String AUTH_CAS
public static final java.lang.String AUTH_TRUSTED
public static final java.lang.String AUTH_ASKED
private java.lang.String login
private java.lang.String password
private java.util.Vector currentPath
private ServerAccess access
private AbstractChannelAction channelAction
private java.lang.String aclNamespace
private java.lang.String aclUserPrefix
private java.lang.String aclGroupPrefix
private java.util.ArrayList authorizations
private java.lang.String cifsDomain
private java.lang.String cifsResolveOrder
private java.lang.String cifsDisablePlainTextPassword
private boolean personnalSpace
Constructor Detail |
public Space()
Method Detail |
public java.util.ArrayList getAuthorization()
public void setAuthorization(AuthorizationSpaceParameter authorization)
authorization
- the authorization to addpublic java.lang.String getCifsDisablePlainTextPassword()
public void setCifsDisablePlainTextPassword(java.lang.String cifsDisablePlainTextPassword)
cifsDisablePlainTextPassword
- The cifsDisablePlainTextPassword to set.public java.lang.String getCifsDomain()
public void setCifsDomain(java.lang.String cifsDomain)
cifsDomain
- The cifsDomain to set.public java.lang.String getCifsResolveOrder()
public void setCifsResolveOrder(java.lang.String cifsResolveOrder)
cifsResolveOrder
- The cifsResolveOrder to set.public java.lang.String getActionType()
public void setActionType(java.lang.String actionType)
actionType
- The actionType to set.public java.lang.String getServerType()
public void setServerType(java.lang.String serverType)
serverType
- The serverType to set.public java.lang.String getAclGroupPrefix()
public void setAclGroupPrefix(java.lang.String aclGroupPrefix)
aclGroupPrefix
- The aclGroupPrefix to set.public java.lang.String getAclNamespace()
public void setAclNamespace(java.lang.String aclNamespace)
aclNamespace
- The aclNamespace to set.public boolean supportsAcl()
public java.lang.String getAclUserPrefix()
public void setAclUserPrefix(java.lang.String aclUserPrefix)
aclUserPrefix
- The aclUserPrefix to set.public boolean isPersonnalSpace()
public void setPersonnalSpace(boolean personnalSpace)
personnalSpace
- The personnalSpace to set.public boolean isCasAuthentication() throws PropertiesException
PropertiesException
public boolean isTrustedAuthentication() throws PropertiesException
PropertiesException
public boolean isAskedAuthentication() throws PropertiesException
PropertiesException
public java.lang.String getLogin()
public void setLogin(java.lang.String login)
login
- The login to set.public java.lang.String getPassword() throws PropertiesException
PropertiesException
public void setPassword(java.lang.String password)
password
- The trustedPassword to set.public java.lang.String getUrl() throws PropertiesException
PropertiesException
public void setUrl(java.lang.String url)
url
- The url to set.public void setAuthenticationMode(java.lang.String authenticationMode)
authenticationMode
- The authenticationMode to set.public java.lang.String getServerAccessClass()
public void setServerAccessClass(java.lang.String serverAccessClass)
serverAccessClass
- The serverAccessClass to set.public java.lang.String getChannelActionClass()
public void setChannelActionClass(java.lang.String channelActionClass)
channelActionClass
- The channelActionClass to set.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key to set.public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- The label to set.public void setPath(java.lang.String path)
path
- The path to set.public java.lang.String getPath()
private java.lang.String getPath(java.util.Vector currentPath)
currentPath
-
public void checkPath(org.jasig.portal.security.IPerson person, java.lang.String trustedAttributeName, java.lang.String trustedAttributeValue)
person
- the connected persontrustedAttributeName
- if there is a trusted attribute, this is the name of this onetrustedAttributeValue
- if there is a trusted attribute, this is the value of this onepublic void addPathElement(java.lang.String pathElement)
pathElement
- public void removePathElement(int index)
index
- public int getPathSize()
public java.lang.String getPathElementAt(int index)
index
- the selected index
public boolean canRead(ServerAccess access)
access
- the object used to access the server
public boolean setServerAccessObject() throws PropertiesException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.net.MalformedURLException, ApplicationException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.net.MalformedURLException
ApplicationException
PropertiesException
public ServerAccess getServerAccessObject()
public void setServerAccessObject(ServerAccess access)
access
- public boolean setChannelActionObject(java.util.ArrayList spaces, ChannelConfiguration config, BufferAction buffer, java.lang.String userPortalLogin, java.util.Vector userGroups) throws ChannelException
spaces
- the spaces usedconfig
- the config classbuffer
- the buffer used to get for example the clipboarduserPortalLogin
- The user login in the portaluserGroups
- The groups of the user in the portal
ChannelException
public AbstractChannelAction getChannelActionObject()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |