Class MetadataTemplatesBean
java.lang.Object
com.kheops.jmap.server.webadmin.faces.AbstractAdminFacesBean
com.kheops.jmap.server.webadmin.faces.BaseListBean<MetadataTemplate>
com.kheops.jmap.server.webadmin.faces.AbstractLazyListBean<MetadataTemplate>
com.kheops.jmap.server.webadmin.faces.MetadataTemplatesBean
-
Field Summary
Fields inherited from class com.kheops.jmap.server.webadmin.faces.BaseListBean
first, itemsPerPage, list, selection
Fields inherited from class com.kheops.jmap.server.webadmin.faces.AbstractAdminFacesBean
CONFIGURATION_SAVED, GLOBAL_RES_FILE, OPERATION_FINISHED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
delete
(List<MetadataTemplate> selectedElements) void
editPermissions
(javax.faces.event.ActionEvent actionEvent) protected String
To be overriden by subclasses to show specific delete confirmation messagesgetElementRowData
(String rowKey) getElementRowKey
(MetadataTemplate metadataTemplate) getFirstOwner
(int templateId) getOwnersOverlay
(int templateId) boolean
getRenderedColumnDefaultValue
(String columnName) Returns a list of toggleable columns.protected String
getUrl()
To indicate the url of the page used to manage the current listprotected void
init()
Implement any initialization logic here, other than retrieving the list of elements i.e Controllers initialization.boolean
boolean
boolean
boolean
boolean
isSelectionDisabled
(int metadataTemplateId) protected List
<MetadataTemplate> To obtain the list of elements that will be managed in the current page In general, subclasses will use some controller object to retrieve it from database or some other persistent storagevoid
newTemplate
(javax.faces.event.ActionEvent actionEvent) protected void
validateDeletion
(List<MetadataTemplate> selection) To be implemented in subclasses that need to perform some validation before deleting rowsMethods inherited from class com.kheops.jmap.server.webadmin.faces.AbstractLazyListBean
getLazyModel
Methods inherited from class com.kheops.jmap.server.webadmin.faces.BaseListBean
clearSelection, columnsRenderedValueChanged, compareLiterals, delete, getColumnsRendered, getDataList, getDisplayedResult, getFirstOwner, getItemsPerPages, getList, getOwnersOverlay, getSelectedRowsCount, getSelectionType, getTotalResult, getViewUrl, hideNotAccessibleObjects, hideObjectsNotOwnedByMe, isColumnRendered, isDisabledForSelection, isEditionDisabled, isHideNotAccessibleObjects, isHideObjectsNotOwnedByMe, onPageChange, onRowSelection, refresh, refresh, refreshFilteredList, refreshSelection, refreshViewOnDelete, selectAll, selectionExists, selectNone, setColumnRendered, setColumnRendered, setHideNotAccessibleObjects, setHideObjectsNotOwnedByMe, setItemsPerPages
Methods inherited from class com.kheops.jmap.server.webadmin.faces.AbstractAdminFacesBean
addDuplicateNameErrorMessage, addErrorMessage, addErrorMessage, addGlobalErrorMessage, addGlobalErrorMessage, addGlobalInfoMessage, addGlobalWarningMessage, addInfoMessage, addInfoMessage, addRequiredErrorMessage, addWarningMessage, addWarningMessage, closeDialog, containsCharacters, convertColor, convertColor, createDuplicateNameErrorMessage, displayMessage, findComponent, findObjectByName, formatDouble, formatInteger, getComponentsToUpdate, getController, getController, getDeleteConfirmationTitle, getDialogs, getEditingObjectId, getExternalContext, getJMapAdminSessionBean, getJMapServerAdminBean, getJMapServerUserAdminBean, getJsfBean, getLanguageLabel, getLanguages, getLanguagesConverter, getLayerStatusConverter, getMessage, getMessage, getParameter, getReadableFileSize, getRequest, getRequestLocale, getRequestParameter, getSessionAttribute, getSessionBean, getSessionId, getSessionUser, initRequestContext, isDuplicate, isExtensionAvailable, openDialog, redirectToPage, reloadCurrentPage, required, reverseArray, showMessageDialog, validateDuplicateName
-
Constructor Details
-
MetadataTemplatesBean
public MetadataTemplatesBean()
-
-
Method Details
-
init
protected void init()Description copied from class:BaseListBean
Implement any initialization logic here, other than retrieving the list of elements i.e Controllers initialization.- Specified by:
init
in classBaseListBean<MetadataTemplate>
-
getBreadCrumbItems
- Overrides:
getBreadCrumbItems
in classAbstractAdminFacesBean
-
listElements
Description copied from class:BaseListBean
To obtain the list of elements that will be managed in the current page In general, subclasses will use some controller object to retrieve it from database or some other persistent storage- Specified by:
listElements
in classBaseListBean<MetadataTemplate>
- Returns:
- The whole list of elements
-
isAllowMultipleSelection
public boolean isAllowMultipleSelection()- Specified by:
isAllowMultipleSelection
in classBaseListBean<MetadataTemplate>
-
getUrl
Description copied from class:BaseListBean
To indicate the url of the page used to manage the current list- Specified by:
getUrl
in classBaseListBean<MetadataTemplate>
- Returns:
- A relative path like '/projects/projects.jsf'
-
validateDeletion
Description copied from class:BaseListBean
To be implemented in subclasses that need to perform some validation before deleting rows- Overrides:
validateDeletion
in classBaseListBean<MetadataTemplate>
- Throws:
ValidationException
- instance containing the error message to be shown
-
getDeleteConfirmationMessage
Description copied from class:BaseListBean
To be overriden by subclasses to show specific delete confirmation messages- Overrides:
getDeleteConfirmationMessage
in classBaseListBean<MetadataTemplate>
-
delete
- Specified by:
delete
in classBaseListBean<MetadataTemplate>
-
newTemplate
public void newTemplate(javax.faces.event.ActionEvent actionEvent) -
getToggleableColumns
Description copied from class:BaseListBean
Returns a list of toggleable columns. Pair "first" is the column name and "second" is the label displayed in the menu.- Overrides:
getToggleableColumns
in classBaseListBean<MetadataTemplate>
-
getRenderedColumnDefaultValue
- Overrides:
getRenderedColumnDefaultValue
in classBaseListBean<MetadataTemplate>
-
getFirstOwner
-
getOwnersOverlay
-
isSelectionDisabled
public boolean isSelectionDisabled(int metadataTemplateId) -
editPermissions
public void editPermissions(javax.faces.event.ActionEvent actionEvent) -
isCreateDisabled
public boolean isCreateDisabled() -
isPermissionsDisabled
public boolean isPermissionsDisabled() -
isDeleteDisabled
public boolean isDeleteDisabled() -
getElementRowData
- Specified by:
getElementRowData
in classAbstractLazyListBean<MetadataTemplate>
-
getElementRowKey
- Specified by:
getElementRowKey
in classAbstractLazyListBean<MetadataTemplate>
-