org.esupportail.portal.channels.CWebdav.channelAction.classic
Class ChannelAction

java.lang.Object
  extended byorg.esupportail.portal.channels.CWebdav.channelAction.AbstractChannelAction
      extended byorg.esupportail.portal.channels.CWebdav.channelAction.classic.ChannelAction

public class ChannelAction
extends AbstractChannelAction

Id: ChannelAction.java,v 1.0 24 sept. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: ChannelAction Original Author: Yohan Colmant Class used to manage the actions when we are in a classic space context


Field Summary
protected static org.apache.commons.logging.Log log
          Logger object
private  java.lang.String stylesheet
          The stylesheet used
 
Fields inherited from class org.esupportail.portal.channels.CWebdav.channelAction.AbstractChannelAction
buffer, config, currentSpace, spaces, userGroups, userPortalLogin
 
Constructor Summary
ChannelAction()
          Default constructor
 
Method Summary
 void checkCalledAction(org.jasig.portal.ChannelStaticData staticData, org.jasig.portal.ChannelRuntimeData runtimeData, org.xml.sax.ContentHandler out, org.jasig.portal.utils.XSLT xslt, ChannelException setStaticDataException)
          Manage the actions when refreshing the channel
private  void createDir(org.jasig.portal.ChannelRuntimeData runtimeData)
          Create a new directory
private  void delete(org.jasig.portal.ChannelRuntimeData runtimeData)
          Delete the specified resource(s)
private  void deleteWithoutConfirm()
          Delete resource(s) without confirmation
private  void directoryBack()
          Go to the parent directory
private  java.lang.StringBuffer paste(org.jasig.portal.ChannelRuntimeData runtimeData)
          Generate the XML String for this mod
private  void rename(org.jasig.portal.ChannelRuntimeData runtimeData)
          Rename the selected resource
private  java.lang.StringBuffer renderXmlConfirmDelete(org.jasig.portal.ChannelRuntimeData runtimeData)
          Generate the XML String for this mod
private  java.lang.StringBuffer renderXmlConfirmPaste()
          Generate the XML String for this mod
private  java.lang.StringBuffer renderXmlSetNameForRename(org.jasig.portal.ChannelRuntimeData runtimeData)
          Generate the XML String for this mod
private  java.lang.StringBuffer renderXmlShowCurrentDir(org.jasig.portal.ChannelRuntimeData runtimeData)
          Generate the XML String for this mod
private  void setClipboard(java.lang.String mode, org.jasig.portal.ChannelRuntimeData runtimeData)
          Set the clipboard
private  void upload(org.jasig.portal.ChannelRuntimeData runtimeData)
          Start the upload
 
Methods inherited from class org.esupportail.portal.channels.CWebdav.channelAction.AbstractChannelAction
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Logger object


stylesheet

private java.lang.String stylesheet
The stylesheet used

Constructor Detail

ChannelAction

public ChannelAction()
Default constructor

Method Detail

checkCalledAction

public void checkCalledAction(org.jasig.portal.ChannelStaticData staticData,
                              org.jasig.portal.ChannelRuntimeData runtimeData,
                              org.xml.sax.ContentHandler out,
                              org.jasig.portal.utils.XSLT xslt,
                              ChannelException setStaticDataException)
                       throws org.jasig.portal.PortalException
Manage the actions when refreshing the channel

Specified by:
checkCalledAction in class AbstractChannelAction
Parameters:
staticData - the static data channel object
runtimeData - the runtime data channel object
out - a sax document handler
xslt - the xslt motor object
setStaticDataException - the excpetion throwed in the setStaticData method
Throws:
org.jasig.portal.PortalException

renderXmlShowCurrentDir

private java.lang.StringBuffer renderXmlShowCurrentDir(org.jasig.portal.ChannelRuntimeData runtimeData)
Generate the XML String for this mod

Parameters:
runtimeData - the runtime data channel object
Returns:
the XML for this mod

directoryBack

private void directoryBack()
Go to the parent directory


createDir

private void createDir(org.jasig.portal.ChannelRuntimeData runtimeData)
                throws CancelException,
                       ApplicationException,
                       CreateDirectoryException,
                       StillExistsException,
                       BadFormatException,
                       NotAuthorizedException,
                       NotAuthorizedNewDirException,
                       NotExistsResourceException
Create a new directory

Parameters:
runtimeData - the runtime data channel object
Throws:
CancelException
ApplicationException
CreateDirectoryException
StillExistsException
BadFormatException
NotAuthorizedException
NotAuthorizedNewDirException
NotExistsResourceException

renderXmlSetNameForRename

private java.lang.StringBuffer renderXmlSetNameForRename(org.jasig.portal.ChannelRuntimeData runtimeData)
                                                  throws ChannelException
Generate the XML String for this mod

Parameters:
runtimeData - the runtime data channel object
Returns:
the XML StringBuffer for this mod
Throws:
ChannelException

rename

private void rename(org.jasig.portal.ChannelRuntimeData runtimeData)
             throws ChannelException
Rename the selected resource

Parameters:
runtimeData - the runtime data channel object
Throws:
ChannelException

renderXmlConfirmDelete

private java.lang.StringBuffer renderXmlConfirmDelete(org.jasig.portal.ChannelRuntimeData runtimeData)
                                               throws ChannelException
Generate the XML String for this mod

Parameters:
runtimeData - the runtime data channel object
Returns:
the xml used to confirm a delete
Throws:
ChannelException

delete

private void delete(org.jasig.portal.ChannelRuntimeData runtimeData)
             throws ChannelException
Delete the specified resource(s)

Parameters:
runtimeData - the runtime data channel object
Throws:
ChannelException

deleteWithoutConfirm

private void deleteWithoutConfirm()
                           throws ChannelException
Delete resource(s) without confirmation

Throws:
ChannelException

upload

private void upload(org.jasig.portal.ChannelRuntimeData runtimeData)
             throws ChannelException
Start the upload

Parameters:
runtimeData - the runtime data channel object
Throws:
ChannelException

setClipboard

private void setClipboard(java.lang.String mode,
                          org.jasig.portal.ChannelRuntimeData runtimeData)
                   throws NoneSelectedResourceException,
                          ApplicationException,
                          NotAuthorizedException
Set the clipboard

Parameters:
mode - used: copy or move
runtimeData - the runtime data channel object
Throws:
NoneSelectedResourceException
ApplicationException
NotAuthorizedException

renderXmlConfirmPaste

private java.lang.StringBuffer renderXmlConfirmPaste()
                                              throws ChannelException
Generate the XML String for this mod

Returns:
the XML String for this mod
Throws:
ChannelException

paste

private java.lang.StringBuffer paste(org.jasig.portal.ChannelRuntimeData runtimeData)
                              throws ChannelException
Generate the XML String for this mod

Parameters:
runtimeData - the runtime data channel object
Returns:
the XML String for this mod
Throws:
ChannelException