1
19
20 package com.liferay.portlet.documentlibrary.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface DLFileShortcutLocalService {
54 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
55 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
56 throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
59 long fileShortcutId);
60
61 public void deleteDLFileShortcut(long fileShortcutId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public void deleteDLFileShortcut(
66 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
79 long fileShortcutId)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.PortalException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
85 int start, int end) throws com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public int getDLFileShortcutsCount()
89 throws com.liferay.portal.SystemException;
90
91 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
92 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
96 long userId, long folderId, long toFolderId, java.lang.String toName,
97 boolean addCommunityPermissions, boolean addGuestPermissions)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException;
100
101 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
102 java.lang.String uuid, long userId, long folderId, long toFolderId,
103 java.lang.String toName, boolean addCommunityPermissions,
104 boolean addGuestPermissions)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
109 long userId, long folderId, long toFolderId, java.lang.String toName,
110 java.lang.String[] communityPermissions,
111 java.lang.String[] guestPermissions)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114
115 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
116 java.lang.String uuid, long userId, long folderId, long toFolderId,
117 java.lang.String toName, java.lang.Boolean addCommunityPermissions,
118 java.lang.Boolean addGuestPermissions,
119 java.lang.String[] communityPermissions,
120 java.lang.String[] guestPermissions)
121 throws com.liferay.portal.PortalException,
122 com.liferay.portal.SystemException;
123
124 public void addFileShortcutResources(long fileShortcutId,
125 boolean addCommunityPermissions, boolean addGuestPermissions)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException;
128
129 public void addFileShortcutResources(
130 com.liferay.portlet.documentlibrary.model.DLFolder folder,
131 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
132 boolean addCommunityPermissions, boolean addGuestPermissions)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 public void addFileShortcutResources(long fileShortcutId,
137 java.lang.String[] communityPermissions,
138 java.lang.String[] guestPermissions)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException;
141
142 public void addFileShortcutResources(
143 com.liferay.portlet.documentlibrary.model.DLFolder folder,
144 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
145 java.lang.String[] communityPermissions,
146 java.lang.String[] guestPermissions)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException;
149
150 public void deleteFileShortcut(long fileShortcutId)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException;
153
154 public void deleteFileShortcut(
155 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException;
158
159 public void deleteFileShortcuts(long toFolderId, java.lang.String toName)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
165 long fileShortcutId)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException;
168
169 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
170 long userId, long fileShortcutId, long folderId, long toFolderId,
171 java.lang.String toName)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException;
174
175 public void updateFileShortcuts(long oldToFolderId,
176 java.lang.String oldToName, long newToFolderId,
177 java.lang.String newToName) throws com.liferay.portal.SystemException;
178 }