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