Class Selection
- java.lang.Object
-
- org.silverpeas.core.web.selection.Selection
-
public final class Selection extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected String
cancelURL
protected boolean
elementSelectable
protected SelectionUsersGroups
extraParams
protected boolean
filterOnDeactivatedState
protected String
goBackURL
protected org.silverpeas.kernel.util.Pair<String,String>
hostComponentName
protected org.silverpeas.kernel.util.Pair<String,String>[]
hostPath
protected String
hostSpaceName
protected String
htmlFormElementId
protected String
htmlFormElementName
protected String
htmlFormElementType
protected String
htmlFormName
protected boolean
multiSelect
protected boolean
popupMode
protected List<Domain>
registeredServerDomains
protected String[]
selectedElements
protected String[]
selectedSets
protected int
selectedUserLimit
protected boolean
setSelectable
static String
TYPE_SELECTED_ELEMENT
static String
TYPE_SELECTED_SET
static String
USER_SELECTION_PANEL_PATH
-
Constructor Summary
Constructors Constructor Description Selection()
-
Method Summary
-
-
-
Field Detail
-
USER_SELECTION_PANEL_PATH
public static final String USER_SELECTION_PANEL_PATH
- See Also:
- Constant Field Values
-
TYPE_SELECTED_SET
public static final String TYPE_SELECTED_SET
- See Also:
- Constant Field Values
-
TYPE_SELECTED_ELEMENT
public static final String TYPE_SELECTED_ELEMENT
- See Also:
- Constant Field Values
-
goBackURL
protected String goBackURL
-
cancelURL
protected String cancelURL
-
htmlFormName
protected String htmlFormName
-
htmlFormElementName
protected String htmlFormElementName
-
htmlFormElementId
protected String htmlFormElementId
-
htmlFormElementType
protected String htmlFormElementType
-
selectedSets
protected String[] selectedSets
-
selectedElements
protected String[] selectedElements
-
popupMode
protected boolean popupMode
-
multiSelect
protected boolean multiSelect
-
setSelectable
protected boolean setSelectable
-
elementSelectable
protected boolean elementSelectable
-
hostSpaceName
protected String hostSpaceName
-
extraParams
protected SelectionUsersGroups extraParams
-
selectedUserLimit
protected int selectedUserLimit
-
filterOnDeactivatedState
protected boolean filterOnDeactivatedState
-
-
Method Detail
-
resetAll
public void resetAll()
-
getSelectionURL
public static String getSelectionURL()
-
setHostSpaceName
public void setHostSpaceName(String hostSpaceName)
-
getHostSpaceName
public String getHostSpaceName()
-
setHostComponentName
public void setHostComponentName(org.silverpeas.kernel.util.Pair<String,String> hostComponentName)
-
getCancelURL
public String getCancelURL()
-
setCancelURL
public void setCancelURL(String cancelURL)
-
getGoBackURL
public String getGoBackURL()
-
setGoBackURL
public void setGoBackURL(String goBackURL)
-
isPopupMode
public boolean isPopupMode()
-
setPopupMode
public void setPopupMode(boolean popupMode)
-
isHotSetting
public boolean isHotSetting()
Is the set of fields with the selection could be done directly from the user panel ? This can be done only if : - the user panel is opened within a window popup (PopupMode = true), - not with multi selection (MultiSelect = false) and - the information about HTML form of the opener is provided (see the setHtmlForm kind methods).- Returns:
- true if the user panel should modify directly the opener with the result of the selection, false otherwise.
-
isMultiSelect
public boolean isMultiSelect()
-
setMultiSelect
public void setMultiSelect(boolean multiSelect)
-
isSetSelectable
public boolean isSetSelectable()
-
setSetSelectable
public void setSetSelectable(boolean setSelectable)
-
isElementSelectable
public boolean isElementSelectable()
-
setElementSelectable
public void setElementSelectable(boolean elementSelectable)
-
getSelectedElements
public String[] getSelectedElements()
-
setSelectedElements
public void setSelectedElements(String[] selectedElements)
-
setSelectedElements
public void setSelectedElements(Collection<String> selectedElements)
-
getFirstSelectedElement
public String getFirstSelectedElement()
-
getSelectedSets
public String[] getSelectedSets()
-
setSelectedSets
public void setSelectedSets(String[] selectedSets)
-
setSelectedSets
public void setSelectedSets(Collection<String> selectedSets)
-
getFirstSelectedSet
public String getFirstSelectedSet()
-
getExtraParams
public SelectionUsersGroups getExtraParams()
-
setExtraParams
public void setExtraParams(SelectionUsersGroups extraParams)
-
getHtmlFormElementId
public String getHtmlFormElementId()
-
setHtmlFormElementId
public void setHtmlFormElementId(String formElementId)
-
getHtmlFormElementName
public String getHtmlFormElementName()
-
setHtmlFormElementName
public void setHtmlFormElementName(String formElementName)
-
getHtmlFormName
public String getHtmlFormName()
-
setHtmlFormName
public void setHtmlFormName(String formName)
-
getHtmlFormElementType
public String getHtmlFormElementType()
-
setHtmlFormElementType
public void setHtmlFormElementType(String formElementType)
-
getSelectedUserLimit
public int getSelectedUserLimit()
-
setSelectedUserLimit
public void setSelectedUserLimit(int selectedUserLimit)
-
getRegisteredServerDomains
public List<Domain> getRegisteredServerDomains()
Gets all the domains registered on the server.
-
isFilterOnDeactivatedState
public boolean isFilterOnDeactivatedState()
-
setFilterOnDeactivatedState
public void setFilterOnDeactivatedState(boolean filterOnDeactivatedState)
-
-