1
14
15 package com.liferay.portlet.journal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class JournalStructureServiceUtil {
40 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
41 java.lang.String structureId, boolean autoStructureId, long plid,
42 java.lang.String name, java.lang.String description,
43 java.lang.String xsd, boolean addCommunityPermissions,
44 boolean addGuestPermissions)
45 throws com.liferay.portal.PortalException,
46 com.liferay.portal.SystemException, java.rmi.RemoteException {
47 return getService()
48 .addStructure(structureId, autoStructureId, plid, name,
49 description, xsd, addCommunityPermissions, addGuestPermissions);
50 }
51
52 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
53 java.lang.String structureId, boolean autoStructureId, long plid,
54 java.lang.String name, java.lang.String description,
55 java.lang.String xsd, java.lang.String[] communityPermissions,
56 java.lang.String[] guestPermissions)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException, java.rmi.RemoteException {
59 return getService()
60 .addStructure(structureId, autoStructureId, plid, name,
61 description, xsd, communityPermissions, guestPermissions);
62 }
63
64 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
65 long groupId, java.lang.String oldStructureId,
66 java.lang.String newStructureId, boolean autoStructureId)
67 throws com.liferay.portal.PortalException,
68 com.liferay.portal.SystemException, java.rmi.RemoteException {
69 return getService()
70 .copyStructure(groupId, oldStructureId, newStructureId,
71 autoStructureId);
72 }
73
74 public static void deleteStructure(long groupId,
75 java.lang.String structureId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException, java.rmi.RemoteException {
78 getService().deleteStructure(groupId, structureId);
79 }
80
81 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
82 long groupId, java.lang.String structureId)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return getService().getStructure(groupId, structureId);
86 }
87
88 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
89 long groupId, java.lang.String structureId, java.lang.String name,
90 java.lang.String description, java.lang.String xsd)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException, java.rmi.RemoteException {
93 return getService()
94 .updateStructure(groupId, structureId, name, description, xsd);
95 }
96
97 public static JournalStructureService getService() {
98 if (_service == null) {
99 _service = (JournalStructureService)PortalBeanLocatorUtil.locate(JournalStructureService.class.getName());
100 }
101
102 return _service;
103 }
104
105 public void setService(JournalStructureService service) {
106 _service = service;
107 }
108
109 private static JournalStructureService _service;
110 }