1
22
23 package com.liferay.portlet.documentlibrary.service;
24
25
26
42 public class DLFileEntryServiceWrapper implements DLFileEntryService {
43 public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
44 _dlFileEntryService = dlFileEntryService;
45 }
46
47 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
48 long folderId, java.lang.String name, java.lang.String title,
49 java.lang.String description, java.lang.String extraSettings,
50 java.io.File file,
51 com.liferay.portal.service.ServiceContext serviceContext)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 return _dlFileEntryService.addFileEntry(folderId, name, title,
55 description, extraSettings, file, serviceContext);
56 }
57
58 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
59 long folderId, java.lang.String name, java.lang.String title,
60 java.lang.String description, java.lang.String extraSettings,
61 byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException {
64 return _dlFileEntryService.addFileEntry(folderId, name, title,
65 description, extraSettings, bytes, serviceContext);
66 }
67
68 public void deleteFileEntry(long folderId, java.lang.String name)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException {
71 _dlFileEntryService.deleteFileEntry(folderId, name);
72 }
73
74 public void deleteFileEntry(long folderId, java.lang.String name,
75 double version)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException {
78 _dlFileEntryService.deleteFileEntry(folderId, name, version);
79 }
80
81 public void deleteFileEntryByTitle(long folderId,
82 java.lang.String titleWithExtension)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException {
85 _dlFileEntryService.deleteFileEntryByTitle(folderId, titleWithExtension);
86 }
87
88 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
89 long folderId)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException {
92 return _dlFileEntryService.getFileEntries(folderId);
93 }
94
95 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
96 long folderId, java.lang.String name)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return _dlFileEntryService.getFileEntry(folderId, name);
100 }
101
102 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
103 long folderId, java.lang.String titleWithExtension)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 return _dlFileEntryService.getFileEntryByTitle(folderId,
107 titleWithExtension);
108 }
109
110 public boolean hasFileEntryLock(long folderId, java.lang.String name)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException {
113 return _dlFileEntryService.hasFileEntryLock(folderId, name);
114 }
115
116 public com.liferay.portal.model.Lock lockFileEntry(long folderId,
117 java.lang.String name)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException {
120 return _dlFileEntryService.lockFileEntry(folderId, name);
121 }
122
123 public com.liferay.portal.model.Lock lockFileEntry(long folderId,
124 java.lang.String name, java.lang.String owner, long expirationTime)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException {
127 return _dlFileEntryService.lockFileEntry(folderId, name, owner,
128 expirationTime);
129 }
130
131 public com.liferay.portal.model.Lock refreshFileEntryLock(
132 java.lang.String lockUuid, long expirationTime)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException {
135 return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
136 }
137
138 public void unlockFileEntry(long folderId, java.lang.String name)
139 throws com.liferay.portal.SystemException {
140 _dlFileEntryService.unlockFileEntry(folderId, name);
141 }
142
143 public void unlockFileEntry(long folderId, java.lang.String name,
144 java.lang.String lockUuid)
145 throws com.liferay.portal.PortalException,
146 com.liferay.portal.SystemException {
147 _dlFileEntryService.unlockFileEntry(folderId, name, lockUuid);
148 }
149
150 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
151 long folderId, long newFolderId, java.lang.String name,
152 java.lang.String sourceFileName, java.lang.String title,
153 java.lang.String description, java.lang.String extraSettings,
154 byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
155 throws com.liferay.portal.PortalException,
156 com.liferay.portal.SystemException {
157 return _dlFileEntryService.updateFileEntry(folderId, newFolderId, name,
158 sourceFileName, title, description, extraSettings, bytes,
159 serviceContext);
160 }
161
162 public boolean verifyFileEntryLock(long folderId, java.lang.String name,
163 java.lang.String lockUuid)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException {
166 return _dlFileEntryService.verifyFileEntryLock(folderId, name, lockUuid);
167 }
168
169 public DLFileEntryService getWrappedDLFileEntryService() {
170 return _dlFileEntryService;
171 }
172
173 private DLFileEntryService _dlFileEntryService;
174 }