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 PortletPreferencesFinder {
024            public long countByO_O_P(long ownerId, int ownerType,
025                    java.lang.String portletId, boolean excludeDefaultPreferences)
026                    throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public long countByO_O_P_P_P(long ownerId, int ownerType, long plid,
029                    java.lang.String portletId, boolean excludeDefaultPreferences)
030                    throws com.liferay.portal.kernel.exception.SystemException;
031    
032            public java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
033                    java.lang.String portletId)
034                    throws com.liferay.portal.kernel.exception.SystemException;
035    
036            public java.util.List<com.liferay.portal.model.PortletPreferences> findByC_G_O_O_P_P(
037                    long companyId, long groupId, long ownerId, int ownerType,
038                    java.lang.String portletId, boolean privateLayout)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    }