Class SessionsBean.ReservedSessions
java.lang.Object
com.kheops.jmap.server.webadmin.faces.AbstractAdminFacesBean
com.kheops.jmap.server.webadmin.faces.BaseListBean<SessionsBean.ReservedSessionEntry>
com.kheops.jmap.server.webadmin.faces.BaseLazyListBean<SessionsBean.ReservedSessionEntry>
com.kheops.jmap.server.webadmin.faces.SessionsBean.ReservedSessions
- All Implemented Interfaces:
- PrincipalsSelectionBean.PrincipalsSelectionDialogListener
- Enclosing class:
- SessionsBean
public class SessionsBean.ReservedSessions
extends BaseLazyListBean<SessionsBean.ReservedSessionEntry>
implements PrincipalsSelectionBean.PrincipalsSelectionDialogListener
ReservedSessions
- 
Field SummaryFields inherited from class com.kheops.jmap.server.webadmin.faces.BaseListBeanfirst, itemsPerPage, list, selectionFields inherited from class com.kheops.jmap.server.webadmin.faces.AbstractAdminFacesBeanCONFIGURATION_SAVED, GLOBAL_RES_FILE, OPERATION_FINISHED
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanapplyFilter(String filterProperty, Object filteredValue, SessionsBean.ReservedSessionEntry element) To indicate if a given element matches a given filterprotected voiddelete(List<SessionsBean.ReservedSessionEntry> selectedElements) voiddelete(javax.faces.event.ActionEvent event) Re-implementation of delete event to avoid redirect to page action due to all changes made in the table are not saved instantly, so loading the page again would list all elements from the database without the changesvoiddialogClosed(String closeAction, List<PrincipalEntry> selectedEntries) protected StringTo be overriden by subclasses to show specific delete confirmation messagesintgetRemainingReservableSessions(String strSessionType) protected StringTo indicate a literal representation of the object's identifier (a common implementation could be as follows: return this.id)intgetTotalReservedSessions(String strSessionType) protected StringgetUrl()To indicate the url of the page used to manage the current listprotected voidinit()Implement any initialization logic here, other than retrieving the list of elements i.e Controllers initialization.booleanprotected booleankeyMatches(SessionsBean.ReservedSessionEntry element, String rowKey) To indicate if rowKey (a literal representation of a value alike the one returned by getRowIdentifier) matches the key of a given element of the listprotected List<SessionsBean.ReservedSessionEntry> 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 storagevoidsaveReservedUsers(javax.faces.event.ActionEvent actionEvent) Methods inherited from class com.kheops.jmap.server.webadmin.faces.BaseLazyListBeanregisterComparator, setListMethods inherited from class com.kheops.jmap.server.webadmin.faces.BaseListBeanclearSelection, columnsRenderedValueChanged, compareLiterals, getColumnsRendered, getDataList, getDisplayedResult, getFirstOwner, getItemsPerPages, getList, getOwnersOverlay, getRenderedColumnDefaultValue, getSelectedRowsCount, getSelectionType, getToggleableColumns, getTotalResult, getViewUrl, hideNotAccessibleObjects, hideObjectsNotOwnedByMe, isColumnRendered, isDisabledForSelection, isEditionDisabled, isHideNotAccessibleObjects, isHideObjectsNotOwnedByMe, onPageChange, onRowSelection, refresh, refresh, refreshFilteredList, refreshSelection, refreshViewOnDelete, selectAll, selectionExists, selectNone, setColumnRendered, setColumnRendered, setHideNotAccessibleObjects, setHideObjectsNotOwnedByMe, setItemsPerPages, validateDeletionMethods inherited from class com.kheops.jmap.server.webadmin.faces.AbstractAdminFacesBeanaddDuplicateNameErrorMessage, addErrorMessage, addErrorMessage, addGlobalErrorMessage, addGlobalErrorMessage, addGlobalInfoMessage, addGlobalWarningMessage, addInfoMessage, addInfoMessage, addRequiredErrorMessage, addWarningMessage, addWarningMessage, closeDialog, containsCharacters, convertColor, convertColor, createDuplicateNameErrorMessage, displayMessage, findComponent, findObjectByName, formatDouble, formatInteger, getBreadCrumbItems, 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- 
ReservedSessionspublic ReservedSessions()
 
- 
- 
Method Details- 
initprotected void init()Description copied from class:BaseListBeanImplement any initialization logic here, other than retrieving the list of elements i.e Controllers initialization.- Specified by:
- initin class- BaseListBean<SessionsBean.ReservedSessionEntry>
 
- 
dialogClosed- Specified by:
- dialogClosedin interface- PrincipalsSelectionBean.PrincipalsSelectionDialogListener
 
- 
listElementsDescription copied from class:BaseListBeanTo 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:
- listElementsin class- BaseListBean<SessionsBean.ReservedSessionEntry>
- Returns:
- The whole list of elements
 
- 
isAllowMultipleSelectionpublic boolean isAllowMultipleSelection()- Specified by:
- isAllowMultipleSelectionin class- BaseListBean<SessionsBean.ReservedSessionEntry>
 
- 
getUrlDescription copied from class:BaseListBeanTo indicate the url of the page used to manage the current list- Specified by:
- getUrlin class- BaseListBean<SessionsBean.ReservedSessionEntry>
- Returns:
- A relative path like '/projects/projects.jsf'
 
- 
getDeleteConfirmationMessageDescription copied from class:BaseListBeanTo be overriden by subclasses to show specific delete confirmation messages- Overrides:
- getDeleteConfirmationMessagein class- BaseListBean<SessionsBean.ReservedSessionEntry>
 
- 
delete- Specified by:
- deletein class- BaseListBean<SessionsBean.ReservedSessionEntry>
 
- 
deletepublic void delete(javax.faces.event.ActionEvent event) Re-implementation of delete event to avoid redirect to page action due to all changes made in the table are not saved instantly, so loading the page again would list all elements from the database without the changes- Overrides:
- deletein class- BaseListBean<SessionsBean.ReservedSessionEntry>
 
- 
getPrincipalsSelectionBean
- 
getRemainingReservableSessions
- 
getTotalReservedSessions
- 
saveReservedUserspublic void saveReservedUsers(javax.faces.event.ActionEvent actionEvent) 
- 
getCurrentReservedSesssionEntry
- 
keyMatchesDescription copied from class:BaseLazyListBeanTo indicate if rowKey (a literal representation of a value alike the one returned by getRowIdentifier) matches the key of a given element of the list- Specified by:
- keyMatchesin class- BaseLazyListBean<SessionsBean.ReservedSessionEntry>
- Parameters:
- element- An element of the list
- rowKey- a key previously returned by getRowIdentifier()
 
- 
getRowIdentifierDescription copied from class:BaseLazyListBeanTo indicate a literal representation of the object's identifier (a common implementation could be as follows: return this.id)- Specified by:
- getRowIdentifierin class- BaseLazyListBean<SessionsBean.ReservedSessionEntry>
 
- 
applyFilterprotected boolean applyFilter(String filterProperty, Object filteredValue, SessionsBean.ReservedSessionEntry element) Description copied from class:BaseLazyListBeanTo indicate if a given element matches a given filter- Specified by:
- applyFilterin class- BaseLazyListBean<SessionsBean.ReservedSessionEntry>
- Parameters:
- filterProperty- The current property to evaluate
- filteredValue- The value that the user has used as filter criteria
- element- The element of the list whose compliance with the filter is to be returned
- Returns:
- true if the element must be seen as part of the filtered elements result
 
 
-