com.stratelia.silverpeas.selectionPeas.control
Class SelectionPeasWrapperSessionController

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

public class SelectionPeasWrapperSessionController
extends AbstractComponentSessionController

A simple wrapper to the userpanel.

Author:
Didier Wenzek

Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
SelectionPeasWrapperSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
          Standard Session Controller Constructeur
 
Method Summary
 String getDomainIdFilter()
          Gets the identifier of the domain on which the user selection must be filtered.
 String getElementId()
          Returns the HTML input where the selected user id must be set.
 String getElementName()
          Returns the HTML input where the selected user name must be set.
 String getFormName()
          Returns the HTML form name whose user element must be set.
 Group getSelectedGroup()
          Returns the selected group (if any).
 Group[] getSelectedGroups()
          Returns the selected groups (if any).
 UserDetail getSelectedUser()
          Returns the selected user (if any).
 UserDetail[] getSelectedUsers()
          Returns the selected user (if any).
 void getSelectionPeasSelection()
          Reads the selection made with the user panel.
 String initSelectionPeas(boolean multiple, String instanceId, List<String> roles)
          Init the user panel.
 boolean isGroupSelectable()
           
 boolean isUserSelectable()
           
 void setDomainIdFilter(String domainIdFilter)
          Sets the identifier of the domain in order to filter user selection on it.
 void setElementId(String elementId)
          Set the HTML input where the selected user id must be set.
 void setElementName(String elementName)
          Set the HTML input where the selected user name must be set.
 void setFormName(String formName)
          Set the HTML form name whose user element must be set.
 void setSelectable(int selectable)
           
 void setSelectable(String selectable)
           
 void setSelectedGroupId(String selectedId)
           
 void setSelectedGroupIds(String selectedIds)
           
 void setSelectedUserId(String selectedUserId)
          Set the selected user (if any).
 void setSelectedUserIds(String selectedUserIds)
           
 
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, getSettings, 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

SelectionPeasWrapperSessionController

public SelectionPeasWrapperSessionController(MainSessionController mainSessionCtrl,
                                             ComponentContext componentContext)
Standard Session Controller Constructeur

Parameters:
mainSessionCtrl - The full work session.
componentContext - The context of this component session.
Method Detail

getFormName

public String getFormName()
Returns the HTML form name whose user element must be set.


getElementId

public String getElementId()
Returns the HTML input where the selected user id must be set.


getElementName

public String getElementName()
Returns the HTML input where the selected user name must be set.


getSelectedUser

public UserDetail getSelectedUser()
Returns the selected user (if any).


getSelectedUsers

public UserDetail[] getSelectedUsers()
Returns the selected user (if any).


getSelectedGroup

public Group getSelectedGroup()
Returns the selected group (if any).


getSelectedGroups

public Group[] getSelectedGroups()
Returns the selected groups (if any).


setFormName

public void setFormName(String formName)
Set the HTML form name whose user element must be set.


setElementId

public void setElementId(String elementId)
Set the HTML input where the selected user id must be set.


setElementName

public void setElementName(String elementName)
Set the HTML input where the selected user name must be set.


setSelectedUserId

public void setSelectedUserId(String selectedUserId)
Set the selected user (if any).


setSelectedUserIds

public void setSelectedUserIds(String selectedUserIds)

getDomainIdFilter

public String getDomainIdFilter()
Gets the identifier of the domain on which the user selection must be filtered.

Returns:
an identifier of domain as string, empty if none.

setDomainIdFilter

public void setDomainIdFilter(String domainIdFilter)
Sets the identifier of the domain in order to filter user selection on it.

Parameters:
domainIdFilter - the identifier of domain as string.

initSelectionPeas

public String initSelectionPeas(boolean multiple,
                                String instanceId,
                                List<String> roles)
Init the user panel.


getSelectionPeasSelection

public void getSelectionPeasSelection()
Reads the selection made with the user panel.


setSelectable

public void setSelectable(int selectable)

setSelectable

public void setSelectable(String selectable)

isUserSelectable

public boolean isUserSelectable()

isGroupSelectable

public boolean isGroupSelectable()

setSelectedGroupId

public void setSelectedGroupId(String selectedId)

setSelectedGroupIds

public void setSelectedGroupIds(String selectedIds)


Copyright © 2016 Silverpeas. All Rights Reserved.