001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.documentlibrary.service;
022:
023: /**
024: * <a href="DLFileRankLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.documentlibrary.service.DLFileRankLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.documentlibrary.service.DLFileRankLocalService
047: * @see com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceFactory
048: *
049: */
050: public class DLFileRankLocalServiceUtil {
051: public static com.liferay.portlet.documentlibrary.model.DLFileRank addDLFileRank(
052: com.liferay.portlet.documentlibrary.model.DLFileRank model)
053: throws com.liferay.portal.SystemException {
054: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
055: .getService();
056:
057: return dlFileRankLocalService.addDLFileRank(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
064: .getService();
065:
066: return dlFileRankLocalService.dynamicQuery(queryInitializer);
067: }
068:
069: public static java.util.List dynamicQuery(
070: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071: int begin, int end)
072: throws com.liferay.portal.SystemException {
073: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
074: .getService();
075:
076: return dlFileRankLocalService.dynamicQuery(queryInitializer,
077: begin, end);
078: }
079:
080: public static com.liferay.portlet.documentlibrary.model.DLFileRank updateDLFileRank(
081: com.liferay.portlet.documentlibrary.model.DLFileRank model)
082: throws com.liferay.portal.SystemException {
083: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
084: .getService();
085:
086: return dlFileRankLocalService.updateDLFileRank(model);
087: }
088:
089: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence getDLFileEntryPersistence() {
090: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
091: .getService();
092:
093: return dlFileRankLocalService.getDLFileEntryPersistence();
094: }
095:
096: public static void setDLFileEntryPersistence(
097: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence) {
098: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
099: .getService();
100:
101: dlFileRankLocalService
102: .setDLFileEntryPersistence(dlFileEntryPersistence);
103: }
104:
105: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder getDLFileEntryFinder() {
106: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
107: .getService();
108:
109: return dlFileRankLocalService.getDLFileEntryFinder();
110: }
111:
112: public static void setDLFileEntryFinder(
113: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder dlFileEntryFinder) {
114: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
115: .getService();
116:
117: dlFileRankLocalService.setDLFileEntryFinder(dlFileEntryFinder);
118: }
119:
120: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder() {
121: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
122: .getService();
123:
124: return dlFileRankLocalService.getDLFileEntryAndShortcutFinder();
125: }
126:
127: public static void setDLFileEntryAndShortcutFinder(
128: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder) {
129: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
130: .getService();
131:
132: dlFileRankLocalService
133: .setDLFileEntryAndShortcutFinder(dlFileEntryAndShortcutFinder);
134: }
135:
136: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence getDLFileRankPersistence() {
137: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
138: .getService();
139:
140: return dlFileRankLocalService.getDLFileRankPersistence();
141: }
142:
143: public static void setDLFileRankPersistence(
144: com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence) {
145: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
146: .getService();
147:
148: dlFileRankLocalService
149: .setDLFileRankPersistence(dlFileRankPersistence);
150: }
151:
152: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder getDLFileRankFinder() {
153: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
154: .getService();
155:
156: return dlFileRankLocalService.getDLFileRankFinder();
157: }
158:
159: public static void setDLFileRankFinder(
160: com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder dlFileRankFinder) {
161: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
162: .getService();
163:
164: dlFileRankLocalService.setDLFileRankFinder(dlFileRankFinder);
165: }
166:
167: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence getDLFileShortcutPersistence() {
168: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
169: .getService();
170:
171: return dlFileRankLocalService.getDLFileShortcutPersistence();
172: }
173:
174: public static void setDLFileShortcutPersistence(
175: com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence) {
176: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
177: .getService();
178:
179: dlFileRankLocalService
180: .setDLFileShortcutPersistence(dlFileShortcutPersistence);
181: }
182:
183: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder getDLFileShortcutFinder() {
184: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
185: .getService();
186:
187: return dlFileRankLocalService.getDLFileShortcutFinder();
188: }
189:
190: public static void setDLFileShortcutFinder(
191: com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder dlFileShortcutFinder) {
192: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
193: .getService();
194:
195: dlFileRankLocalService
196: .setDLFileShortcutFinder(dlFileShortcutFinder);
197: }
198:
199: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence getDLFileVersionPersistence() {
200: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
201: .getService();
202:
203: return dlFileRankLocalService.getDLFileVersionPersistence();
204: }
205:
206: public static void setDLFileVersionPersistence(
207: com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence) {
208: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
209: .getService();
210:
211: dlFileRankLocalService
212: .setDLFileVersionPersistence(dlFileVersionPersistence);
213: }
214:
215: public static com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence getDLFolderPersistence() {
216: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
217: .getService();
218:
219: return dlFileRankLocalService.getDLFolderPersistence();
220: }
221:
222: public static void setDLFolderPersistence(
223: com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence) {
224: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
225: .getService();
226:
227: dlFileRankLocalService
228: .setDLFolderPersistence(dlFolderPersistence);
229: }
230:
231: public static void afterPropertiesSet() {
232: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
233: .getService();
234:
235: dlFileRankLocalService.afterPropertiesSet();
236: }
237:
238: public static void deleteFileRanks(long userId)
239: throws com.liferay.portal.SystemException {
240: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
241: .getService();
242:
243: dlFileRankLocalService.deleteFileRanks(userId);
244: }
245:
246: public static void deleteFileRanks(long folderId,
247: java.lang.String name)
248: throws com.liferay.portal.SystemException {
249: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
250: .getService();
251:
252: dlFileRankLocalService.deleteFileRanks(folderId, name);
253: }
254:
255: public static java.util.List getFileRanks(long groupId, long userId)
256: throws com.liferay.portal.SystemException {
257: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
258: .getService();
259:
260: return dlFileRankLocalService.getFileRanks(groupId, userId);
261: }
262:
263: public static java.util.List getFileRanks(long groupId,
264: long userId, int begin, int end)
265: throws com.liferay.portal.SystemException {
266: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
267: .getService();
268:
269: return dlFileRankLocalService.getFileRanks(groupId, userId,
270: begin, end);
271: }
272:
273: public static com.liferay.portlet.documentlibrary.model.DLFileRank updateFileRank(
274: long groupId, long companyId, long userId, long folderId,
275: java.lang.String name)
276: throws com.liferay.portal.PortalException,
277: com.liferay.portal.SystemException {
278: DLFileRankLocalService dlFileRankLocalService = DLFileRankLocalServiceFactory
279: .getService();
280:
281: return dlFileRankLocalService.updateFileRank(groupId,
282: companyId, userId, folderId, name);
283: }
284: }
|