1
14
15 package com.liferay.portlet.imagegallery.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class IGFolderServiceUtil {
40 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
41 long plid, long parentFolderId, java.lang.String name,
42 java.lang.String description, boolean addCommunityPermissions,
43 boolean addGuestPermissions)
44 throws com.liferay.portal.PortalException,
45 com.liferay.portal.SystemException, java.rmi.RemoteException {
46 return getService()
47 .addFolder(plid, parentFolderId, name, description,
48 addCommunityPermissions, addGuestPermissions);
49 }
50
51 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
52 long plid, long parentFolderId, java.lang.String name,
53 java.lang.String description, java.lang.String[] communityPermissions,
54 java.lang.String[] guestPermissions)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException, java.rmi.RemoteException {
57 return getService()
58 .addFolder(plid, parentFolderId, name, description,
59 communityPermissions, guestPermissions);
60 }
61
62 public static com.liferay.portlet.imagegallery.model.IGFolder copyFolder(
63 long plid, long sourceFolderId, long parentFolderId,
64 java.lang.String name, java.lang.String description,
65 boolean addCommunityPermissions, boolean addGuestPermissions)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException, java.rmi.RemoteException {
68 return getService()
69 .copyFolder(plid, sourceFolderId, parentFolderId, name,
70 description, addCommunityPermissions, addGuestPermissions);
71 }
72
73 public static void deleteFolder(long folderId)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException, java.rmi.RemoteException {
76 getService().deleteFolder(folderId);
77 }
78
79 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
80 long folderId)
81 throws com.liferay.portal.PortalException,
82 com.liferay.portal.SystemException, java.rmi.RemoteException {
83 return getService().getFolder(folderId);
84 }
85
86 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
87 long groupId, long parentFolderId, java.lang.String name)
88 throws com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException, java.rmi.RemoteException {
90 return getService().getFolder(groupId, parentFolderId, name);
91 }
92
93 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
94 long groupId, long parentFolderId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException, java.rmi.RemoteException {
97 return getService().getFolders(groupId, parentFolderId);
98 }
99
100 public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
101 long folderId, long parentFolderId, java.lang.String name,
102 java.lang.String description, boolean mergeWithParentFolder)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException, java.rmi.RemoteException {
105 return getService()
106 .updateFolder(folderId, parentFolderId, name, description,
107 mergeWithParentFolder);
108 }
109
110 public static IGFolderService getService() {
111 if (_service == null) {
112 _service = (IGFolderService)PortalBeanLocatorUtil.locate(IGFolderService.class.getName());
113 }
114
115 return _service;
116 }
117
118 public void setService(IGFolderService service) {
119 _service = service;
120 }
121
122 private static IGFolderService _service;
123 }