001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface DLFileShortcutLocalService {
043 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
044 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
048 long fileShortcutId);
049
050 public void deleteDLFileShortcut(long fileShortcutId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteDLFileShortcut(
055 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
081 long fileShortcutId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
087 java.lang.String uuid, long groupId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
093 int start, int end)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public int getDLFileShortcutsCount()
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
101 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
105 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
106 boolean merge)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
110 long userId, long groupId, long folderId, long toFolderId,
111 java.lang.String toName,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 public void addFileShortcutResources(
117 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
118 boolean addCommunityPermissions, boolean addGuestPermissions)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121
122 public void addFileShortcutResources(
123 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
124 java.lang.String[] communityPermissions,
125 java.lang.String[] guestPermissions)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 public void addFileShortcutResources(long fileShortcutId,
130 boolean addCommunityPermissions, boolean addGuestPermissions)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException;
133
134 public void addFileShortcutResources(long fileShortcutId,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public void deleteFileShortcut(
141 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 public void deleteFileShortcut(long fileShortcutId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 public void deleteFileShortcuts(long groupId, long toFolderId,
150 java.lang.String toName)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
156 long fileShortcutId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160 public void updateAsset(long userId,
161 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
162 long[] assetCategoryIds, java.lang.String[] assetTagNames)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166 public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
167 long userId, long fileShortcutId, long folderId, long toFolderId,
168 java.lang.String toName,
169 com.liferay.portal.service.ServiceContext serviceContext)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException;
172
173 public void updateFileShortcuts(long groupId, long oldToFolderId,
174 java.lang.String oldToName, long newToFolderId,
175 java.lang.String newToName)
176 throws com.liferay.portal.kernel.exception.SystemException;
177 }