Package org.ejbca.util.query

Examples of org.ejbca.util.query.IllegalQueryException


    @Override
  public Collection<LogEntry> query(Query query, String viewlogprivileges, String capriviledges, int maxResults) throws IllegalQueryException {
    log.trace(">query()");
    if (capriviledges == null || capriviledges.length() == 0 || !query.isLegalQuery()) {
      throw new IllegalQueryException();
    }
    List<LogEntryData> logEntryDataList = LogEntryData.findByCustomQueryAndPrivileges(entityManager, query.getQueryString(), capriviledges, viewlogprivileges, maxResults+1);
    List<LogEntry> returnval = new ArrayList<LogEntry>();
    for (LogEntryData logEntryData : logEntryDataList) {
      LogEntry logEntry = logEntryData.getLogEntry();
View Full Code Here


            throws AuthorizationDeniedException, IllegalQueryException {
        log.trace(">query()");
        String customQuery = "";
        // Check if query is legal.
        if (query != null && !query.isLegalQuery()) {
            throw new IllegalQueryException();
        }
        if (query != null) {
            customQuery += query.getQueryString();
        }
        if (!caAuthorizationString.equals("") && query != null) {
View Full Code Here

            fetchsize = numberofrows;
        }

        // Check if query is legal.
        if (query != null && !query.isLegalQuery()) {
            throw new IllegalQueryException();
        }

        if (query != null) {
            sqlquery = sqlquery + query.getQueryString();
        }
View Full Code Here

TOP

Related Classes of org.ejbca.util.query.IllegalQueryException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.