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="DLFileVersionLocalServiceUtil.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.DLFileVersionLocalService</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.DLFileVersionLocalServiceFactory</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.DLFileVersionLocalService
047: * @see com.liferay.portlet.documentlibrary.service.DLFileVersionLocalServiceFactory
048: *
049: */
050: public class DLFileVersionLocalServiceUtil {
051: public static com.liferay.portlet.documentlibrary.model.DLFileVersion addDLFileVersion(
052: com.liferay.portlet.documentlibrary.model.DLFileVersion model)
053: throws com.liferay.portal.SystemException {
054: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
055: .getService();
056:
057: return dlFileVersionLocalService.addDLFileVersion(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: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
064: .getService();
065:
066: return dlFileVersionLocalService.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: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
074: .getService();
075:
076: return dlFileVersionLocalService.dynamicQuery(queryInitializer,
077: begin, end);
078: }
079:
080: public static com.liferay.portlet.documentlibrary.model.DLFileVersion updateDLFileVersion(
081: com.liferay.portlet.documentlibrary.model.DLFileVersion model)
082: throws com.liferay.portal.SystemException {
083: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
084: .getService();
085:
086: return dlFileVersionLocalService.updateDLFileVersion(model);
087: }
088:
089: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence getDLFileEntryPersistence() {
090: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
091: .getService();
092:
093: return dlFileVersionLocalService.getDLFileEntryPersistence();
094: }
095:
096: public static void setDLFileEntryPersistence(
097: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence) {
098: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
099: .getService();
100:
101: dlFileVersionLocalService
102: .setDLFileEntryPersistence(dlFileEntryPersistence);
103: }
104:
105: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder getDLFileEntryFinder() {
106: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
107: .getService();
108:
109: return dlFileVersionLocalService.getDLFileEntryFinder();
110: }
111:
112: public static void setDLFileEntryFinder(
113: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder dlFileEntryFinder) {
114: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
115: .getService();
116:
117: dlFileVersionLocalService
118: .setDLFileEntryFinder(dlFileEntryFinder);
119: }
120:
121: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder() {
122: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
123: .getService();
124:
125: return dlFileVersionLocalService
126: .getDLFileEntryAndShortcutFinder();
127: }
128:
129: public static void setDLFileEntryAndShortcutFinder(
130: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder) {
131: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
132: .getService();
133:
134: dlFileVersionLocalService
135: .setDLFileEntryAndShortcutFinder(dlFileEntryAndShortcutFinder);
136: }
137:
138: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence getDLFileRankPersistence() {
139: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
140: .getService();
141:
142: return dlFileVersionLocalService.getDLFileRankPersistence();
143: }
144:
145: public static void setDLFileRankPersistence(
146: com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence) {
147: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
148: .getService();
149:
150: dlFileVersionLocalService
151: .setDLFileRankPersistence(dlFileRankPersistence);
152: }
153:
154: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder getDLFileRankFinder() {
155: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
156: .getService();
157:
158: return dlFileVersionLocalService.getDLFileRankFinder();
159: }
160:
161: public static void setDLFileRankFinder(
162: com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder dlFileRankFinder) {
163: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
164: .getService();
165:
166: dlFileVersionLocalService.setDLFileRankFinder(dlFileRankFinder);
167: }
168:
169: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence getDLFileShortcutPersistence() {
170: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
171: .getService();
172:
173: return dlFileVersionLocalService.getDLFileShortcutPersistence();
174: }
175:
176: public static void setDLFileShortcutPersistence(
177: com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence) {
178: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
179: .getService();
180:
181: dlFileVersionLocalService
182: .setDLFileShortcutPersistence(dlFileShortcutPersistence);
183: }
184:
185: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder getDLFileShortcutFinder() {
186: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
187: .getService();
188:
189: return dlFileVersionLocalService.getDLFileShortcutFinder();
190: }
191:
192: public static void setDLFileShortcutFinder(
193: com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder dlFileShortcutFinder) {
194: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
195: .getService();
196:
197: dlFileVersionLocalService
198: .setDLFileShortcutFinder(dlFileShortcutFinder);
199: }
200:
201: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence getDLFileVersionPersistence() {
202: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
203: .getService();
204:
205: return dlFileVersionLocalService.getDLFileVersionPersistence();
206: }
207:
208: public static void setDLFileVersionPersistence(
209: com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence) {
210: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
211: .getService();
212:
213: dlFileVersionLocalService
214: .setDLFileVersionPersistence(dlFileVersionPersistence);
215: }
216:
217: public static com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence getDLFolderPersistence() {
218: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
219: .getService();
220:
221: return dlFileVersionLocalService.getDLFolderPersistence();
222: }
223:
224: public static void setDLFolderPersistence(
225: com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence) {
226: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
227: .getService();
228:
229: dlFileVersionLocalService
230: .setDLFolderPersistence(dlFolderPersistence);
231: }
232:
233: public static void afterPropertiesSet() {
234: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
235: .getService();
236:
237: dlFileVersionLocalService.afterPropertiesSet();
238: }
239:
240: public static java.util.List getFileVersions(long folderId,
241: java.lang.String name)
242: throws com.liferay.portal.SystemException {
243: DLFileVersionLocalService dlFileVersionLocalService = DLFileVersionLocalServiceFactory
244: .getService();
245:
246: return dlFileVersionLocalService
247: .getFileVersions(folderId, name);
248: }
249: }
|