001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface UserFinder {
024            public int countByUser(long userId,
025                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
026                    throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public int countByKeywords(long companyId, java.lang.String keywords,
029                    int status,
030                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
031                    throws com.liferay.portal.kernel.exception.SystemException;
032    
033            public int countByC_FN_MN_LN_SN_EA_S(long companyId,
034                    java.lang.String firstName, java.lang.String middleName,
035                    java.lang.String lastName, java.lang.String screenName,
036                    java.lang.String emailAddress, int status,
037                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
038                    boolean andOperator)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public int countByC_FN_MN_LN_SN_EA_S(long companyId,
042                    java.lang.String[] firstNames, java.lang.String[] middleNames,
043                    java.lang.String[] lastNames, java.lang.String[] screenNames,
044                    java.lang.String[] emailAddresses, int status,
045                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
046                    boolean andOperator)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public java.util.List<com.liferay.portal.model.User> findByKeywords(
050                    long companyId, java.lang.String keywords, int status,
051                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
052                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portal.model.User> findByNoAnnouncementsDeliveries(
056                    java.lang.String type)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portal.model.User> findByNoContacts()
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public java.util.List<com.liferay.portal.model.User> findByNoGroups()
063                    throws com.liferay.portal.kernel.exception.SystemException;
064    
065            public java.util.List<com.liferay.portal.model.User> findByC_FN_MN_LN_SN_EA_S(
066                    long companyId, java.lang.String firstName,
067                    java.lang.String middleName, java.lang.String lastName,
068                    java.lang.String screenName, java.lang.String emailAddress, int status,
069                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
070                    boolean andOperator, int start, int end,
071                    com.liferay.portal.kernel.util.OrderByComparator obc)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            public java.util.List<com.liferay.portal.model.User> findByC_FN_MN_LN_SN_EA_S(
075                    long companyId, java.lang.String[] firstNames,
076                    java.lang.String[] middleNames, java.lang.String[] lastNames,
077                    java.lang.String[] screenNames, java.lang.String[] emailAddresses,
078                    int status,
079                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
080                    boolean andOperator, int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator obc)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    }