1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.documentlibrary.service.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  import com.liferay.portal.kernel.util.ReferenceRegistry;
19  
20  /**
21   * <a href="DLFileEntryFinderUtil.java.html"><b><i>View Source</i></b></a>
22   *
23   * @author Brian Wing Shun Chan
24   */
25  public class DLFileEntryFinderUtil {
26      public static int countByFolderIds(java.util.List<java.lang.Long> folderIds)
27          throws com.liferay.portal.SystemException {
28          return getFinder().countByFolderIds(folderIds);
29      }
30  
31      public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByNoAssets()
32          throws com.liferay.portal.SystemException {
33          return getFinder().findByNoAssets();
34      }
35  
36      public static DLFileEntryFinder getFinder() {
37          if (_finder == null) {
38              _finder = (DLFileEntryFinder)PortalBeanLocatorUtil.locate(DLFileEntryFinder.class.getName());
39  
40              ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
41                  "_finder");
42          }
43  
44          return _finder;
45      }
46  
47      public void setFinder(DLFileEntryFinder finder) {
48          _finder = finder;
49  
50          ReferenceRegistry.registerReference(DLFileEntryFinderUtil.class,
51              "_finder");
52      }
53  
54      private static DLFileEntryFinder _finder;
55  }