001    /**
002     * Copyright (c) 2000-2013 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.social.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.transaction.Isolation;
020    import com.liferay.portal.kernel.transaction.Propagation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.service.BaseLocalService;
023    
024    /**
025     * Provides the local service interface for SocialActivityInterpreter. Methods of this
026     * service will not have security checks based on the propagated JAAS
027     * credentials because this service can only be accessed from within the same
028     * VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see SocialActivityInterpreterLocalServiceUtil
032     * @see com.liferay.portlet.social.service.base.SocialActivityInterpreterLocalServiceBaseImpl
033     * @see com.liferay.portlet.social.service.impl.SocialActivityInterpreterLocalServiceImpl
034     * @generated
035     */
036    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
037            PortalException.class, SystemException.class})
038    public interface SocialActivityInterpreterLocalService extends BaseLocalService {
039            /*
040             * NOTE FOR DEVELOPERS:
041             *
042             * Never modify or reference this interface directly. Always use {@link SocialActivityInterpreterLocalServiceUtil} to access the social activity interpreter local service. Add custom service methods to {@link com.liferay.portlet.social.service.impl.SocialActivityInterpreterLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
043             */
044    
045            /**
046            * Returns the Spring bean ID for this bean.
047            *
048            * @return the Spring bean ID for this bean
049            */
050            public java.lang.String getBeanIdentifier();
051    
052            /**
053            * Sets the Spring bean ID for this bean.
054            *
055            * @param beanIdentifier the Spring bean ID for this bean
056            */
057            public void setBeanIdentifier(java.lang.String beanIdentifier);
058    
059            /**
060            * Adds the activity interpreter to the list of available interpreters.
061            *
062            * @param activityInterpreter the activity interpreter
063            */
064            public void addActivityInterpreter(
065                    com.liferay.portlet.social.model.SocialActivityInterpreter activityInterpreter);
066    
067            /**
068            * Removes the activity interpreter from the list of available interpreters.
069            *
070            * @param activityInterpreter the activity interpreter
071            */
072            public void deleteActivityInterpreter(
073                    com.liferay.portlet.social.model.SocialActivityInterpreter activityInterpreter);
074    
075            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076            public java.util.Map<java.lang.String, java.util.List<com.liferay.portlet.social.model.SocialActivityInterpreter>> getActivityInterpreters();
077    
078            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079            public java.util.List<com.liferay.portlet.social.model.SocialActivityInterpreter> getActivityInterpreters(
080                    java.lang.String selector);
081    
082            /**
083            * @deprecated As of 6.2.0, replaced by {@link #interpret(String,
084            SocialActivity, ServiceContext)}
085            */
086            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
087                    com.liferay.portlet.social.model.SocialActivity activity,
088                    com.liferay.portal.theme.ThemeDisplay themeDisplay);
089    
090            /**
091            * Creates a human readable activity feed entry for the activity using an
092            * available compatible activity interpreter.
093            *
094            * <p>
095            * This method finds the appropriate interpreter for the activity by going
096            * through the available interpreters and asking them if they can handle the
097            * asset type of the activity.
098            * </p>
099            *
100            * @param activity the activity to be translated to human readable form
101            * @return the activity feed that is a human readable form of the activity
102            record or <code>null</code> if a compatible interpreter is not
103            found
104            */
105            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
106                    java.lang.String selector,
107                    com.liferay.portlet.social.model.SocialActivity activity,
108                    com.liferay.portal.service.ServiceContext serviceContext);
109    
110            public com.liferay.portlet.social.model.SocialActivityFeedEntry interpret(
111                    java.lang.String selector,
112                    com.liferay.portlet.social.model.SocialActivitySet activitySet,
113                    com.liferay.portal.service.ServiceContext serviceContext);
114    
115            public void updateActivitySet(long activityId)
116                    throws com.liferay.portal.kernel.exception.PortalException,
117                            com.liferay.portal.kernel.exception.SystemException;
118    }