Class A_CmsListDialog
- Direct Known Subclasses:
A_CmsEmbeddedListDialog,A_CmsGroupsList,A_CmsGroupUsersList,A_CmsListExplorerDialog,A_CmsListResourceTypeDialog,A_CmsOrgUnitsList,A_CmsOrgUnitUsersList,A_CmsResourceCategoriesList,A_CmsRolesList,A_CmsRoleUsersList,A_CmsUserGroupsList,A_CmsUsersList,CmsAllPrincipalDependenciesList,CmsDeletedResourcesList,CmsElementComparisonList,CmsExportpointsList,CmsFlexCacheList,CmsGroupPrincipalDependenciesList,CmsGroupSelectionList,CmsGroupTransferList,CmsHistoryList,CmsImageCacheList,CmsLanguageCopySelectionList,CmsLog4JAdminDialog,CmsModulesDependenciesList,CmsModulesList,CmsOrgUnitSelectionList,CmsPrincipalSelectionList,CmsProjectHistoryList,CmsProjectsList,CmsPropertyComparisonList,CmsPropertyviewList,CmsSchedulerList,CmsSearchFieldConfigurationList,CmsSearchIndexList,CmsSearchIndexSourceControlList,CmsSessionsList,CmsSitesOverviewList,CmsUserPrincipalDependenciesList,CmsUserSelectionList,CmsUserTransferList
- Since:
- 6.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intValue for the action: execute a list item independent action of the list.static final intValue for the action: execute an multi action of the list.static final intValue for the action: search the list.static final intValue for the action: go to a page.static final intValue for the action: execute a single action of the list.static final intValue for the action: sort the list.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static final StringStandard list button location.static Stringstatic final StringRequest parameter value for the list action: a list item independent action has been triggered.static final StringRequest parameter value for the list action: a multi action has been triggered.static final StringRequest parameter value for the list action: search/filter.static final StringRequest parameter value for the list action: select a page.static final StringRequest parameter value for the list action: a single action has been triggered.static final StringRequest parameter value for the list action: sort.protected booleanA flag which indicates whether the list should use database paging (only supported for some lists) .static final StringRequest parameter key for the requested page.static final StringRequest parameter key for the list action.static final StringRequest parameter key for the requested page.static final StringRequest parameter key for search the filter.static final StringRequest parameter key for the selected item(s).static final StringRequest parameter key for the column to sort the list.Fields inherited from class org.opencms.workplace.CmsDialog
ACTION_CANCEL, ACTION_CLOSEPOPUP, ACTION_CLOSEPOPUP_SAVE, ACTION_CONFIRMED, ACTION_CONTINUE, ACTION_DEFAULT, ACTION_LOCKS_CONFIRMED, ACTION_OK, ACTION_REPORT_BEGIN, ACTION_REPORT_END, ACTION_REPORT_UPDATE, ACTION_SET, ACTION_WAIT, ATTRIBUTE_THROWABLE, BUTTON_ADVANCED, BUTTON_BACK, BUTTON_CANCEL, BUTTON_CLOSE, BUTTON_CONTINUE, BUTTON_DETAILS, BUTTON_DISCARD, BUTTON_EDIT, BUTTON_OK, BUTTON_OK_NO_SUBMIT, BUTTON_SET, DIALOG_BACK, DIALOG_CANCEL, DIALOG_CONFIRMED, DIALOG_CONTINUE, DIALOG_INITIAL, DIALOG_LOCKS_CONFIRMED, DIALOG_OK, DIALOG_SET, DIALOG_WAIT, PARAM_ACTION, PARAM_ACTION_VALUE_FOR_CHANGED_INDEX, PARAM_CLOSELINK, PARAM_DIALOGTYPE, PARAM_ERRORSTACK, PARAM_FILE, PARAM_FRAMENAME, PARAM_ISPOPUP, PARAM_LOCK, PARAM_MESSAGE, PARAM_ORIGINALPARAMS, PARAM_PREACTIONDONE, PARAM_REDIRECT, PARAM_RESOURCE, PARAM_TARGET, PARAM_THREAD, PARAM_THREAD_HASNEXT, PARAM_TITLE, REPORT_BEGIN, REPORT_END, REPORT_UPDATEFields inherited from class org.opencms.workplace.tools.CmsToolDialog
PARAM_ADMIN_PROJECT, PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEWFields inherited from class org.opencms.workplace.CmsWorkplace
DEBUG, DEFAULT_DATE_STRING, DEFAULT_LANGUAGE, DEFAULT_LOCALE, DIALOG_PATH_COMMON, FILE_DIALOG_CLOSE, FILE_DIALOG_SCREEN_CONFIRM, FILE_DIALOG_SCREEN_ERROR, FILE_DIALOG_SCREEN_ERRORPAGE, FILE_DIALOG_SCREEN_WAIT, FILE_EXPLORER_FILELIST, FILE_REPORT_OUTPUT, HTML_END, HTML_START, INPUT_DEFAULT, INPUT_NONE, JSP_WORKPLACE_URI, PARAM_DIRECTPUBLISH, PARAM_MODELFILE, PARAM_NEWRESOURCETYPE, PARAM_PUBLISHSIBLINGS, PARAM_RELATEDRESOURCES, PARAM_RESOURCELIST, PARAM_SUBRESOURCES, PARAM_WP_EXPLORER_RESOURCE, PARAM_WP_PROJECT, PARAM_WP_SITE, PARAM_WP_START, PARAM_WP_VIEW, PATH_DIALOGS, PATH_WORKPLACE, REQUEST_ATTRIBUTE_MULTIPART, REQUEST_ATTRIBUTE_RELOADTREE, RES_PATH_FILETYPES, RFS_PATH_RESOURCES, SESSION_WORKPLACE_CLASS, VFS_DIR_DEFAULTBODIES, VFS_DIR_TEMPLATES, VFS_PATH_COMMONS, VFS_PATH_EDITORS, VFS_PATH_GALLERIES, VFS_PATH_LOCALES, VFS_PATH_MODELDIALOG, VFS_PATH_MODULES, VFS_PATH_NEWRESOURCEDIALOG, VFS_PATH_RESOURCES, VFS_PATH_SITES, VFS_PATH_SYSTEM, VFS_PATH_VIEWS, VFS_PATH_WORKPLACE, VIEW_ADMIN, VIEW_DIRECT_EDIT, VIEW_EXPLORER, VIEW_GALLERY, VIEW_LIST, VIEW_WORKPLACE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedA_CmsListDialog(org.opencms.jsp.CmsJspActionElement jsp, String listId, org.opencms.i18n.CmsMessageContainer listName, String sortedColId, CmsListOrderEnum sortOrder, String searchableColId) Public constructor.protectedA_CmsListDialog(org.opencms.jsp.CmsJspActionElement jsp, String listId, org.opencms.i18n.CmsMessageContainer listName, String sortedColId, CmsListOrderEnum sortOrder, String searchableColId, boolean lazy) Public constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms the dialog actions depending on the initialized action.protected StringCan be overwritten to add some code after the list.protected StringCan be overwritten to add some code before the list.Generates the dialog starting html code.protected StringReturns the html code for the default action content.protected StringGenerates the dialog ending html code.protected StringGenerates the dialog starting html code.voidPerforms the dialog actions depending on the initialized action and displays the dialog form.voiddisplayDialog(boolean writeLater) Performs the dialog actions depending on the initialized action and displays the dialog form if needed.voidThis method execute the default actions for searching, sorting and paging.voidThis method should handle the default list independent actions, by comparingwith the id of the action to execute.getParamListAction()abstract voidThis method should handle every defined list multi action, by comparingwith the id of the action to execute.getParamListAction()abstract voidThis method should handle every defined list single action, by comparingwith the id of the action to execute.getParamListAction()protected voidFilter a list, given the action is set toLIST_SEARCHand the filter text is set in thePARAM_SEARCH_FILTERparameter.protected voidSelect a page, given the action is set toLIST_SELECT_PAGEand the page to go to is set in thePARAM_PAGEparameter.protected voidSort the list, given the action is set toLIST_SORTand the sort column is set in thePARAM_SORT_COLparameter.protected abstract voidfillDetails(String detailId) Lazy initialization for detail data.protected voidfillList()Calls themethod and catches any exception.getListItems()getList()Returns the list.final StringReturns the Id of the list.protected abstract List<CmsListItem> Should generate a list with the list items to be displayed.static CmsHtmlListgetListObject(Class<?> listDialog, org.opencms.workplace.CmsWorkplaceSettings settings) Returns the list object for the given list dialog, ornullif no list object has been set.protected CmsListStateReturns the current list state.getMetadata(String listDialogName) Returns the list metadata object for the given dialog.getMetadata(String listDialogName, String listId) Should generate the metadata definition for the list, and return the correspondingobject.CmsListMetadataprotected Map<String, CmsListMetadata> Gets the list metadata cache.Returns the form name.Returns the List Action.Returns the current Page.Returns the Search Filter.Returns the selected Items.Returns the sorted Column.Returns the current selected item.Returns a list of current selected items.protected voidinitializeDetail(String detailId) Lazy details initialization.protected voidinitWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request) booleanisActive()Returns the activation flag.protected voidlistRecovery(String listId) Recover the last list instance that is read from the request attributes.protected voidlistSave()Save the state of the list in the session.voidThis method re-read the rows of the list, the user should call this method after executing an action that add or remove rows to the list.voidRemoves the list from the workplace settings.protected abstract voidsetColumns(CmsListMetadata metadata) Should create the columns and add them to the given list metadata object.protected abstract voidsetIndependentActions(CmsListMetadata metadata) Should add the independent actions to the given list metadata object.voidsetList(CmsHtmlList list) Sets the list.voidsetListObject(Class<?> listDialog, CmsHtmlList listObject) Stores the given object as "list object" for the given list dialog in the current users session.protected abstract voidsetMultiActions(CmsListMetadata metadata) Should add the multi actions to the given list metadata object.voidsetParamFormName(String formName) Sets the form name.voidsetParamListAction(String listAction) Sets the List Action.voidsetParamPage(String page) Sets the current Page.voidsetParamSearchFilter(String searchFilter) Sets the Search Filter.voidsetParamSelItems(String paramSelItems) Sets the selected Items.voidsetParamSortCol(String sortCol) Sets the sorted Column.protected voidsetSearchAction(CmsListMetadata metadata, String columnId) Creates the default search action.protected voidA convenient method to throw a list unsupported action runtime exception.protected voidShould be overridden for parameter validation.voidWrites the dialog html code, only if theis set.CmsDialog.ACTION_DEFAULTMethods inherited from class org.opencms.workplace.CmsDialog
actionCloseDialog, appendDelimiter, buildAjaxResultContainer, buildAjaxWaitMessage, buildLockAdditionalOptions, buildLockConfirmationMessageJS, buildLockHeaderBox, checkResourcePermissions, checkResourcePermissions, computeCurrentFolder, dialog, dialogBlock, dialogBlockEnd, dialogBlockStart, dialogButtonRow, dialogButtonRowEnd, dialogButtonRowStart, dialogButtons, dialogButtonsClose, dialogButtonsClose, dialogButtonsCloseDetails, dialogButtonsHtml, dialogButtonsOk, dialogButtonsOk, dialogButtonsOkCancel, dialogButtonsOkCancel, dialogButtonsOkCancelAdvanced, dialogButtonsSetOkCancel, dialogContent, dialogContentEnd, dialogContentStart, dialogEnd, dialogHead, dialogHorizontalSpacer, dialogLockButtons, dialogRow, dialogRowEnd, dialogRowStart, dialogScriptSubmit, dialogSeparator, dialogSpacer, dialogStart, dialogStart, dialogSubheadline, dialogToggleStart, dialogWhiteBox, dialogWhiteBoxEnd, dialogWhiteBoxStart, getAction, getAdministrationBackLink, getCancelAction, getDialogRealUri, getDialogUri, getOnlineHelpUriCustom, getParamAction, getParamCloseLink, getParamDialogtype, getParamFramename, getParamIsPopup, getParamMessage, getParamOriginalParams, getParamPreActionDone, getParamRedirect, getParamResource, getParamTitle, getState, hasCorrectLockstate, hasSiblings, htmlStart, htmlStart, htmlStart, htmlStartStyle, includeErrorpage, initCmsDialog, isPopup, isPreEditor, openLaunchpad, openWorkplaceLink, pageHtml, pageHtml, setAction, setOnlineHelpUriCustom, setParamAction, setParamCloseLink, setParamDialogtype, setParamFramename, setParamIsPopup, setParamMessage, setParamOriginalParams, setParamPreActionDone, setParamRedirect, setParamResource, setParamTitleMethods inherited from class org.opencms.workplace.tools.CmsToolDialog
computeUpLevelLink, dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamForce, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamForce, setParamPath, setParamRoot, setParamStyle, useNewStyleMethods inherited from class org.opencms.workplace.CmsWorkplace
addMessages, addMessages, allParamsAsHidden, allParamsAsRequest, allParamValues, bodyEnd, bodyStart, bodyStart, buildSelect, buildSelect, button, button, buttonBar, buttonBar, buttonBarHorizontalLine, buttonBarLabel, buttonBarLabel, buttonBarLine, buttonBarLineSpacer, buttonBarSeparator, buttonBarSpacer, buttonBarStartTab, canEditPermissionsForRoles, checkLock, checkLock, checkRole, decodeParamValue, fillParamValues, fillParamValues, generateCssStyle, generatePageEndExtended, generatePageEndSimple, generatePageStartExtended, generatePageStartSimple, getBroadcastMessageString, getCms, getEncoding, getExplorerFileListFullUri, getFrameSource, getJsp, getLocale, getMacroResolver, getMessages, getMultiPartFileItems, getParameterMap, getResourceUri, getResourceUri, getSession, getSettings, getSkinUri, getStartSiteRoot, getStartSiteRoot, getStaticResourceUri, getStaticResourceUri, getStyleUri, getStyleUri, getStyleUri, getTemporaryFileName, getWorkplaceExplorerLink, getWorkplaceExplorerLink, getWorkplaceSettings, htmlEnd, initMessages, initSettings, initTimeWarp, initUserSettings, initWorkplaceMembers, initWorkplaceMembers, initWorkplaceSettings, isForwarded, isHelpEnabled, isSubElement, isTemporaryFile, key, key, keyDefault, nullToEmpty, paramsAsHidden, paramsAsHidden, paramsAsParameterMap, paramsAsRequest, paramValues, resolveMacros, sendCmsRedirect, sendForward, setForwarded, shortKey, substituteSiteTitle, substituteSiteTitleStatic, switchToCurrentProject, switchToTempProject, updateUserPreferences
-
Field Details
-
ACTION_LIST_INDEPENDENT_ACTION
Value for the action: execute a list item independent action of the list.- See Also:
-
ACTION_LIST_MULTI_ACTION
Value for the action: execute an multi action of the list.- See Also:
-
ACTION_LIST_SEARCH
Value for the action: search the list.- See Also:
-
ACTION_LIST_SELECT_PAGE
Value for the action: go to a page.- See Also:
-
ACTION_LIST_SINGLE_ACTION
Value for the action: execute a single action of the list.- See Also:
-
ACTION_LIST_SORT
Value for the action: sort the list.- See Also:
-
ICON_ACTIVE
Standard list button location.- See Also:
-
ICON_ADD
Standard list button location.- See Also:
-
ICON_DELETE
Standard list button location.- See Also:
-
ICON_DETAILS_HIDE
Standard list button location.- See Also:
-
ICON_DETAILS_SHOW
Standard list button location.- See Also:
-
ICON_DISABLED
Standard list button location.- See Also:
-
ICON_INACTIVE
Standard list button location.- See Also:
-
ICON_MINUS
Standard list button location.- See Also:
-
ICON_MULTI_ACTIVATE
Standard list button location.- See Also:
-
ICON_MULTI_ADD
Standard list button location.- See Also:
-
ICON_MULTI_DEACTIVATE
Standard list button location.- See Also:
-
ICON_MULTI_DELETE
Standard list button location.- See Also:
-
ICON_MULTI_MINUS
Standard list button location.- See Also:
-
LIST_INDEPENDENT_ACTION
Request parameter value for the list action: a list item independent action has been triggered.- See Also:
-
LIST_MULTI_ACTION
Request parameter value for the list action: a multi action has been triggered.- See Also:
-
LIST_SEARCH
Request parameter value for the list action: search/filter.- See Also:
-
LIST_SELECT_PAGE
Request parameter value for the list action: select a page.- See Also:
-
LIST_SINGLE_ACTION
Request parameter value for the list action: a single action has been triggered.- See Also:
-
LIST_SORT
Request parameter value for the list action: sort.- See Also:
-
PARAM_FORMNAME
Request parameter key for the requested page.- See Also:
-
PARAM_LIST_ACTION
Request parameter key for the list action.- See Also:
-
PARAM_PAGE
Request parameter key for the requested page.- See Also:
-
PARAM_SEARCH_FILTER
Request parameter key for search the filter.- See Also:
-
PARAM_SEL_ITEMS
Request parameter key for the selected item(s).- See Also:
-
PARAM_SORT_COL
Request parameter key for the column to sort the list.- See Also:
-
KEY_META_DATA_CACHE
-
m_lazy
A flag which indicates whether the list should use database paging (only supported for some lists) .
-
-
Constructor Details
-
A_CmsListDialog
protected A_CmsListDialog(org.opencms.jsp.CmsJspActionElement jsp, String listId, org.opencms.i18n.CmsMessageContainer listName, String sortedColId, CmsListOrderEnum sortOrder, String searchableColId) Public constructor.- Parameters:
jsp- an initialized JSP action elementlistId- the id of the displayed listlistName- the name of the listsortedColId- the a priory sorted columnsortOrder- the order of the sorted columnsearchableColId- the column to search into
-
A_CmsListDialog
protected A_CmsListDialog(org.opencms.jsp.CmsJspActionElement jsp, String listId, org.opencms.i18n.CmsMessageContainer listName, String sortedColId, CmsListOrderEnum sortOrder, String searchableColId, boolean lazy) Public constructor.- Parameters:
jsp- an initialized JSP action elementlistId- the id of the displayed listlistName- the name of the listsortedColId- the a priory sorted columnsortOrder- the order of the sorted columnsearchableColId- the column to search intolazy- if this parameter is true, the list should load only load the list items of the current page, if possible
-
-
Method Details
-
getListObject
public static CmsHtmlList getListObject(Class<?> listDialog, org.opencms.workplace.CmsWorkplaceSettings settings) Returns the list object for the given list dialog, ornullif no list object has been set.- Parameters:
listDialog- the list dialog classsettings- the wp settings for accessing the session- Returns:
- the list object for this list dialog, or
null
-
actionDialog
public void actionDialog() throws javax.servlet.jsp.JspException, javax.servlet.ServletException, IOExceptionPerforms the dialog actions depending on the initialized action.- Throws:
javax.servlet.jsp.JspException- if dialog actions failIOException- in case of errors forwarding to the required result pagejavax.servlet.ServletException- in case of errors forwarding to the required result page
-
defaultActionHtml
Generates the dialog starting html code.- Returns:
- html code
-
displayDialog
public void displayDialog() throws javax.servlet.jsp.JspException, IOException, javax.servlet.ServletExceptionPerforms the dialog actions depending on the initialized action and displays the dialog form.- Throws:
javax.servlet.jsp.JspException- if dialog actions failIOException- if writing to the JSP out fails, or in case of errors forwarding to the required result pagejavax.servlet.ServletException- in case of errors forwarding to the required result page
-
displayDialog
public void displayDialog(boolean writeLater) throws javax.servlet.jsp.JspException, IOException, javax.servlet.ServletException Performs the dialog actions depending on the initialized action and displays the dialog form if needed.- Parameters:
writeLater- iftrueno output is written, you have to call manually themethod.defaultActionHtml()- Throws:
javax.servlet.jsp.JspException- if dialog actions failIOException- if writing to the JSP out fails, or in case of errors forwarding to the required result pagejavax.servlet.ServletException- in case of errors forwarding to the required result page
-
executeDefaultActions
This method execute the default actions for searching, sorting and paging. -
executeListIndepActions
This method should handle the default list independent actions, by comparingwith the id of the action to execute.getParamListAction()if you want to handle additional independent actions, override this method, handling your actions and FINALLY calling
super.executeListIndepActions();. -
executeListMultiActions
public abstract void executeListMultiActions() throws IOException, javax.servlet.ServletException, org.opencms.main.CmsRuntimeExceptionThis method should handle every defined list multi action, by comparingwith the id of the action to execute.getParamListAction()- Throws:
IOException- in case of errors when including a required sub-elementjavax.servlet.ServletException- in case of errors when including a required sub-elementorg.opencms.main.CmsRuntimeException- to signal that an action is not supported
-
executeListSingleActions
public abstract void executeListSingleActions() throws IOException, javax.servlet.ServletException, org.opencms.main.CmsRuntimeExceptionThis method should handle every defined list single action, by comparingwith the id of the action to execute.getParamListAction()- Throws:
IOException- in case of errors when including a required sub-elementjavax.servlet.ServletException- in case of errors when including a required sub-elementorg.opencms.main.CmsRuntimeException- to signal that an action is not supported
-
getList
Returns the list.- Returns:
- the list
-
getListId
Returns the Id of the list.- Returns:
- the list Id
-
getMetadata
Returns the list metadata object for the given dialog.- Parameters:
listDialogName- the dialog class name- Returns:
- the list metadata object
-
getMetadata
Should generate the metadata definition for the list, and return the correspondingobject.CmsListMetadata- Parameters:
listDialogName- the name of the class generating the listlistId- the id of the list- Returns:
- The metadata for the given list
-
getParamFormName
Returns the form name.- Returns:
- the form name
-
getParamListAction
Returns the List Action.- Returns:
- the List Action
-
getParamPage
Returns the current Page.- Returns:
- the current Page
-
getParamSearchFilter
Returns the Search Filter.- Returns:
- the Search Filter
-
getParamSelItems
Returns the selected Items.- Returns:
- the selected Items
-
getParamSortCol
Returns the sorted Column.- Returns:
- the sorted Column
-
getSelectedItem
Returns the current selected item.- Returns:
- the current selected item
-
getSelectedItems
Returns a list of current selected items.- Returns:
- a list of current selected items
-
isActive
Returns the activation flag.Useful for dialogs with several lists.
Is
if the originalformnameparameter is equals to${listId}-form.- Returns:
- the activation flag
-
refreshList
This method re-read the rows of the list, the user should call this method after executing an action that add or remove rows to the list. -
removeList
Removes the list from the workplace settings.Next time the list is displayed the list will be reloaded.
-
setList
Sets the list.- Parameters:
list- the list to set
-
setListObject
Stores the given object as "list object" for the given list dialog in the current users session.- Parameters:
listDialog- the list dialog classlistObject- the list to store
-
setParamFormName
Sets the form name.- Parameters:
formName- the form name to set
-
setParamListAction
Sets the List Action.- Parameters:
listAction- the list Action to set
-
setParamPage
Sets the current Page.- Parameters:
page- the current Page to set
-
setParamSearchFilter
Sets the Search Filter.- Parameters:
searchFilter- the Search Filter to set
-
setParamSelItems
Sets the selected Items.- Parameters:
paramSelItems- the selected Items to set
-
setParamSortCol
Sets the sorted Column.- Parameters:
sortCol- the sorted Column to set
-
writeDialog
Writes the dialog html code, only if theis set.CmsDialog.ACTION_DEFAULT- Throws:
IOException- if writing to the JSP out fails, or in case of errros forwarding to the required result page
-
customHtmlEnd
Can be overwritten to add some code after the list.- Returns:
- custom html code
-
customHtmlStart
Can be overwritten to add some code before the list.- Returns:
- custom html code
-
defaultActionHtmlContent
Returns the html code for the default action content.- Returns:
- html code
-
defaultActionHtmlEnd
Generates the dialog ending html code.- Returns:
- html code
-
defaultActionHtmlStart
Generates the dialog starting html code.- Returns:
- html code
-
executeSearch
Filter a list, given the action is set toLIST_SEARCHand the filter text is set in thePARAM_SEARCH_FILTERparameter. -
executeSelectPage
Select a page, given the action is set toLIST_SELECT_PAGEand the page to go to is set in thePARAM_PAGEparameter. -
executeSort
Sort the list, given the action is set toLIST_SORTand the sort column is set in thePARAM_SORT_COLparameter. -
fillDetails
Lazy initialization for detail data.Should fill the given detail column for every list item in
Should not throw any kind of exception.CmsHtmlList.getContent()- Parameters:
detailId- the id of the detail to initialize
-
fillList
Calls themethod and catches any exception.getListItems() -
getListItems
Should generate a list with the list items to be displayed.- Returns:
- a list of
sCmsListItem - Throws:
org.opencms.main.CmsException- if something goes wrong
-
getListState
Returns the current list state.- Returns:
- the current list state
-
getMetadataCache
Gets the list metadata cache.- Returns:
- the list metadata cache
-
initializeDetail
Lazy details initialization.- Parameters:
detailId- the id of the detail column
-
initWorkplaceRequestValues
protected void initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request) - Overrides:
initWorkplaceRequestValuesin classorg.opencms.workplace.CmsDialog- See Also:
-
listRecovery
Recover the last list instance that is read from the request attributes.This is required for keep the whole list in memory while you browse a page.
- Parameters:
listId- the id of the expected list
-
listSave
Save the state of the list in the session. -
setColumns
Should create the columns and add them to the given list metadata object.This method will be just executed once, the first time the constructor is called.
- Parameters:
metadata- the list metadata
-
setIndependentActions
Should add the independent actions to the given list metadata object.This method will be just executed once, the first time the constructor is called.
- Parameters:
metadata- the list metadata
-
setMultiActions
Should add the multi actions to the given list metadata object.This method will be just executed once, the first time the constructor is called.
- Parameters:
metadata- the list metadata
-
setSearchAction
Creates the default search action.Can be overridden for more sophisticated search.
- Parameters:
metadata- the metadata of the list to do searchablecolumnId- the if of the column to search into
-
throwListUnsupportedActionException
A convenient method to throw a list unsupported action runtime exception.Should be triggered if your list implementation does not support the
action.getParamListAction()- Throws:
org.opencms.main.CmsRuntimeException- always to signal that this operation is not supported
-
validateParamaters
Should be overridden for parameter validation.- Throws:
Exception- if the parameters are not valid
-