Class JournalFeedLocalServiceUtil
com.liferay.journal.service.impl.JournalFeedLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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) static void
addFeedResources
(long feedId, boolean addGroupPermissions, boolean addGuestPermissions) static void
addFeedResources
(JournalFeed feed, boolean addGroupPermissions, boolean addGuestPermissions) static void
addFeedResources
(JournalFeed feed, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) static JournalFeed
addJournalFeed
(JournalFeed journalFeed) Adds the journal feed to the database.static JournalFeed
createJournalFeed
(long id) Creates a new journal feed with the primary key.static com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) static void
deleteFeed
(long feedId) static void
deleteFeed
(long groupId, String feedId) static void
deleteFeed
(JournalFeed feed) static JournalFeed
deleteJournalFeed
(long id) Deletes the journal feed with the primary key from the database.static JournalFeed
deleteJournalFeed
(JournalFeed journalFeed) Deletes the journal feed from the database.static com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) static <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static com.liferay.portal.kernel.dao.orm.DynamicQuery
static <T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.static <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.static <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.static long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static 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.static JournalFeed
static JournalFeed
fetchJournalFeed
(long id) static JournalFeed
fetchJournalFeedByUuidAndGroupId
(String uuid, long groupId) Returns the journal feed matching the UUID and group.static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) static JournalFeed
getFeed
(long feedId) static JournalFeed
static List<JournalFeed>
getFeeds()
static List<JournalFeed>
getFeeds
(long groupId) static List<JournalFeed>
getFeeds
(long groupId, int start, int end) static int
getFeedsCount
(long groupId) static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
static JournalFeed
getJournalFeed
(long id) Returns the journal feed with the primary key.static JournalFeed
getJournalFeedByUuidAndGroupId
(String uuid, long groupId) Returns the journal feed matching the UUID and group.static List<JournalFeed>
getJournalFeeds
(int start, int end) Returns a range of all the journal feeds.static List<JournalFeed>
getJournalFeedsByUuidAndCompanyId
(String uuid, long companyId) Returns all the journal feeds matching the UUID and company.static 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.static int
Returns the number of journal feeds.static String
Returns the OSGi service identifier.static com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) static JournalFeedLocalService
static List<JournalFeed>
search
(long companyId, long groupId, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) static int
searchCount
(long companyId, long groupId, String keywords) static 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) static JournalFeed
updateJournalFeed
(JournalFeed journalFeed) Updates the journal feed in the database or adds it if it does not yet exist.
-
Constructor Details
-
JournalFeedLocalServiceUtil
public JournalFeedLocalServiceUtil()
-
-
Method Details
-
addFeed
public static 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
public static void addFeedResources(JournalFeed feed, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addFeedResources
public static 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
public static void addFeedResources(long feedId, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addJournalFeed
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
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
public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFeed
public static void deleteFeed(JournalFeed feed) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFeed
public static void deleteFeed(long feedId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteFeed
public static void deleteFeed(long groupId, String feedId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteJournalFeed
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
public static 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
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dslQueryCount
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) -
dynamicQuery
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() -
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public static <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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.journal.model.impl.JournalFeedModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public static <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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.journal.model.impl.JournalFeedModelImpl
.- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public static 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
public static 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 queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchFeed
-
fetchJournalFeed
-
fetchJournalFeedByUuidAndGroupId
Returns the journal feed matching the UUID and group.- Parameters:
uuid
- the journal feed's UUIDgroupId
- the primary key of the group- Returns:
- the matching journal feed, or
null
if a matching journal feed could not be found
-
getActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getExportActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) -
getFeed
public static JournalFeed getFeed(long feedId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFeed
public static JournalFeed getFeed(long groupId, String feedId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getFeeds
-
getFeeds
-
getFeeds
-
getFeedsCount
public static int getFeedsCount(long groupId) -
getIndexableActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getJournalFeed
public static 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
public static 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 UUIDgroupId
- 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
Returns a range of all the journal feeds.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.journal.model.impl.JournalFeedModelImpl
.- Parameters:
start
- the lower bound of the range of journal feedsend
- the upper bound of the range of journal feeds (not inclusive)- Returns:
- the range of journal feeds
-
getJournalFeedsByUuidAndCompanyId
Returns all the journal feeds matching the UUID and company.- Parameters:
uuid
- the UUID of the journal feedscompanyId
- the primary key of the company- Returns:
- the matching journal feeds, or an empty list if no matches were found
-
getJournalFeedsByUuidAndCompanyId
public static 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 feedscompanyId
- the primary key of the companystart
- the lower bound of the range of journal feedsend
- the upper bound of the range of journal feeds (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the range of matching journal feeds, or an empty list if no matches were found
-
getJournalFeedsCount
public static int getJournalFeedsCount()Returns the number of journal feeds.- Returns:
- the number of journal feeds
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public static List<JournalFeed> search(long companyId, long groupId, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) -
searchCount
-
updateFeed
public static 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
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
-
getService
-