|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.channels.BaseChannel
org.esupportail.portal.channels.CWebdav.CWebdav
Id: CWebdav.java,v 1.0 7 avr. 2004
Copyright (c) 2004 Esup Portail (www.esup-portail.org)
Classes: CWebdav
Original Author: Yohan Colmant
Channel used to manage personal files on a webdav server through the portal
Field Summary | |
private DavAccess |
access
The attribute used to access the webdav |
private java.util.Vector |
clipboard
Files/directories to copy or move |
private java.lang.String |
clipboardParameter
Param used to set if the selected target is to copy or to move |
private java.lang.String |
clipboardPath
The path where are the resource to copy or move |
private Config |
config
The config object |
private java.lang.String |
currentMode
The actual mod in which is the channel |
private Space |
currentSpace
The current used space |
private ChannelWebdavResource |
downloadResource
The resource to download |
private java.lang.String |
fileId
|
private java.lang.String[] |
filesToDelete
Files/directories to delete |
private java.lang.String |
fileToRename
Files/directories to rename |
private java.lang.String |
informationMessage
Information message |
private java.lang.String |
login
User login |
private org.jasig.portal.PortalControlStructures |
pcs
|
private java.util.ArrayList |
spaces
The spaces availables |
private WebdavException |
startException
Error at the beginning of the channel |
private org.jasig.portal.ChannelStaticData |
staticData
|
private java.lang.String |
stylesheet
The stylesheet used |
Fields inherited from class org.jasig.portal.channels.BaseChannel |
runtimeData |
Constructor Summary | |
CWebdav()
Constructor |
Method Summary | |
private void |
createDir()
Generate the XML String for this mod |
private void |
delete()
Generate the XML String for this mod |
private void |
deleteWithoutConfirm()
Generate the XML String for this mod |
private void |
directoryBack()
Go to the parent directory |
void |
downloadData(java.io.OutputStream arg0)
Function unused here |
org.jasig.portal.ChannelCacheKey |
generateKey()
|
java.lang.String |
getContentType()
Return the content type of the seleted file |
java.util.Map |
getHeaders()
Send HTTP header |
java.io.InputStream |
getInputStream()
Get the strem for the file to dowload |
java.lang.String |
getName()
Function unused here |
boolean |
isCacheValid(java.lang.Object validity)
|
private void |
move()
Generate the XML String for this mod |
private java.lang.StringBuffer |
paste()
Generate the XML String for this mod |
private void |
rename()
Generate the XML String for this mod |
void |
renderXML(org.xml.sax.ContentHandler out)
Output channel content to the portal |
private java.lang.StringBuffer |
renderXmlConfirmDelete()
Generate the XML String for this mod |
private java.lang.StringBuffer |
renderXmlConfirmPaste()
Generate the XML String for this mod |
private java.lang.StringBuffer |
renderXmlSetNameForRename()
Generate the XML String for this mod |
private java.lang.StringBuffer |
renderXmlShowCurrentDir()
Generate the XML String for this mod |
void |
reportDownloadError(java.lang.Exception arg0)
Print the error generated by the download |
private void |
setClipboard(java.lang.String mode)
Generate the XML String for this mod |
void |
setStaticData(org.jasig.portal.ChannelStaticData sd)
Receive static channel data from the portal. |
private void |
upload()
Start the upload |
Methods inherited from class org.jasig.portal.channels.BaseChannel |
getRuntimeProperties, receiveEvent, setRuntimeData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.jasig.portal.ChannelStaticData staticData
private java.lang.String fileId
private org.jasig.portal.PortalControlStructures pcs
private Config config
private java.lang.String currentMode
private java.lang.String stylesheet
private java.util.ArrayList spaces
private Space currentSpace
private WebdavException startException
private java.lang.String informationMessage
private java.lang.String[] filesToDelete
private java.util.Vector clipboard
private java.lang.String clipboardPath
private java.lang.String clipboardParameter
private java.lang.String fileToRename
private java.lang.String login
private DavAccess access
private ChannelWebdavResource downloadResource
Constructor Detail |
public CWebdav()
Method Detail |
public void setStaticData(org.jasig.portal.ChannelStaticData sd)
setStaticData
in interface org.jasig.portal.IChannel
sd
- ChannelStaticData static channel datapublic void renderXML(org.xml.sax.ContentHandler out) throws org.jasig.portal.PortalException
renderXML
in interface org.jasig.portal.IChannel
out
- a sax document handler
org.jasig.portal.PortalException
private java.lang.StringBuffer renderXmlShowCurrentDir()
private void directoryBack()
private void upload() throws WebdavException
WebdavException
private java.lang.StringBuffer renderXmlConfirmDelete() throws WebdavException
WebdavException
private void delete() throws WebdavException
WebdavException
private void deleteWithoutConfirm() throws WebdavException
WebdavException
private void setClipboard(java.lang.String mode) throws NoneSelectedResourceException, ApplicationException, NotAuthorizedException
NoneSelectedResourceException
ApplicationException
NotAuthorizedException
private java.lang.StringBuffer renderXmlConfirmPaste() throws WebdavException
WebdavException
private java.lang.StringBuffer paste() throws WebdavException
WebdavException
private void move() throws WebdavException
WebdavException
private java.lang.StringBuffer renderXmlSetNameForRename()
private void rename() throws WebdavException
WebdavException
private void createDir() throws CancelException, ApplicationException, CreateDirectoryException, StillExistsException, BadFormatException, NotAuthorizedException, NotAuthorizedNewDirException, NotExistsResourceException
CancelException
ApplicationException
CreateDirectoryException
StillExistsException
BadFormatException
NotAuthorizedException
NotAuthorizedNewDirException
NotExistsResourceException
public java.lang.String getContentType()
getContentType
in interface org.jasig.portal.IMimeResponse
IMimeResponse.getContentType()
public java.util.Map getHeaders()
getHeaders
in interface org.jasig.portal.IMimeResponse
IMimeResponse.getHeaders()
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface org.jasig.portal.IMimeResponse
java.io.IOException
IMimeResponse.getInputStream()
public void downloadData(java.io.OutputStream arg0) throws java.io.IOException
downloadData
in interface org.jasig.portal.IMimeResponse
java.io.IOException
IMimeResponse.downloadData(java.io.OutputStream)
public java.lang.String getName()
getName
in interface org.jasig.portal.IMimeResponse
IMimeResponse.getName()
public void reportDownloadError(java.lang.Exception arg0)
reportDownloadError
in interface org.jasig.portal.IMimeResponse
IMimeResponse.reportDownloadError(java.lang.Exception)
public org.jasig.portal.ChannelCacheKey generateKey()
generateKey
in interface org.jasig.portal.ICacheable
public boolean isCacheValid(java.lang.Object validity)
isCacheValid
in interface org.jasig.portal.ICacheable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |