|
|||||||||||
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 webdav
Field Summary | |
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 |
private java.lang.String |
path
The path of this space given in the properties file |
Constructor Summary | |
Space()
|
Method Summary | |
void |
addPathElement(java.lang.String pathElement)
Add a path element to the current directory |
boolean |
canRead(DavAccess access)
Check if we are authorized to read this space |
void |
checkPath(org.jasig.portal.security.IPerson person,
java.lang.String currentHierPath,
java.lang.String trustedAttributeName,
java.lang.String trustedAttributeValue)
We check if the is a {...} form in the path. |
java.lang.String |
getKey()
|
java.lang.String |
getLabel()
|
java.lang.String |
getPath()
|
java.lang.String |
getPathElementAt(int index)
Return the current element path at the good index |
int |
getPathSize()
Return the path size |
private void |
makeCurrentPath(java.lang.String currentHierPath)
Constructs the current path using the path attribute |
void |
removePathElement(int index)
Remove an element from the current path |
void |
setKey(java.lang.String key)
|
void |
setLabel(java.lang.String label)
|
void |
setPath(java.lang.String path)
|
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 |
private java.lang.String key
private java.lang.String label
private java.lang.String path
private java.util.Vector currentPath
Constructor Detail |
public Space()
Method Detail |
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.private void makeCurrentPath(java.lang.String currentHierPath)
currentHierPath
- the hierarchy path oh the server. for example, if the server's url is http://URL:PORT/slide, the currentHierPath is "/slide"public java.lang.String getPath()
public void checkPath(org.jasig.portal.security.IPerson person, java.lang.String currentHierPath, java.lang.String trustedAttributeName, java.lang.String trustedAttributeValue)
person
- the connected personcurrentHierPath
- the hierarchy path oh the server. for example, if the server's url is http://URL:PORT/slide, the currentHierPath is "/slide"trustedAttributeName
- 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(DavAccess access) throws ApplicationException
access
- the object used to access the webdav
ApplicationException
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |