001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
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    /**
021     * 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.
022     *
023     * <p>
024     * 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.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see JournalStructureService
029     * @see com.liferay.portlet.journal.service.base.JournalStructureServiceBaseImpl
030     * @see com.liferay.portlet.journal.service.impl.JournalStructureServiceImpl
031     * @generated
032     */
033    public class JournalStructureServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
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> search(
103                    long companyId, long[] groupIds, java.lang.String keywords, int start,
104                    int end, com.liferay.portal.kernel.util.OrderByComparator obc)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return getService()
107                                       .search(companyId, groupIds, keywords, start, end, obc);
108            }
109    
110            public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
111                    long companyId, long[] groupIds, java.lang.String structureId,
112                    java.lang.String name, java.lang.String description,
113                    boolean andOperator, int start, int end,
114                    com.liferay.portal.kernel.util.OrderByComparator obc)
115                    throws com.liferay.portal.kernel.exception.SystemException {
116                    return getService()
117                                       .search(companyId, groupIds, structureId, name, description,
118                            andOperator, start, end, obc);
119            }
120    
121            public static int searchCount(long companyId, long[] groupIds,
122                    java.lang.String keywords)
123                    throws com.liferay.portal.kernel.exception.SystemException {
124                    return getService().searchCount(companyId, groupIds, keywords);
125            }
126    
127            public static int searchCount(long companyId, long[] groupIds,
128                    java.lang.String structureId, java.lang.String name,
129                    java.lang.String description, boolean andOperator)
130                    throws com.liferay.portal.kernel.exception.SystemException {
131                    return getService()
132                                       .searchCount(companyId, groupIds, structureId, name,
133                            description, andOperator);
134            }
135    
136            public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
137                    long groupId, java.lang.String structureId,
138                    java.lang.String parentStructureId,
139                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
140                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
141                    java.lang.String xsd,
142                    com.liferay.portal.service.ServiceContext serviceContext)
143                    throws com.liferay.portal.kernel.exception.PortalException,
144                            com.liferay.portal.kernel.exception.SystemException {
145                    return getService()
146                                       .updateStructure(groupId, structureId, parentStructureId,
147                            nameMap, descriptionMap, xsd, serviceContext);
148            }
149    
150            public static JournalStructureService getService() {
151                    if (_service == null) {
152                            _service = (JournalStructureService)PortalBeanLocatorUtil.locate(JournalStructureService.class.getName());
153    
154                            ReferenceRegistry.registerReference(JournalStructureServiceUtil.class,
155                                    "_service");
156                    }
157    
158                    return _service;
159            }
160    
161            /**
162             * @deprecated
163             */
164            public void setService(JournalStructureService service) {
165            }
166    
167            private static JournalStructureService _service;
168    }