0% found this document useful (0 votes)
53 views

User Directory

The document discusses the target files and event handlers used for search, reset, activate, deactivate, and edit user functions in the user directory. It provides details on how the search type is determined, elements are shown/hidden on search criteria change, and search criteria are created and passed to the backend. Validation of search criteria that do not map to database columns is also summarized.

Uploaded by

Vener Guevarra
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

User Directory

The document discusses the target files and event handlers used for search, reset, activate, deactivate, and edit user functions in the user directory. It provides details on how the search type is determined, elements are shown/hidden on search criteria change, and search criteria are created and passed to the backend. Validation of search criteria that do not map to database columns is also summarized.

Uploaded by

Vener Guevarra
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

User Directory

Target files: user-list.jsp, useraccounts.js (grunt), SystemUserListView.js

Search function

Below are events handler in SystemUserListView.js for search functions


switchSearchType handler

This event expects data-search-type attr embedded in clicked button with value either advanced or
basic. This indicates the current selected search type. It will show, hide and reset the fields related to
the selected search type.
onSearchCriteriaChangeEvent handler

show, hide and reset elements determined by selectors embedded in selected search criteria

Sample:

Below is default

Select last name for basic search. It should show textbox with basic-column-value-field class.
onResetClickEvent handler

Show, hide and reset elements determined by selectors embedded in reset button

onSearchClickEvent handler

- Create criteria that will be used in back-end paginated query filters

Sample: basic search for last name


Activate/Deactivate User

Set systemuser status to true or false. Refer to functions below to trace activate and deactivate user.
Edit User

For edit user issues, trace codes below. (Edit user used to be update roles only)
SystemUserResource.java (endpoint)

SystemUserServiceImpl.java

Theres additional layer in service layer that validates NativeQueryCriteria because theres a criterion in
UI that doesnt have corresponding column in database namely the User Type. User Type can either be
employeeId, facultyId, parentId, guardianId or studentId column in SystemUser table.

Below is the additional layer to handle the non-existing column in database


The selected user type is manually converted to where clause filter
NativeQuerySystemUserRepository.java (queries used related to system user). Queries here are quite
complex due to design of SystemUser table.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy