1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
24   * <a href="DLFolderService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       DLFolderServiceUtil
45   * @generated
46   */
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 }