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 DLFileEntryService {
50 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
51 long folderId, java.lang.String name, java.lang.String title,
52 java.lang.String description, java.lang.String[] tagsEntries,
53 java.lang.String extraSettings, byte[] bytes,
54 boolean addCommunityPermissions, boolean addGuestPermissions)
55 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException;
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[] tagsEntries,
61 java.lang.String extraSettings, byte[] bytes,
62 java.lang.String[] communityPermissions,
63 java.lang.String[] guestPermissions)
64 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException;
66
67 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
68 long folderId, java.lang.String name, java.lang.String title,
69 java.lang.String description, java.lang.String[] tagsEntries,
70 java.lang.String extraSettings, java.io.File file,
71 boolean addCommunityPermissions, boolean addGuestPermissions)
72 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
76 long folderId, java.lang.String name, java.lang.String title,
77 java.lang.String description, java.lang.String[] tagsEntries,
78 java.lang.String extraSettings, java.io.File file,
79 java.lang.String[] communityPermissions,
80 java.lang.String[] guestPermissions)
81 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
82 com.liferay.portal.SystemException;
83
84 public void deleteFileEntry(long folderId, java.lang.String name)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException, java.rmi.RemoteException;
87
88 public void deleteFileEntry(long folderId, java.lang.String name,
89 double version)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException, java.rmi.RemoteException;
92
93 public void deleteFileEntryByTitle(long folderId,
94 java.lang.String titleWithExtension)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException, java.rmi.RemoteException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
100 long folderId)
101 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
102 com.liferay.portal.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
106 long folderId, java.lang.String name)
107 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
108 com.liferay.portal.SystemException;
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
112 long folderId, java.lang.String titleWithExtension)
113 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public com.liferay.portal.model.Lock getFileEntryLock(long folderId,
118 java.lang.String name)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException, java.rmi.RemoteException;
121
122 public com.liferay.portal.model.Lock lockFileEntry(long folderId,
123 java.lang.String name)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException, java.rmi.RemoteException;
126
127 public com.liferay.portal.model.Lock lockFileEntry(long folderId,
128 java.lang.String name, java.lang.String owner, long expirationTime)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException, java.rmi.RemoteException;
131
132 public com.liferay.portal.model.Lock refreshFileEntryLock(
133 java.lang.String lockUuid, long expirationTime)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException, java.rmi.RemoteException;
136
137 public void unlockFileEntry(long folderId, java.lang.String name)
138 throws com.liferay.portal.SystemException, java.rmi.RemoteException;
139
140 public void unlockFileEntry(long folderId, java.lang.String name,
141 java.lang.String lockUuid)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException, java.rmi.RemoteException;
144
145 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
146 long folderId, long newFolderId, java.lang.String name,
147 java.lang.String sourceFileName, java.lang.String title,
148 java.lang.String description, java.lang.String[] tagsEntries,
149 java.lang.String extraSettings, byte[] bytes)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException, java.rmi.RemoteException;
152
153 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
154 long folderId, long newFolderId, java.lang.String name,
155 java.lang.String sourceFileName, java.lang.String title,
156 java.lang.String description, java.lang.String[] tagsEntries,
157 java.lang.String extraSettings, java.io.File file)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException, java.rmi.RemoteException;
160 }