001    /**
002     * Copyright (c) 2000-present 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.expando.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.json.JSONObject;
022    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
023    import com.liferay.portal.kernel.jsonwebservice.JSONWebServiceMode;
024    import com.liferay.portal.kernel.security.access.control.AccessControlled;
025    import com.liferay.portal.kernel.transaction.Isolation;
026    import com.liferay.portal.kernel.transaction.Propagation;
027    import com.liferay.portal.kernel.transaction.Transactional;
028    import com.liferay.portal.service.BaseService;
029    
030    import com.liferay.portlet.expando.model.ExpandoValue;
031    
032    import java.io.Serializable;
033    
034    import java.util.Collection;
035    import java.util.Map;
036    
037    /**
038     * Provides the remote service interface for ExpandoValue. Methods of this
039     * service are expected to have security checks based on the propagated JAAS
040     * credentials because this service can be accessed remotely.
041     *
042     * @author Brian Wing Shun Chan
043     * @see ExpandoValueServiceUtil
044     * @see com.liferay.portlet.expando.service.base.ExpandoValueServiceBaseImpl
045     * @see com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl
046     * @generated
047     */
048    @AccessControlled
049    @JSONWebService
050    @ProviderType
051    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
052            PortalException.class, SystemException.class})
053    public interface ExpandoValueService extends BaseService {
054            /*
055             * NOTE FOR DEVELOPERS:
056             *
057             * Never modify or reference this interface directly. Always use {@link ExpandoValueServiceUtil} to access the expando value remote service. Add custom service methods to {@link com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
058             */
059            public ExpandoValue addValue(long companyId, java.lang.String className,
060                    java.lang.String tableName, java.lang.String columnName, long classPK,
061                    java.lang.String data) throws PortalException;
062    
063            @JSONWebService(mode = JSONWebServiceMode.IGNORE)
064            public ExpandoValue addValue(long companyId, java.lang.String className,
065                    java.lang.String tableName, java.lang.String columnName, long classPK,
066                    java.lang.Object data) throws PortalException;
067    
068            public void addValues(long companyId, java.lang.String className,
069                    java.lang.String tableName, long classPK,
070                    Map<java.lang.String, Serializable> attributeValues)
071                    throws PortalException;
072    
073            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074            public Serializable getData(long companyId, java.lang.String className,
075                    java.lang.String tableName, java.lang.String columnName, long classPK)
076                    throws PortalException;
077    
078            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079            public Map<java.lang.String, Serializable> getData(long companyId,
080                    java.lang.String className, java.lang.String tableName,
081                    Collection<java.lang.String> columnNames, long classPK)
082                    throws PortalException;
083    
084            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085            public JSONObject getJSONData(long companyId, java.lang.String className,
086                    java.lang.String tableName, java.lang.String columnName, long classPK)
087                    throws PortalException;
088    
089            /**
090            * Returns the OSGi service identifier.
091            *
092            * @return the OSGi service identifier
093            */
094            public java.lang.String getOSGiServiceIdentifier();
095    }