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 DLFolderService {
50 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
51 long groupId, long parentFolderId, java.lang.String name,
52 java.lang.String description,
53 com.liferay.portal.service.ServiceContext serviceContext)
54 throws com.liferay.portal.kernel.exception.PortalException,
55 com.liferay.portal.kernel.exception.SystemException;
56
57 public com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(
58 long groupId, long sourceFolderId, long parentFolderId,
59 java.lang.String name, java.lang.String description,
60 com.liferay.portal.service.ServiceContext serviceContext)
61 throws com.liferay.portal.kernel.exception.PortalException,
62 com.liferay.portal.kernel.exception.SystemException,
63 java.rmi.RemoteException;
64
65 public void deleteFolder(long folderId)
66 throws com.liferay.portal.kernel.exception.PortalException,
67 com.liferay.portal.kernel.exception.SystemException,
68 java.rmi.RemoteException;
69
70 public void deleteFolder(long groupId, long parentFolderId,
71 java.lang.String name)
72 throws com.liferay.portal.kernel.exception.PortalException,
73 com.liferay.portal.kernel.exception.SystemException,
74 java.rmi.RemoteException;
75
76 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
77 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
78 long folderId)
79 throws com.liferay.portal.kernel.exception.PortalException,
80 com.liferay.portal.kernel.exception.SystemException;
81
82 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
84 long groupId, long parentFolderId, java.lang.String name)
85 throws com.liferay.portal.kernel.exception.PortalException,
86 com.liferay.portal.kernel.exception.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public long getFolderId(long groupId, long parentFolderId,
90 java.lang.String name)
91 throws com.liferay.portal.kernel.exception.PortalException,
92 com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
96 long groupId, long parentFolderId)
97 throws com.liferay.portal.kernel.exception.PortalException,
98 com.liferay.portal.kernel.exception.SystemException;
99
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public boolean hasInheritableLock(long folderId)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException;
104
105 public com.liferay.portal.model.Lock lockFolder(long folderId)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException,
108 java.rmi.RemoteException;
109
110 public com.liferay.portal.model.Lock lockFolder(long folderId,
111 java.lang.String owner, boolean inheritable, long expirationTime)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException,
114 java.rmi.RemoteException;
115
116 public com.liferay.portal.model.Lock refreshFolderLock(
117 java.lang.String lockUuid, long expirationTime)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 public void unlockFolder(long groupId, long folderId,
122 java.lang.String lockUuid)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public void unlockFolder(long groupId, long parentFolderId,
127 java.lang.String name, java.lang.String lockUuid)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
132 long folderId, long parentFolderId, java.lang.String name,
133 java.lang.String description,
134 com.liferay.portal.service.ServiceContext serviceContext)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException,
137 java.rmi.RemoteException;
138
139 public boolean verifyInheritableLock(long folderId,
140 java.lang.String lockUuid)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException;
143 }