001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
036 public class JournalStructureServiceUtil {
037
042
043
048 public static java.lang.String getBeanIdentifier() {
049 return getService().getBeanIdentifier();
050 }
051
052
057 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
058 getService().setBeanIdentifier(beanIdentifier);
059 }
060
061 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
062 long groupId, java.lang.String structureId, boolean autoStructureId,
063 java.lang.String parentStructureId,
064 java.util.Map<java.util.Locale, java.lang.String> nameMap,
065 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066 java.lang.String xsd,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService()
071 .addStructure(groupId, structureId, autoStructureId,
072 parentStructureId, nameMap, descriptionMap, xsd, serviceContext);
073 }
074
075 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
076 long groupId, java.lang.String oldStructureId,
077 java.lang.String newStructureId, boolean autoStructureId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService()
081 .copyStructure(groupId, oldStructureId, newStructureId,
082 autoStructureId);
083 }
084
085 public static void deleteStructure(long groupId,
086 java.lang.String structureId)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 getService().deleteStructure(groupId, structureId);
090 }
091
092 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
093 long groupId, java.lang.String structureId)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 return getService().getStructure(groupId, structureId);
097 }
098
099 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
100 long groupId, java.lang.String structureId,
101 boolean includeGlobalStructures)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException {
104 return getService()
105 .getStructure(groupId, structureId, includeGlobalStructures);
106 }
107
108 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
109 long groupId)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().getStructures(groupId);
112 }
113
114 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
115 long[] groupIds)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().getStructures(groupIds);
118 }
119
120 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
121 long companyId, long[] groupIds, java.lang.String keywords, int start,
122 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.kernel.exception.SystemException {
124 return getService()
125 .search(companyId, groupIds, keywords, start, end, obc);
126 }
127
128 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
129 long companyId, long[] groupIds, java.lang.String structureId,
130 java.lang.String name, java.lang.String description,
131 boolean andOperator, int start, int end,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getService()
135 .search(companyId, groupIds, structureId, name, description,
136 andOperator, start, end, obc);
137 }
138
139 public static int searchCount(long companyId, long[] groupIds,
140 java.lang.String keywords)
141 throws com.liferay.portal.kernel.exception.SystemException {
142 return getService().searchCount(companyId, groupIds, keywords);
143 }
144
145 public static int searchCount(long companyId, long[] groupIds,
146 java.lang.String structureId, java.lang.String name,
147 java.lang.String description, boolean andOperator)
148 throws com.liferay.portal.kernel.exception.SystemException {
149 return getService()
150 .searchCount(companyId, groupIds, structureId, name,
151 description, andOperator);
152 }
153
154 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
155 long groupId, java.lang.String structureId,
156 java.lang.String parentStructureId,
157 java.util.Map<java.util.Locale, java.lang.String> nameMap,
158 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
159 java.lang.String xsd,
160 com.liferay.portal.service.ServiceContext serviceContext)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException {
163 return getService()
164 .updateStructure(groupId, structureId, parentStructureId,
165 nameMap, descriptionMap, xsd, serviceContext);
166 }
167
168 public static JournalStructureService getService() {
169 if (_service == null) {
170 _service = (JournalStructureService)PortalBeanLocatorUtil.locate(JournalStructureService.class.getName());
171
172 ReferenceRegistry.registerReference(JournalStructureServiceUtil.class,
173 "_service");
174 }
175
176 return _service;
177 }
178
179
182 public void setService(JournalStructureService service) {
183 }
184
185 private static JournalStructureService _service;
186 }