1
14
15 package com.liferay.portlet.documentlibrary.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.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.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteDLFileShortcut(
62 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
85 long fileShortcutId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getDLFileShortcutsCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
99 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
103 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
104 boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
108 java.lang.String uuid, long userId, long groupId, long folderId,
109 long toFolderId, java.lang.String toName,
110 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public void addFileShortcutResources(
115 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
116 boolean addCommunityPermissions, boolean addGuestPermissions)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void addFileShortcutResources(
121 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
122 java.lang.String[] communityPermissions,
123 java.lang.String[] guestPermissions)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 public void addFileShortcutResources(long fileShortcutId,
128 boolean addCommunityPermissions, boolean addGuestPermissions)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void addFileShortcutResources(long fileShortcutId,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void deleteFileShortcut(
139 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 public void deleteFileShortcut(long fileShortcutId)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146
147 public void deleteFileShortcuts(long groupId, long toFolderId,
148 java.lang.String toName)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
154 long fileShortcutId)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException;
157
158 public void updateAsset(long userId,
159 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
160 long[] assetCategoryIds, java.lang.String[] assetTagNames)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException;
163
164 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
165 long userId, long fileShortcutId, long folderId, long toFolderId,
166 java.lang.String toName,
167 com.liferay.portal.service.ServiceContext serviceContext)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 public void updateFileShortcuts(long groupId, long oldToFolderId,
172 java.lang.String oldToName, long newToFolderId,
173 java.lang.String newToName)
174 throws com.liferay.portal.kernel.exception.SystemException;
175 }