|
CStockage 4.2_beta-RC-1 API Documentation |
|||||||||
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.injac.ChannelAction
Id: ChannelAction.java,v 1.0 27 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 an injac space context
Constructor Summary | |
ChannelAction()
Default constructor |
Method Summary | |
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 |
static boolean |
isUserDocumentOwner(java.lang.String documentPath,
Space currentSpace,
java.lang.String userPortalLogin)
Check if the current user is the owner of the specified document |
static boolean |
isUserEditorInSpace(java.lang.String spacePath,
Space currentSpace,
java.lang.String userPortalLogin,
java.util.Vector userGroups)
Check if the current user is editor in the specified space |
static boolean |
isUserManagerInSpace(java.lang.String spacePath,
Space currentSpace,
java.lang.String userPortalLogin,
java.util.Vector userGroups)
Check if the current user is manager in the specified space |
static boolean |
isUserWriterInSpace(java.lang.String spacePath,
Space currentSpace,
java.lang.String userPortalLogin,
java.util.Vector userGroups)
Check if the current user is writer in the specified space |
java.lang.StringBuffer |
renderXmlChannelException(ChannelException e)
Return the xml when we have a ChannelException exception |
java.lang.StringBuffer |
renderXmlWithInformation(java.lang.String informationCode)
Return the xml when we have to show a information message |
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 |
Methods inherited from class org.esupportail.portal.channels.CStockage.channelAction.AbstractChannelAction |
checkCalledAction |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
public static boolean isUserManagerInSpace(java.lang.String spacePath, Space currentSpace, java.lang.String userPortalLogin, java.util.Vector userGroups) throws ServerException
spacePath
- the space access pathcurrentSpace
- the current space useduserPortalLogin
- the uportal access loginuserGroups
- the groups of the user
ServerException
public static boolean isUserWriterInSpace(java.lang.String spacePath, Space currentSpace, java.lang.String userPortalLogin, java.util.Vector userGroups) throws ServerException
spacePath
- the space access pathcurrentSpace
- the current space useduserPortalLogin
- the uportal access loginuserGroups
- the groups of the user
ServerException
public static boolean isUserEditorInSpace(java.lang.String spacePath, Space currentSpace, java.lang.String userPortalLogin, java.util.Vector userGroups) throws ServerException
spacePath
- the space access pathcurrentSpace
- the current space useduserPortalLogin
- the uportal access loginuserGroups
- the groups of the user
ServerException
public static boolean isUserDocumentOwner(java.lang.String documentPath, Space currentSpace, java.lang.String userPortalLogin) throws ServerException
documentPath
- the document access pathcurrentSpace
- the current space useduserPortalLogin
- the uportal access login
ServerException
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
public java.lang.StringBuffer renderXmlWithInformation(java.lang.String informationCode)
renderXmlWithInformation
in class AbstractChannelAction
public java.lang.StringBuffer renderXmlChannelException(ChannelException e)
renderXmlChannelException
in class AbstractChannelAction
e
- the throwed exception
|
CStockage 4.2_beta-RC-1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |