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.portal.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portal.service.impl.ResourceCodeLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       ResourceCodeLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface ResourceCodeLocalService {
043            public com.liferay.portal.model.ResourceCode addResourceCode(
044                    com.liferay.portal.model.ResourceCode resourceCode)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portal.model.ResourceCode createResourceCode(long codeId);
048    
049            public void deleteResourceCode(long codeId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException;
052    
053            public void deleteResourceCode(
054                    com.liferay.portal.model.ResourceCode resourceCode)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            @SuppressWarnings("unchecked")
058            public java.util.List dynamicQuery(
059                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            @SuppressWarnings("unchecked")
063            public java.util.List dynamicQuery(
064                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
065                    int end) throws com.liferay.portal.kernel.exception.SystemException;
066    
067            @SuppressWarnings("unchecked")
068            public java.util.List dynamicQuery(
069                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
070                    int end,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            public long dynamicQueryCount(
075                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
076                    throws com.liferay.portal.kernel.exception.SystemException;
077    
078            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079            public com.liferay.portal.model.ResourceCode getResourceCode(long codeId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public java.util.List<com.liferay.portal.model.ResourceCode> getResourceCodes(
085                    int start, int end)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089            public int getResourceCodesCount()
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public com.liferay.portal.model.ResourceCode updateResourceCode(
093                    com.liferay.portal.model.ResourceCode resourceCode)
094                    throws com.liferay.portal.kernel.exception.SystemException;
095    
096            public com.liferay.portal.model.ResourceCode updateResourceCode(
097                    com.liferay.portal.model.ResourceCode resourceCode, boolean merge)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portal.model.ResourceCode addResourceCode(
101                    long companyId, java.lang.String name, int scope)
102                    throws com.liferay.portal.kernel.exception.SystemException;
103    
104            public void checkResourceCodes()
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            public void checkResourceCodes(long companyId, java.lang.String name)
108                    throws com.liferay.portal.kernel.exception.SystemException;
109    
110            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111            public com.liferay.portal.model.ResourceCode getResourceCode(
112                    long companyId, java.lang.String name, int scope)
113                    throws com.liferay.portal.kernel.exception.SystemException;
114    }