001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the journal structure remote service. This utility wraps {@link com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see JournalStructureService
032     * @see com.liferay.portlet.journal.service.base.JournalStructureServiceBaseImpl
033     * @see com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl
034     * @generated
035     */
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    }