Search in sources :

Example 1 with MatcherKey

use of org.jmesa.core.filter.MatcherKey in project OpenClinica by OpenClinica.

the class AuditUserLoginTableFactory method configureTableFacade.

@Override
public void configureTableFacade(HttpServletResponse response, TableFacade tableFacade) {
    super.configureTableFacade(response, tableFacade);
    tableFacade.addFilterMatcher(new MatcherKey(Date.class, "loginAttemptDate"), new DateFilterMatcher("yyyy-MM-dd HH:mm"));
    tableFacade.addFilterMatcher(new MatcherKey(LoginStatus.class, "loginStatus"), new AvailableFilterMatcher());
}
Also used : LoginStatus(org.akaza.openclinica.domain.technicaladmin.LoginStatus) DateFilterMatcher(org.jmesa.core.filter.DateFilterMatcher) Date(java.util.Date) MatcherKey(org.jmesa.core.filter.MatcherKey)

Example 2 with MatcherKey

use of org.jmesa.core.filter.MatcherKey in project OpenClinica by OpenClinica.

the class StudyStatisticsTableFactory method configureTableFacade.

@Override
public void configureTableFacade(HttpServletResponse response, TableFacade tableFacade) {
    super.configureTableFacade(response, tableFacade);
    tableFacade.addFilterMatcher(new MatcherKey(Date.class, "loginAttemptDate"), new DateFilterMatcher("yyyy-MM-dd hh:mm"));
}
Also used : DateFilterMatcher(org.jmesa.core.filter.DateFilterMatcher) Date(java.util.Date) MatcherKey(org.jmesa.core.filter.MatcherKey)

Example 3 with MatcherKey

use of org.jmesa.core.filter.MatcherKey in project OpenClinica by OpenClinica.

the class StudySubjectStatusStatisticsTableFactory method configureTableFacade.

@Override
public void configureTableFacade(HttpServletResponse response, TableFacade tableFacade) {
    super.configureTableFacade(response, tableFacade);
    tableFacade.addFilterMatcher(new MatcherKey(Date.class, "loginAttemptDate"), new DateFilterMatcher("yyyy-MM-dd hh:mm"));
}
Also used : DateFilterMatcher(org.jmesa.core.filter.DateFilterMatcher) Date(java.util.Date) MatcherKey(org.jmesa.core.filter.MatcherKey)

Example 4 with MatcherKey

use of org.jmesa.core.filter.MatcherKey in project OpenClinica by OpenClinica.

the class ListDiscNotesForCRFTableFactory method configureTableFacade.

@Override
public void configureTableFacade(HttpServletResponse response, TableFacade tableFacade) {
    super.configureTableFacade(response, tableFacade);
    getColumnNamesMap();
    tableFacade.addFilterMatcher(new MatcherKey(Character.class), new CharFilterMatcher());
    tableFacade.addFilterMatcher(new MatcherKey(Status.class), new StatusFilterMatcher());
    tableFacade.addFilterMatcher(new MatcherKey(String.class, "event.status"), new SubjectEventStatusFilterMatcher());
    // crf columns filtering
    for (int i = 3; i < columnNames.length - 1; i++) {
        tableFacade.addFilterMatcher(new MatcherKey(String.class, columnNames[i]), new SubjectEventCRFStatusFilterMatcher());
    }
}
Also used : Status(org.akaza.openclinica.bean.core.Status) ResolutionStatus(org.akaza.openclinica.bean.core.ResolutionStatus) SubjectEventStatus(org.akaza.openclinica.bean.core.SubjectEventStatus) MatcherKey(org.jmesa.core.filter.MatcherKey)

Example 5 with MatcherKey

use of org.jmesa.core.filter.MatcherKey in project OpenClinica by OpenClinica.

the class ListStudySubjectTableFactory method configureTableFacade.

@Override
public void configureTableFacade(HttpServletResponse response, TableFacade tableFacade) {
    super.configureTableFacade(response, tableFacade);
    // getColumnNames();
    getColumnNamesMap();
    tableFacade.addFilterMatcher(new MatcherKey(Character.class), new CharFilterMatcher());
    tableFacade.addFilterMatcher(new MatcherKey(Status.class), new StatusFilterMatcher());
    for (int i = 6; i < 6 + studyGroupClasses.size(); i++) {
        tableFacade.addFilterMatcher(new MatcherKey(Integer.class, columnNames[i]), new SubjectGroupFilterMatcher());
    }
    for (int i = 6 + studyGroupClasses.size(); i < columnNames.length - 1; i++) {
        tableFacade.addFilterMatcher(new MatcherKey(Integer.class, columnNames[i]), new SubjectEventStatusFilterMatcher());
    }
}
Also used : Status(org.akaza.openclinica.bean.core.Status) SubjectEventStatus(org.akaza.openclinica.bean.core.SubjectEventStatus) MatcherKey(org.jmesa.core.filter.MatcherKey)

Aggregations

MatcherKey (org.jmesa.core.filter.MatcherKey)15 Date (java.util.Date)8 DateFilterMatcher (org.jmesa.core.filter.DateFilterMatcher)8 Status (org.akaza.openclinica.bean.core.Status)6 SubjectEventStatus (org.akaza.openclinica.bean.core.SubjectEventStatus)4 ResourceBundle (java.util.ResourceBundle)2 ResolutionStatus (org.akaza.openclinica.bean.core.ResolutionStatus)2 UserAccountBean (org.akaza.openclinica.bean.login.UserAccountBean)2 SDVToolbar (org.akaza.openclinica.controller.helper.table.SDVToolbar)2 LoginStatus (org.akaza.openclinica.domain.technicaladmin.LoginStatus)2 TableFacade (org.jmesa.facade.TableFacade)2 TableFacadeFactory.createTableFacade (org.jmesa.facade.TableFacadeFactory.createTableFacade)2 HtmlColumn (org.jmesa.view.html.component.HtmlColumn)2 HtmlRow (org.jmesa.view.html.component.HtmlRow)2 HtmlTable (org.jmesa.view.html.component.HtmlTable)2 DefaultActionsEditor (org.akaza.openclinica.control.DefaultActionsEditor)1