|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.esupportail.portal.channels.CStockage.channelAction.AbstractChannelAction
org.esupportail.portal.channels.CStockage.channelAction.classic.ChannelAction
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 Log |
log
Logger object |
private DirectorySharingProperties |
tempSharingProperties
sharing directory properties used during the sharing management |
Fields inherited from class org.esupportail.portal.channels.CStockage.channelAction.AbstractChannelAction |
buffer, currentSpace, sharingTool, slave, spaces, stylesheet, userGroups, userPortalLogin |
Constructor Summary | |
ChannelAction()
Default constructor |
Method Summary | |
protected void |
checkCurrentDirectoryProperties()
For the selected mode, we check the properties of the current directory |
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 |
protected void |
directoryBack()
Go to the parent directory |
void |
init(org.jasig.portal.security.IPerson person,
Space currentSpace,
java.util.ArrayList spaces,
BufferAction buffer,
java.lang.String userPortalLogin,
java.util.Vector userGroups)
Init the object used to manage the actions of the channel |
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 |
protected java.lang.StringBuffer |
renderXmlBadConnexionParametersException(ChannelException e)
Return the xml when we have a BadConnexionParameters exception |
protected java.lang.StringBuffer |
renderXmlChannelException(ChannelException e)
Return the xml when we have a ChannelException exception |
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 |
renderXmlShareDirectory(org.jasig.portal.ChannelRuntimeData runtimeData,
org.jasig.portal.ChannelStaticData staticData,
org.xml.sax.ContentHandler out)
Return XML for the directory sharing mode |
private java.lang.StringBuffer |
renderXmlShareDirectoryAddGroup(org.jasig.portal.ChannelRuntimeData runtimeData,
org.jasig.portal.ChannelStaticData staticData,
org.xml.sax.ContentHandler out)
When we want to add a group |
private java.lang.StringBuffer |
renderXmlShareDirectoryAddUser(org.jasig.portal.ChannelRuntimeData runtimeData,
org.jasig.portal.ChannelStaticData staticData,
org.xml.sax.ContentHandler out)
When we want to add a user |
private java.lang.StringBuffer |
renderXmlShareDirectoryCancel()
When click on cancel |
private java.lang.StringBuffer |
renderXmlShareDirectoryDeleteGroup(org.jasig.portal.ChannelRuntimeData runtimeData)
When we delete a group |
private java.lang.StringBuffer |
renderXmlShareDirectoryDeleteUser(org.jasig.portal.ChannelRuntimeData runtimeData)
When we delete a user |
private java.lang.StringBuffer |
renderXmlShareDirectoryGenerateXml()
Generate xml for the directory sharing |
private java.lang.StringBuffer |
renderXmlShareDirectoryValid(org.jasig.portal.ChannelRuntimeData runtimeData)
When valid the sharing |
private java.lang.StringBuffer |
renderXmlShareDirectoryValidServantResults(org.jasig.portal.ChannelRuntimeData runtimeData,
org.jasig.portal.ChannelStaticData staticData)
When we check the servant results |
protected java.lang.StringBuffer |
renderXmlShowCurrentDir(org.jasig.portal.ChannelRuntimeData runtimeData)
Generate the XML String for this mod |
protected java.lang.StringBuffer |
renderXmlWithInformation(java.lang.String informationCode)
Return the xml when we have to show a information message |
private void |
setClipboard(java.lang.String mode,
org.jasig.portal.ChannelRuntimeData runtimeData)
Set the clipboard |
private void |
setCurrentDirectorySharingProperties()
Set the sharing properties of the currentDirectory |
private void |
setSharingProperties()
Set the properties for the current directory |
java.lang.StringBuffer |
specificCheckCalledAction(java.lang.String currentMode,
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 specific actions when refreshing the channel for the specific channel mode |
private void |
upload(org.jasig.portal.ChannelRuntimeData runtimeData)
Start the upload |
Methods inherited from class org.esupportail.portal.channels.CStockage.channelAction.AbstractChannelAction |
checkCalledAction, initPersonalSpacesIntoMenu |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final Log log
private DirectorySharingProperties tempSharingProperties
Constructor Detail |
public ChannelAction()
Method Detail |
public void init(org.jasig.portal.security.IPerson person, Space currentSpace, java.util.ArrayList spaces, BufferAction buffer, java.lang.String userPortalLogin, java.util.Vector userGroups) throws ChannelException
init
in class AbstractChannelAction
person
- the uportal person objectcurrentSpace
- the current space usedspaces
- all the spaces usedbuffer
- the buffer used to get for example the clipboarduserPortalLogin
- The user login in the portaluserGroups
- The groups of the user in the portal
ChannelException
private void setCurrentDirectorySharingProperties() throws ServerException, DataBaseException, PropertiesException
ServerException
DataBaseException
PropertiesException
public java.lang.StringBuffer specificCheckCalledAction(java.lang.String currentMode, org.jasig.portal.ChannelStaticData staticData, org.jasig.portal.ChannelRuntimeData runtimeData, org.xml.sax.ContentHandler out, org.jasig.portal.utils.XSLT xslt, ChannelException setStaticDataException) throws ChannelException, org.jasig.portal.PortalException
specificCheckCalledAction
in class AbstractChannelAction
currentMode
- the current channel modestaticData
- the static data channel objectruntimeData
- the runtime data channel objectout
- the contentHandler used in the renderXmlxslt
- the xslt motor objectsetStaticDataException
- the excpetion throwed in the setStaticData method
org.jasig.portal.PortalException
ChannelException
protected java.lang.StringBuffer renderXmlWithInformation(java.lang.String informationCode) throws PropertiesException
renderXmlWithInformation
in class AbstractChannelAction
PropertiesException
protected void checkCurrentDirectoryProperties() throws java.lang.Exception
checkCurrentDirectoryProperties
in class AbstractChannelAction
java.lang.Exception
protected java.lang.StringBuffer renderXmlBadConnexionParametersException(ChannelException e) throws PropertiesException
renderXmlBadConnexionParametersException
in class AbstractChannelAction
e
- the throwed exception
PropertiesException
protected java.lang.StringBuffer renderXmlChannelException(ChannelException e)
renderXmlChannelException
in class AbstractChannelAction
e
- the throwed exception
protected java.lang.StringBuffer renderXmlShowCurrentDir(org.jasig.portal.ChannelRuntimeData runtimeData) throws ChannelException
renderXmlShowCurrentDir
in class AbstractChannelAction
runtimeData
- the runtime data channel object
ChannelException
protected void directoryBack() throws ChannelException
directoryBack
in class AbstractChannelAction
ChannelException
private void createDir(org.jasig.portal.ChannelRuntimeData runtimeData) throws CancelException, ApplicationException, CreateDirectoryException, StillExistsException, BadFormatException, NotAuthorizedException, NotAuthorizedNewDirException, NotExistsResourceException, PropertiesException
runtimeData
- the runtime data channel object
CancelException
ApplicationException
CreateDirectoryException
StillExistsException
BadFormatException
NotAuthorizedException
NotAuthorizedNewDirException
NotExistsResourceException
PropertiesException
private java.lang.StringBuffer renderXmlSetNameForRename(org.jasig.portal.ChannelRuntimeData runtimeData) throws ChannelException
runtimeData
- the runtime data channel object
ChannelException
private void rename(org.jasig.portal.ChannelRuntimeData runtimeData) throws ChannelException
runtimeData
- the runtime data channel object
ChannelException
private java.lang.StringBuffer renderXmlConfirmDelete(org.jasig.portal.ChannelRuntimeData runtimeData) throws ChannelException
runtimeData
- the runtime data channel object
ChannelException
private void delete(org.jasig.portal.ChannelRuntimeData runtimeData) throws ChannelException
runtimeData
- the runtime data channel object
ChannelException
private void deleteWithoutConfirm() throws ChannelException
ChannelException
private void upload(org.jasig.portal.ChannelRuntimeData runtimeData) throws ChannelException
runtimeData
- the runtime data channel object
ChannelException
private void setClipboard(java.lang.String mode, org.jasig.portal.ChannelRuntimeData runtimeData) throws NoneSelectedResourceException, ApplicationException, NotAuthorizedException
mode
- used: copy or moveruntimeData
- the runtime data channel object
NoneSelectedResourceException
ApplicationException
NotAuthorizedException
private java.lang.StringBuffer renderXmlConfirmPaste() throws ChannelException
ChannelException
private java.lang.StringBuffer paste(org.jasig.portal.ChannelRuntimeData runtimeData) throws ChannelException
runtimeData
- the runtime data channel object
ChannelException
private java.lang.StringBuffer renderXmlShareDirectory(org.jasig.portal.ChannelRuntimeData runtimeData, org.jasig.portal.ChannelStaticData staticData, org.xml.sax.ContentHandler out) throws org.jasig.portal.PortalException, ChannelException
runtimeData
- staticData
- out
-
org.jasig.portal.PortalException
ChannelException
private java.lang.StringBuffer renderXmlShareDirectoryCancel() throws CancelException
CancelException
private java.lang.StringBuffer renderXmlShareDirectoryValid(org.jasig.portal.ChannelRuntimeData runtimeData) throws ChannelException
runtimeData
-
ChannelException
private java.lang.StringBuffer renderXmlShareDirectoryAddUser(org.jasig.portal.ChannelRuntimeData runtimeData, org.jasig.portal.ChannelStaticData staticData, org.xml.sax.ContentHandler out) throws PropertiesException, org.jasig.portal.PortalException
runtimeData
- the runtime data object used in this channelstaticData
- the static data object used in this channelout
- the output object used for the rendering
PropertiesException
org.jasig.portal.PortalException
private java.lang.StringBuffer renderXmlShareDirectoryAddGroup(org.jasig.portal.ChannelRuntimeData runtimeData, org.jasig.portal.ChannelStaticData staticData, org.xml.sax.ContentHandler out) throws PropertiesException, org.jasig.portal.PortalException
runtimeData
- the runtime data object used in this channelstaticData
- the static data object used in this channelout
- the output object used for the rendering
PropertiesException
org.jasig.portal.PortalException
private java.lang.StringBuffer renderXmlShareDirectoryValidServantResults(org.jasig.portal.ChannelRuntimeData runtimeData, org.jasig.portal.ChannelStaticData staticData) throws PropertiesException
runtimeData
- the runtime data object used in this channelstaticData
- the static data object used in this channel
PropertiesException
private java.lang.StringBuffer renderXmlShareDirectoryDeleteUser(org.jasig.portal.ChannelRuntimeData runtimeData) throws PropertiesException
runtimeData
- the runtime data object used in the channel
PropertiesException
private java.lang.StringBuffer renderXmlShareDirectoryDeleteGroup(org.jasig.portal.ChannelRuntimeData runtimeData) throws PropertiesException
runtimeData
- the runtime data object used in the channel
PropertiesException
private java.lang.StringBuffer renderXmlShareDirectoryGenerateXml()
private void setSharingProperties() throws DataBaseException, PropertiesException, ServerException, AclAccessException, AclWriteException, AclReadException, NotSupportedAclException
DataBaseException
PropertiesException
ServerException
AclAccessException
AclWriteException
AclReadException
NotSupportedAclException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |