All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.picketlink.idm.query.IdentityQuery Maven / Gradle / Ivy

The newest version!
package org.picketlink.idm.query;

import java.util.List;
import java.util.Map;

import org.picketlink.idm.model.IdentityType;

/**
 * Unified identity query API
 * 
 * @author Shane Bryzak
 */
public interface IdentityQuery {
//    public enum Operator { equals, notEquals, greaterThan, lessThan };

    IdentityQuery setOffset(int offset);

    IdentityQuery setLimit(int limit);

    IdentityQuery setParameter(QueryParameter param, Object... value);

    Class getIdentityType();

    Map getParameters();

    int getOffset();

    int getLimit();

//    IdentityQuery setParameter(QueryParameter param, Operator operator, Object... value);

    List getResultList();

   /**
    * Count of all query results. It takes into account query parameters, but it doesn't take into account pagination
    * parameter like offset and limit
    *
    * @return count of all query results
    */
    int getResultCount();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy