com.stratelia.silverpeas.clipboardPeas.control
Class ClipboardSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.stratelia.silverpeas.clipboardPeas.control.ClipboardSessionController
All Implemented Interfaces:
ComponentSessionController

public class ClipboardSessionController
extends AbstractComponentSessionController

A servlet ClipboardSessionControler acts as a proxy for a ClipboardBm EJB.


Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
ClipboardSessionController(MainSessionController mainSessionCtrl, ComponentContext context)
          The ClipboardSessionController is built empty and will be later initialized.
 
Method Summary
 void doIdle(int nbinc)
          Method doIdle
 String getComponentLabel(String componentId)
          Returns the label of the given component
 String getComponentRooterName()
           
 int getCounter()
          Method getCounter
 String getHF_HTMLForm(javax.servlet.http.HttpServletRequest request)
          Method getJavaScriptTask
 String getHF_JavaScriptTask(javax.servlet.http.HttpServletRequest request)
          Method getJavaScriptTask
 Collection<IndexEntry> getIndexEntryObjects()
          Return the list of object (IndexEntry format) in clipboard.
 String getIntervalInSec()
          Method declaration
 String getJSPPage()
           
 String getMessageError()
           
 Collection<ClipboardSelection> getObjects()
          Return the list of object in clipboard.
 ResourceLocator getSettings()
           
 String getSpaceLabel(String spaceId)
          Returns the label of the given domain/space
 String getTargetFrame()
           
 void incCounter(int inc)
          Method incCounter
 void setComponentId(String componentId)
           
 void setComponentRooterName(String rooterName)
           
 void setJSPPage(String JSPPage)
           
 void setSpaceId(String spaceId)
           
 void setTargetFrame(String TargetFrame)
           
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipboardSessionController

public ClipboardSessionController(MainSessionController mainSessionCtrl,
                                  ComponentContext context)
The ClipboardSessionController is built empty and will be later initialized.

Parameters:
mainSessionCtrl -
context -
Method Detail

getCounter

public int getCounter()
Method getCounter

Returns:
See Also:

incCounter

public void incCounter(int inc)
Method incCounter

Parameters:
inc -
See Also:

doIdle

public void doIdle(int nbinc)
Method doIdle

Parameters:
nbinc -
See Also:

getHF_JavaScriptTask

public String getHF_JavaScriptTask(javax.servlet.http.HttpServletRequest request)
Method getJavaScriptTask

Parameters:
request -
Returns:
See Also:

getHF_HTMLForm

public String getHF_HTMLForm(javax.servlet.http.HttpServletRequest request)
Method getJavaScriptTask

Parameters:
request -
Returns:
See Also:

getMessageError

public String getMessageError()

getIndexEntryObjects

public Collection<IndexEntry> getIndexEntryObjects()
                                            throws ClipboardException
Return the list of object (IndexEntry format) in clipboard.

Returns:
the list of object (IndexEntry format) in clipboard.
Throws:
RemoteException
ClipboardException

getObjects

public Collection<ClipboardSelection> getObjects()
                                          throws ClipboardException,
                                                 NamingException,
                                                 SQLException
Return the list of object in clipboard.

Returns:
the list of object in clipboard.
Throws:
RemoteException
NamingException
SQLException
ClipboardException

getSettings

public ResourceLocator getSettings()
Specified by:
getSettings in interface ComponentSessionController
Overrides:
getSettings in class AbstractComponentSessionController

getSpaceLabel

public String getSpaceLabel(String spaceId)
Returns the label of the given domain/space

Parameters:
spaceId -
Returns:
the label of the given domain/space

getComponentLabel

public String getComponentLabel(String componentId)
Returns the label of the given component

Parameters:
componentId -
Returns:

setComponentRooterName

public void setComponentRooterName(String rooterName)
Parameters:
rooterName -

setSpaceId

public void setSpaceId(String spaceId)

setComponentId

public void setComponentId(String componentId)

setJSPPage

public void setJSPPage(String JSPPage)
Parameters:
JSPPage -

setTargetFrame

public void setTargetFrame(String TargetFrame)
Parameters:
TargetFrame -

getComponentRooterName

public String getComponentRooterName()
Returns:

getJSPPage

public String getJSPPage()
Returns:

getTargetFrame

public String getTargetFrame()
Returns:

getIntervalInSec

public String getIntervalInSec()
Method declaration

Returns:
See Also:


Copyright © 2016 Silverpeas. All Rights Reserved.