1
22
23 package com.liferay.portlet.journal.service;
24
25
26
46 public class JournalStructureServiceUtil {
47 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
48 long groupId, java.lang.String structureId, boolean autoStructureId,
49 java.lang.String parentStructureId, java.lang.String name,
50 java.lang.String description, java.lang.String xsd,
51 com.liferay.portal.service.ServiceContext serviceContext)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 return getService()
55 .addStructure(groupId, structureId, autoStructureId,
56 parentStructureId, name, description, xsd, serviceContext);
57 }
58
59 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
60 long groupId, java.lang.String oldStructureId,
61 java.lang.String newStructureId, boolean autoStructureId)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException {
64 return getService()
65 .copyStructure(groupId, oldStructureId, newStructureId,
66 autoStructureId);
67 }
68
69 public static void deleteStructure(long groupId,
70 java.lang.String structureId)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException {
73 getService().deleteStructure(groupId, structureId);
74 }
75
76 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
77 long groupId, java.lang.String structureId)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException {
80 return getService().getStructure(groupId, structureId);
81 }
82
83 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
84 long groupId, java.lang.String structureId,
85 java.lang.String parentStructureId, java.lang.String name,
86 java.lang.String description, java.lang.String xsd,
87 com.liferay.portal.service.ServiceContext serviceContext)
88 throws com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException {
90 return getService()
91 .updateStructure(groupId, structureId, parentStructureId,
92 name, description, xsd, serviceContext);
93 }
94
95 public static JournalStructureService getService() {
96 if (_service == null) {
97 throw new RuntimeException("JournalStructureService is not set");
98 }
99
100 return _service;
101 }
102
103 public void setService(JournalStructureService service) {
104 _service = service;
105 }
106
107 private static JournalStructureService _service;
108 }