001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class JournalStructureServiceUtil {
037 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
038 long groupId, java.lang.String structureId, boolean autoStructureId,
039 java.lang.String parentStructureId, java.lang.String name,
040 java.lang.String description, java.lang.String xsd,
041 com.liferay.portal.service.ServiceContext serviceContext)
042 throws com.liferay.portal.kernel.exception.PortalException,
043 com.liferay.portal.kernel.exception.SystemException {
044 return getService()
045 .addStructure(groupId, structureId, autoStructureId,
046 parentStructureId, name, description, xsd, serviceContext);
047 }
048
049 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
050 long groupId, java.lang.String oldStructureId,
051 java.lang.String newStructureId, boolean autoStructureId)
052 throws com.liferay.portal.kernel.exception.PortalException,
053 com.liferay.portal.kernel.exception.SystemException {
054 return getService()
055 .copyStructure(groupId, oldStructureId, newStructureId,
056 autoStructureId);
057 }
058
059 public static void deleteStructure(long groupId,
060 java.lang.String structureId)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 getService().deleteStructure(groupId, structureId);
064 }
065
066 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
067 long groupId, java.lang.String structureId)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService().getStructure(groupId, structureId);
071 }
072
073 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
074 long groupId, java.lang.String structureId,
075 java.lang.String parentStructureId, java.lang.String name,
076 java.lang.String description, java.lang.String xsd,
077 com.liferay.portal.service.ServiceContext serviceContext)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService()
081 .updateStructure(groupId, structureId, parentStructureId,
082 name, description, xsd, serviceContext);
083 }
084
085 public static JournalStructureService getService() {
086 if (_service == null) {
087 _service = (JournalStructureService)PortalBeanLocatorUtil.locate(JournalStructureService.class.getName());
088 }
089
090 return _service;
091 }
092
093 public void setService(JournalStructureService service) {
094 _service = service;
095 }
096
097 private static JournalStructureService _service;
098 }