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