|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.esupportail.portal.channels.CWebdav.provider.DavAccess
Id: DavAccess.java,v 1.0 14 avr. 2004
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: DavAccess
Original Author: Yohan Colmant
Interface for the dav access
| Constructor Summary | |
DavAccess()
|
|
| Method Summary | |
abstract boolean |
canPaste(java.lang.String clipboardPath,
java.util.Vector clipboard,
java.lang.String curentDirPath)
Check if we can paste here |
abstract boolean |
canRead(java.lang.String path)
Check if we are authorized to read this resource |
abstract boolean |
canRead(java.lang.String resourceName,
java.lang.String path)
Check if we are authorized to read this resource |
abstract void |
connect()
Connect this object to the server |
abstract boolean |
copy(java.lang.String resource,
java.lang.String fromPath,
java.lang.String toPath)
Copy method |
abstract boolean |
createDir(java.lang.String name,
java.lang.String path)
Create the directory given in argument |
abstract boolean |
delete(java.lang.String file,
java.lang.String path)
Delete the resource given in argument |
abstract void |
disconnect()
Disconnection of the server |
abstract ChannelWebdavResource |
dowload(java.lang.String name,
java.lang.String path)
Return the resource associated to the file to download |
abstract boolean |
exists(java.lang.String fullPath)
Check is the resource exists |
abstract boolean |
exists(java.lang.String resourceName,
java.lang.String path)
Check is the resource exists |
abstract java.lang.String |
getLogin()
Give the user login |
abstract java.lang.String |
getPassword()
Give the user password |
abstract java.lang.String |
getRedirectionPath(java.lang.String path)
This method is used to know the redirected path when we have an url in this form: http://SERVER:PORT/~context |
abstract java.lang.String |
getServerCurrentHierPath()
Return the hierarchy path oh the server. for example, if the server's url is http://URL:PORT/slide, the currentHierPath is "/slide" |
abstract java.lang.String |
getUri()
Give the uri webdav access |
abstract void |
init(java.lang.String uri,
java.lang.String login,
java.lang.String password)
This method initialize the parameters. |
abstract boolean |
isDirectory(java.lang.String name,
java.lang.String path)
Check if the resource named name is a directory in the path given |
abstract boolean |
isEmpty(java.lang.String dir,
java.lang.String path)
Check if the directory named dir is empty or not. |
abstract ChannelWebdavResource[] |
ls(java.lang.String fullPath)
List all ressources for a given path |
abstract ChannelWebdavResource[] |
ls(java.lang.String path,
java.lang.String targetDirectory)
List all ressources for a given path |
abstract boolean |
move(java.lang.String resource,
java.lang.String fromPath,
java.lang.String toPath)
Move method |
abstract boolean |
rename(java.lang.String oldName,
java.lang.String newName,
java.lang.String path)
Rename the resource |
abstract boolean |
upload(org.jasig.portal.MultipartDataSource inputFile,
java.lang.String path)
Upload a file to the path given in argument |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DavAccess()
| Method Detail |
public abstract java.lang.String getLogin()
public abstract java.lang.String getPassword()
public abstract java.lang.String getUri()
public abstract void init(java.lang.String uri,
java.lang.String login,
java.lang.String password)
throws java.net.MalformedURLException
uri - webdav urilogin - connexion loginpassword - connexioàn password
java.net.MalformedURLException
public abstract java.lang.String getServerCurrentHierPath()
throws java.net.MalformedURLException
java.net.MalformedURLException
public abstract void connect()
throws ServerException
ServerException
public abstract void disconnect()
throws ServerException
ServerException
public abstract ChannelWebdavResource[] ls(java.lang.String fullPath)
throws NotExistsResourceException,
ApplicationException,
NotAuthorizedException
fullPath - directory path on the dav server
NotExistsResourceException
ApplicationException
NotAuthorizedException
public abstract ChannelWebdavResource[] ls(java.lang.String path,
java.lang.String targetDirectory)
throws NotExistsResourceException,
ApplicationException,
NotAuthorizedException
path - directory path on the dav servertargetDirectory - the directory name to list
NotExistsResourceException
ApplicationException
NotAuthorizedException
public abstract boolean upload(org.jasig.portal.MultipartDataSource inputFile,
java.lang.String path)
throws ApplicationException,
ServerException,
NotExistsResourceException,
StillExistsException,
BadFormatException,
UploadException,
EmptyFileOnUploadException,
OverQuotaException,
NotAuthorizedDeleteException,
NotAuthorizedUploadException,
NotAuthorizedException
inputFile - the input filepath - the path
ApplicationException
ServerException
NotExistsResourceException
StillExistsException
BadFormatException
UploadException
EmptyFileOnUploadException
OverQuotaException
NotAuthorizedDeleteException
NotAuthorizedUploadException
NotAuthorizedException
public abstract boolean delete(java.lang.String file,
java.lang.String path)
throws ApplicationException,
DeleteException,
NotAuthorizedDeleteException,
NotExistsResourceException,
NotAuthorizedException
file - file/directory to deletepath - path where is file/directory
ApplicationException
DeleteException
NotAuthorizedDeleteException
NotExistsResourceException
NotAuthorizedException
public abstract boolean rename(java.lang.String oldName,
java.lang.String newName,
java.lang.String path)
throws StillExistsException,
BadFormatException,
ApplicationException,
RenameException,
NotAuthorizedRenameException,
NotExistsResourceException,
NotAuthorizedException
oldName - file/directory to renamenewName - new name of the file/directorypath - path where is file/directory
StillExistsException
BadFormatException
ApplicationException
RenameException
NotAuthorizedRenameException
NotExistsResourceException
NotAuthorizedException
public abstract boolean createDir(java.lang.String name,
java.lang.String path)
throws ApplicationException,
CreateDirectoryException,
StillExistsException,
BadFormatException,
NotAuthorizedNewDirException,
NotExistsResourceException,
NotAuthorizedException
name - file/directory to deletepath - path where is file/directory
ApplicationException
CreateDirectoryException
StillExistsException
BadFormatException
NotAuthorizedNewDirException
NotExistsResourceException
NotAuthorizedException
public abstract boolean canPaste(java.lang.String clipboardPath,
java.util.Vector clipboard,
java.lang.String curentDirPath)
throws ApplicationException,
PasteInChildDirectoryException,
PasteWithSameNameException,
PasteDeletedResourceException,
NotAuthorizedException
clipboardPath - the path where is the clipboadclipboard - the containt of the clipboardcurentDirPath - the path of the curent dir
ApplicationException
PasteInChildDirectoryException
PasteWithSameNameException
PasteDeletedResourceException
NotAuthorizedException
public abstract boolean copy(java.lang.String resource,
java.lang.String fromPath,
java.lang.String toPath)
throws CopyException,
ApplicationException,
OverQuotaException,
NotAuthorizedException,
NotExistsResourceException,
PasteNotAuthorizedResourceException,
NotAuthorizedUploadException
resource - resource to copyfromPath - path where is the resourcetoPath - path to copy the resource
CopyException
ApplicationException
OverQuotaException
NotAuthorizedException
NotExistsResourceException
PasteNotAuthorizedResourceException
NotAuthorizedUploadException
public abstract boolean move(java.lang.String resource,
java.lang.String fromPath,
java.lang.String toPath)
throws ApplicationException,
MoveException,
NotAuthorizedException,
NotExistsResourceException,
PasteNotAuthorizedResourceException,
NotAuthorizedUploadException
resource - resource to movefromPath - path where is the resourcetoPath - path to move the resource
ApplicationException
MoveException
NotAuthorizedException
NotExistsResourceException
PasteNotAuthorizedResourceException
NotAuthorizedUploadException
public abstract ChannelWebdavResource dowload(java.lang.String name,
java.lang.String path)
throws DownloadException
name - the file namepath - the path where to find the file
DownloadException
public abstract boolean exists(java.lang.String fullPath)
throws ApplicationException,
NotAuthorizedException
fullPath - path to find the file/directory
ApplicationException
NotAuthorizedException
public abstract boolean exists(java.lang.String resourceName,
java.lang.String path)
throws ApplicationException,
NotAuthorizedException
resourceName - name of the file/directory to verifypath - path to find the file/directory
ApplicationException
NotAuthorizedException
public abstract boolean canRead(java.lang.String resourceName,
java.lang.String path)
throws ApplicationException
resourceName - name of the file/directory to verifypath - path to find the file/directory
ApplicationException
public abstract boolean canRead(java.lang.String path)
throws ApplicationException
path - path to find the file/directory
ApplicationException
public abstract boolean isDirectory(java.lang.String name,
java.lang.String path)
throws ApplicationException,
NotAuthorizedException,
NotExistsResourceException
name - the name of the resourcepath - the path
ApplicationException
NotAuthorizedException
NotExistsResourceException
public abstract boolean isEmpty(java.lang.String dir,
java.lang.String path)
throws ApplicationException,
NotExistsResourceException,
NotAuthorizedException
dir - the name of the directorypath - the path
ApplicationException
NotExistsResourceException
NotAuthorizedExceptionpublic abstract java.lang.String getRedirectionPath(java.lang.String path)
path - the context path, for example /slide/~bidon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||