1
22
23 package com.liferay.portlet.imagegallery.service;
24
25
26
47 public class IGFolderServiceUtil {
48 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
49 long parentFolderId, java.lang.String name,
50 java.lang.String description,
51 com.liferay.portal.service.ServiceContext serviceContext)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 return getService()
55 .addFolder(parentFolderId, name, description, serviceContext);
56 }
57
58 public static com.liferay.portlet.imagegallery.model.IGFolder copyFolder(
59 long sourceFolderId, long parentFolderId, java.lang.String name,
60 java.lang.String description,
61 com.liferay.portal.service.ServiceContext serviceContext)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException {
64 return getService()
65 .copyFolder(sourceFolderId, parentFolderId, name,
66 description, serviceContext);
67 }
68
69 public static void deleteFolder(long folderId)
70 throws com.liferay.portal.PortalException,
71 com.liferay.portal.SystemException {
72 getService().deleteFolder(folderId);
73 }
74
75 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
76 long folderId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getFolder(folderId);
80 }
81
82 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
83 long groupId, long parentFolderId, java.lang.String name)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException {
86 return getService().getFolder(groupId, parentFolderId, name);
87 }
88
89 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
90 long groupId, long parentFolderId)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException {
93 return getService().getFolders(groupId, parentFolderId);
94 }
95
96 public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
97 long folderId, long parentFolderId, java.lang.String name,
98 java.lang.String description, boolean mergeWithParentFolder,
99 com.liferay.portal.service.ServiceContext serviceContext)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException {
102 return getService()
103 .updateFolder(folderId, parentFolderId, name, description,
104 mergeWithParentFolder, serviceContext);
105 }
106
107 public static IGFolderService getService() {
108 if (_service == null) {
109 throw new RuntimeException("IGFolderService is not set");
110 }
111
112 return _service;
113 }
114
115 public void setService(IGFolderService service) {
116 _service = service;
117 }
118
119 private static IGFolderService _service;
120 }