1
14
15 package com.liferay.portlet.documentlibrary.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface DLFileShortcutLocalService {
50 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
51 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
55 long fileShortcutId);
56
57 public void deleteDLFileShortcut(long fileShortcutId)
58 throws com.liferay.portal.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteDLFileShortcut(
62 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
63 throws com.liferay.portal.SystemException;
64
65 @SuppressWarnings("rawtypes")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 @SuppressWarnings("rawtypes")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException;
74
75 @SuppressWarnings("rawtypes")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.SystemException;
81
82 public int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
88 long fileShortcutId)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
100 int start, int end) throws com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public int getDLFileShortcutsCount()
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
107 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
108 throws com.liferay.portal.SystemException;
109
110 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
111 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
112 boolean merge) throws com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
115 long userId, long folderId, long toFolderId, java.lang.String toName,
116 boolean addCommunityPermissions, boolean addGuestPermissions)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException;
119
120 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
121 long userId, long folderId, long toFolderId, java.lang.String toName,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException;
125
126 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
127 long userId, long folderId, long toFolderId, java.lang.String toName,
128 java.lang.String[] communityPermissions,
129 java.lang.String[] guestPermissions)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException;
132
133 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
134 java.lang.String uuid, long userId, long folderId, long toFolderId,
135 java.lang.String toName, boolean addCommunityPermissions,
136 boolean addGuestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException;
139
140 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
141 java.lang.String uuid, long userId, long folderId, long toFolderId,
142 java.lang.String toName, java.lang.Boolean addCommunityPermissions,
143 java.lang.Boolean addGuestPermissions,
144 java.lang.String[] communityPermissions,
145 java.lang.String[] guestPermissions)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
150 java.lang.String uuid, long userId, long folderId, long toFolderId,
151 java.lang.String toName,
152 com.liferay.portal.service.ServiceContext serviceContext)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException;
155
156 public void addFileShortcutResources(
157 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
158 boolean addCommunityPermissions, boolean addGuestPermissions)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException;
161
162 public void addFileShortcutResources(
163 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
164 java.lang.String[] communityPermissions,
165 java.lang.String[] guestPermissions)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException;
168
169 public void addFileShortcutResources(long fileShortcutId,
170 boolean addCommunityPermissions, boolean addGuestPermissions)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException;
173
174 public void addFileShortcutResources(long fileShortcutId,
175 java.lang.String[] communityPermissions,
176 java.lang.String[] guestPermissions)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException;
179
180 public void deleteFileShortcut(
181 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException;
184
185 public void deleteFileShortcut(long fileShortcutId)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException;
188
189 public void deleteFileShortcuts(long toFolderId, java.lang.String toName)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
195 long fileShortcutId)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException;
198
199 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
200 long userId, long fileShortcutId, long folderId, long toFolderId,
201 java.lang.String toName)
202 throws com.liferay.portal.PortalException,
203 com.liferay.portal.SystemException;
204
205 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
206 long userId, long fileShortcutId, long folderId, long toFolderId,
207 java.lang.String toName,
208 com.liferay.portal.service.ServiceContext serviceContext)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException;
211
212 public void updateFileShortcuts(long oldToFolderId,
213 java.lang.String oldToName, long newToFolderId,
214 java.lang.String newToName) throws com.liferay.portal.SystemException;
215
216 public void updateTagsAsset(long userId,
217 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
218 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
219 throws com.liferay.portal.PortalException,
220 com.liferay.portal.SystemException;
221 }