Interface JournalFeedLocalService

All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<JournalFeed>, com.liferay.portal.kernel.service.PersistedModelLocalService
All Known Implementing Classes:
JournalFeedLocalServiceWrapper

@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface JournalFeedLocalService extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<JournalFeed>, com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service interface for JournalFeed. 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.
See Also:
Generated:
  • Method Details

    • addFeed

      JournalFeed addFeed(long userId, long groupId, String feedId, boolean autoFeedId, String name, String description, long ddmStructureId, String ddmTemplateKey, String ddmRendererTemplateKey, int delta, String orderByCol, String orderByType, String targetLayoutFriendlyUrl, String targetPortletId, String contentField, String feedFormat, double feedVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFeedResources

      void addFeedResources(JournalFeed feed, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFeedResources

      void addFeedResources(JournalFeed feed, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addFeedResources

      void addFeedResources(long feedId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addJournalFeed

      @Indexable(type=REINDEX) JournalFeed addJournalFeed(JournalFeed journalFeed)
      Adds the journal feed to the database. Also notifies the appropriate model listeners.

      Important: Inspect JournalFeedLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      journalFeed - the journal feed
      Returns:
      the journal feed that was added
    • createJournalFeed

      @Transactional(enabled=false) JournalFeed createJournalFeed(long id)
      Creates a new journal feed with the primary key. Does not add the journal feed to the database.
      Parameters:
      id - the primary key for the new journal feed
      Returns:
      the new journal feed
    • createPersistedModel

      com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFeed

      @SystemEvent(type=1) void deleteFeed(JournalFeed feed) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFeed

      void deleteFeed(long feedId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFeed

      void deleteFeed(long groupId, String feedId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteJournalFeed

      @Indexable(type=DELETE) JournalFeed deleteJournalFeed(JournalFeed journalFeed)
      Deletes the journal feed from the database. Also notifies the appropriate model listeners.

      Important: Inspect JournalFeedLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      journalFeed - the journal feed
      Returns:
      the journal feed that was removed
    • deleteJournalFeed

      @Indexable(type=DELETE) JournalFeed deleteJournalFeed(long id) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the journal feed with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect JournalFeedLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      id - the primary key of the journal feed
      Returns:
      the journal feed that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a journal feed with the primary key could not be found
    • deletePersistedModel

      com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.journal.model.impl.JournalFeedModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      Performs a dynamic query on the database and returns an ordered range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.journal.model.impl.JournalFeedModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchFeed

      @Transactional(propagation=SUPPORTS, readOnly=true) JournalFeed fetchFeed(long groupId, String feedId)
    • fetchJournalFeed

      @Transactional(propagation=SUPPORTS, readOnly=true) JournalFeed fetchJournalFeed(long id)
    • fetchJournalFeedByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) JournalFeed fetchJournalFeedByUuidAndGroupId(String uuid, long groupId)
      Returns the journal feed matching the UUID and group.
      Parameters:
      uuid - the journal feed's UUID
      groupId - the primary key of the group
      Returns:
      the matching journal feed, or null if a matching journal feed could not be found
    • getActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getExportActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getFeed

      @Transactional(propagation=SUPPORTS, readOnly=true) JournalFeed getFeed(long feedId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFeed

      @Transactional(propagation=SUPPORTS, readOnly=true) JournalFeed getFeed(long groupId, String feedId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFeeds

      @Transactional(propagation=SUPPORTS, readOnly=true) List<JournalFeed> getFeeds()
    • getFeeds

      @Transactional(propagation=SUPPORTS, readOnly=true) List<JournalFeed> getFeeds(long groupId)
    • getFeeds

      @Transactional(propagation=SUPPORTS, readOnly=true) List<JournalFeed> getFeeds(long groupId, int start, int end)
    • getFeedsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getFeedsCount(long groupId)
    • getIndexableActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getJournalFeed

      @Transactional(propagation=SUPPORTS, readOnly=true) JournalFeed getJournalFeed(long id) throws com.liferay.portal.kernel.exception.PortalException
      Returns the journal feed with the primary key.
      Parameters:
      id - the primary key of the journal feed
      Returns:
      the journal feed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a journal feed with the primary key could not be found
    • getJournalFeedByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) JournalFeed getJournalFeedByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the journal feed matching the UUID and group.
      Parameters:
      uuid - the journal feed's UUID
      groupId - the primary key of the group
      Returns:
      the matching journal feed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching journal feed could not be found
    • getJournalFeeds

      @Transactional(propagation=SUPPORTS, readOnly=true) List<JournalFeed> getJournalFeeds(int start, int end)
      Returns a range of all the journal feeds.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.journal.model.impl.JournalFeedModelImpl.

      Parameters:
      start - the lower bound of the range of journal feeds
      end - the upper bound of the range of journal feeds (not inclusive)
      Returns:
      the range of journal feeds
    • getJournalFeedsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<JournalFeed> getJournalFeedsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the journal feeds matching the UUID and company.
      Parameters:
      uuid - the UUID of the journal feeds
      companyId - the primary key of the company
      Returns:
      the matching journal feeds, or an empty list if no matches were found
    • getJournalFeedsByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<JournalFeed> getJournalFeedsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator)
      Returns a range of journal feeds matching the UUID and company.
      Parameters:
      uuid - the UUID of the journal feeds
      companyId - the primary key of the company
      start - the lower bound of the range of journal feeds
      end - the upper bound of the range of journal feeds (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching journal feeds, or an empty list if no matches were found
    • getJournalFeedsCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getJournalFeedsCount()
      Returns the number of journal feeds.
      Returns:
      the number of journal feeds
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • search

      @Transactional(propagation=SUPPORTS, readOnly=true) List<JournalFeed> search(long companyId, long groupId, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator)
    • searchCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int searchCount(long companyId, long groupId, String keywords)
    • updateFeed

      JournalFeed updateFeed(long groupId, String feedId, String name, String description, long ddmStructureId, String ddmTemplateKey, String ddmRendererTemplateKey, int delta, String orderByCol, String orderByType, String targetLayoutFriendlyUrl, String targetPortletId, String contentField, String feedFormat, double feedVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateJournalFeed

      @Indexable(type=REINDEX) JournalFeed updateJournalFeed(JournalFeed journalFeed)
      Updates the journal feed in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect JournalFeedLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      journalFeed - the journal feed
      Returns:
      the journal feed that was updated
    • getCTPersistence

      @Transactional(enabled=false) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<JournalFeed> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<JournalFeed>
    • getModelClass

      @Transactional(enabled=false) Class<JournalFeed> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<JournalFeed>
    • updateWithUnsafeFunction

      @Transactional(rollbackFor=java.lang.Throwable.class) <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<JournalFeed>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<JournalFeed>
      Throws:
      E extends Throwable