001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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 countBySocialUsers(long companyId, long userId,
025                    int socialRelationType, java.lang.String socialRelationTypeComparator,
026                    int status) throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public int countByUser(long userId,
029                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
030                    throws com.liferay.portal.kernel.exception.SystemException;
031    
032            public int countByKeywords(long companyId, java.lang.String keywords,
033                    int status,
034                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
035                    throws com.liferay.portal.kernel.exception.SystemException;
036    
037            public int countByC_FN_MN_LN_SN_EA_S(long companyId,
038                    java.lang.String firstName, java.lang.String middleName,
039                    java.lang.String lastName, java.lang.String screenName,
040                    java.lang.String emailAddress, int status,
041                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
042                    boolean andOperator)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public int countByC_FN_MN_LN_SN_EA_S(long companyId,
046                    java.lang.String[] firstNames, java.lang.String[] middleNames,
047                    java.lang.String[] lastNames, java.lang.String[] screenNames,
048                    java.lang.String[] emailAddresses, int status,
049                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
050                    boolean andOperator)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portal.model.User> findByKeywords(
054                    long companyId, java.lang.String keywords, int status,
055                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
056                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public java.util.List<com.liferay.portal.model.User> findByNoAnnouncementsDeliveries(
060                    java.lang.String type)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public java.util.List<com.liferay.portal.model.User> findByNoContacts()
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            public java.util.List<com.liferay.portal.model.User> findByNoGroups()
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public java.util.List<com.liferay.portal.model.User> findBySocialUsers(
070                    long companyId, long userId, int socialRelationType,
071                    java.lang.String socialRelationTypeComparator, int status, int start,
072                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
073                    throws com.liferay.portal.kernel.exception.SystemException;
074    
075            public java.util.List<com.liferay.portal.model.User> findByC_FN_MN_LN_SN_EA_S(
076                    long companyId, java.lang.String firstName,
077                    java.lang.String middleName, java.lang.String lastName,
078                    java.lang.String screenName, java.lang.String emailAddress, 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    
084            public java.util.List<com.liferay.portal.model.User> findByC_FN_MN_LN_SN_EA_S(
085                    long companyId, java.lang.String[] firstNames,
086                    java.lang.String[] middleNames, java.lang.String[] lastNames,
087                    java.lang.String[] screenNames, java.lang.String[] emailAddresses,
088                    int status,
089                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
090                    boolean andOperator, int start, int end,
091                    com.liferay.portal.kernel.util.OrderByComparator obc)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    }