Class FragmentEntryLinkLocalServiceUtil

java.lang.Object
com.liferay.fragment.service.FragmentEntryLinkLocalServiceUtil

public class FragmentEntryLinkLocalServiceUtil extends Object
Provides the local service utility for FragmentEntryLink. This utility wraps com.liferay.fragment.service.impl.FragmentEntryLinkLocalServiceImpl 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 Details

    • FragmentEntryLinkLocalServiceUtil

      public FragmentEntryLinkLocalServiceUtil()
  • Method Details

    • addFragmentEntryLink

      public static FragmentEntryLink addFragmentEntryLink(FragmentEntryLink fragmentEntryLink)
      Adds the fragment entry link to the database. Also notifies the appropriate model listeners.

      Important: Inspect FragmentEntryLinkLocalServiceImpl 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:
      fragmentEntryLink - the fragment entry link
      Returns:
      the fragment entry link that was added
    • addFragmentEntryLink

      public static FragmentEntryLink addFragmentEntryLink(String externalReferenceCode, long userId, long groupId, long originalFragmentEntryLinkId, long fragmentEntryId, long segmentsExperienceId, long plid, String css, String html, String js, String configuration, String editableValues, String namespace, int position, String rendererKey, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createFragmentEntryLink

      public static FragmentEntryLink createFragmentEntryLink(long fragmentEntryLinkId)
      Creates a new fragment entry link with the primary key. Does not add the fragment entry link to the database.
      Parameters:
      fragmentEntryLinkId - the primary key for the new fragment entry link
      Returns:
      the new fragment entry link
    • 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
    • deleteFragmentEntryLink

      public static FragmentEntryLink deleteFragmentEntryLink(FragmentEntryLink fragmentEntryLink)
      Deletes the fragment entry link from the database. Also notifies the appropriate model listeners.

      Important: Inspect FragmentEntryLinkLocalServiceImpl 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:
      fragmentEntryLink - the fragment entry link
      Returns:
      the fragment entry link that was removed
    • deleteFragmentEntryLink

      public static FragmentEntryLink deleteFragmentEntryLink(long fragmentEntryLinkId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the fragment entry link with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect FragmentEntryLinkLocalServiceImpl 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:
      fragmentEntryLinkId - the primary key of the fragment entry link
      Returns:
      the fragment entry link that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a fragment entry link with the primary key could not be found
    • deleteFragmentEntryLink

      public static FragmentEntryLink deleteFragmentEntryLink(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFragmentEntryLinks

      public static void deleteFragmentEntryLinks(long groupId)
    • deleteFragmentEntryLinks

      public static void deleteFragmentEntryLinks(long groupId, long plid, boolean deleted)
    • deleteFragmentEntryLinks

      public static void deleteFragmentEntryLinks(long[] fragmentEntryLinkIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFragmentEntryLinksByFragmentEntryId

      public static void deleteFragmentEntryLinksByFragmentEntryId(long fragmentEntryId)
    • deleteFragmentEntryLinksByFragmentEntryId

      public static void deleteFragmentEntryLinksByFragmentEntryId(long fragmentEntryId, boolean deleted)
    • deleteLayoutPageTemplateEntryFragmentEntryLinks

      public static List<FragmentEntryLink> deleteLayoutPageTemplateEntryFragmentEntryLinks(long groupId, long plid)
    • deleteLayoutPageTemplateEntryFragmentEntryLinks

      @Deprecated public static List<FragmentEntryLink> deleteLayoutPageTemplateEntryFragmentEntryLinks(long groupId, long classNameId, long classPK)
      Deprecated.
    • deleteLayoutPageTemplateEntryFragmentEntryLinks

      public static List<FragmentEntryLink> deleteLayoutPageTemplateEntryFragmentEntryLinks(long groupId, long[] segmentsExperienceIds, long plid)
    • 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

      public 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.
      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 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.fragment.model.impl.FragmentEntryLinkModelImpl.

      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

      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 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.fragment.model.impl.FragmentEntryLinkModelImpl.

      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

      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 query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchFragmentEntryLink

      public static FragmentEntryLink fetchFragmentEntryLink(long fragmentEntryLinkId)
    • fetchFragmentEntryLinkByExternalReferenceCode

      public static FragmentEntryLink fetchFragmentEntryLinkByExternalReferenceCode(String externalReferenceCode, long groupId)
    • fetchFragmentEntryLinkByUuidAndGroupId

      public static FragmentEntryLink fetchFragmentEntryLinkByUuidAndGroupId(String uuid, long groupId)
      Returns the fragment entry link matching the UUID and group.
      Parameters:
      uuid - the fragment entry link's UUID
      groupId - the primary key of the group
      Returns:
      the matching fragment entry link, or null if a matching fragment entry link could not be found
    • getActionableDynamicQuery

      public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getAllFragmentEntryLinksByFragmentEntryId

      public static List<FragmentEntryLink> getAllFragmentEntryLinksByFragmentEntryId(long groupId, long fragmentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentEntryLink> orderByComparator)
    • getAllFragmentEntryLinksCountByFragmentEntryId

      public static int getAllFragmentEntryLinksCountByFragmentEntryId(long groupId, long fragmentEntryId)
    • getClassedModelFragmentEntryLinksCount

      @Deprecated public static int getClassedModelFragmentEntryLinksCount(long groupId, long classNameId, long classPK)
      Deprecated.
      As of Athanasius (7.3.x), replaced by getFragmentEntryLinksCountByPlid(long, long)
    • getExportActionableDynamicQuery

      public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getFragmentEntryLink

      public static FragmentEntryLink getFragmentEntryLink(long fragmentEntryLinkId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the fragment entry link with the primary key.
      Parameters:
      fragmentEntryLinkId - the primary key of the fragment entry link
      Returns:
      the fragment entry link
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a fragment entry link with the primary key could not be found
    • getFragmentEntryLink

      public static FragmentEntryLink getFragmentEntryLink(long groupId, long originalFragmentEntryLinkId, long plid)
    • getFragmentEntryLinkByExternalReferenceCode

      public static FragmentEntryLink getFragmentEntryLinkByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFragmentEntryLinkByUuidAndGroupId

      public static FragmentEntryLink getFragmentEntryLinkByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the fragment entry link matching the UUID and group.
      Parameters:
      uuid - the fragment entry link's UUID
      groupId - the primary key of the group
      Returns:
      the matching fragment entry link
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching fragment entry link could not be found
    • getFragmentEntryLinks

      public static List<FragmentEntryLink> getFragmentEntryLinks(int start, int end)
      Returns a range of all the fragment entry links.

      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.fragment.model.impl.FragmentEntryLinkModelImpl.

      Parameters:
      start - the lower bound of the range of fragment entry links
      end - the upper bound of the range of fragment entry links (not inclusive)
      Returns:
      the range of fragment entry links
    • getFragmentEntryLinks

      public static List<FragmentEntryLink> getFragmentEntryLinks(int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentEntryLink> orderByComparator)
    • getFragmentEntryLinks

      @Deprecated public static List<FragmentEntryLink> getFragmentEntryLinks(long groupId, long classNameId, long classPK)
      Deprecated.
      As of Athanasius (7.3.x), replaced by getFragmentEntryLinksByPlid(long, long)
    • getFragmentEntryLinks

      public static List<FragmentEntryLink> getFragmentEntryLinks(long companyId, String rendererKey)
    • getFragmentEntryLinks

      public static List<FragmentEntryLink> getFragmentEntryLinks(long companyId, String[] rendererKeys)
    • getFragmentEntryLinks

      public static List<FragmentEntryLink> getFragmentEntryLinks(String rendererKey)
    • getFragmentEntryLinksByFragmentEntryId

      public static List<FragmentEntryLink> getFragmentEntryLinksByFragmentEntryId(long fragmentEntryId)
    • getFragmentEntryLinksByFragmentEntryId

      public static List<FragmentEntryLink> getFragmentEntryLinksByFragmentEntryId(long fragmentEntryId, boolean deleted)
    • getFragmentEntryLinksByPlid

      public static List<FragmentEntryLink> getFragmentEntryLinksByPlid(long groupId, long plid)
    • getFragmentEntryLinksBySegmentsExperienceId

      public static List<FragmentEntryLink> getFragmentEntryLinksBySegmentsExperienceId(long groupId, long segmentsExperienceId, long plid)
    • getFragmentEntryLinksBySegmentsExperienceId

      public static List<FragmentEntryLink> getFragmentEntryLinksBySegmentsExperienceId(long groupId, long segmentsExperienceId, long plid, boolean deleted)
    • getFragmentEntryLinksBySegmentsExperienceId

      public static List<FragmentEntryLink> getFragmentEntryLinksBySegmentsExperienceId(long groupId, long segmentsExperienceId, long plid, String rendererKey)
    • getFragmentEntryLinksBySegmentsExperienceId

      public static List<FragmentEntryLink> getFragmentEntryLinksBySegmentsExperienceId(long groupId, long[] segmentsExperienceIds, long plid)
    • getFragmentEntryLinksBySegmentsExperienceId

      public static List<FragmentEntryLink> getFragmentEntryLinksBySegmentsExperienceId(long groupId, long[] segmentsExperienceIds, long plid, boolean deleted)
    • getFragmentEntryLinksByUuidAndCompanyId

      public static List<FragmentEntryLink> getFragmentEntryLinksByUuidAndCompanyId(String uuid, long companyId)
      Returns all the fragment entry links matching the UUID and company.
      Parameters:
      uuid - the UUID of the fragment entry links
      companyId - the primary key of the company
      Returns:
      the matching fragment entry links, or an empty list if no matches were found
    • getFragmentEntryLinksByUuidAndCompanyId

      public static List<FragmentEntryLink> getFragmentEntryLinksByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentEntryLink> orderByComparator)
      Returns a range of fragment entry links matching the UUID and company.
      Parameters:
      uuid - the UUID of the fragment entry links
      companyId - the primary key of the company
      start - the lower bound of the range of fragment entry links
      end - the upper bound of the range of fragment entry links (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching fragment entry links, or an empty list if no matches were found
    • getFragmentEntryLinksCount

      public static int getFragmentEntryLinksCount()
      Returns the number of fragment entry links.
      Returns:
      the number of fragment entry links
    • getFragmentEntryLinksCountByFragmentEntryId

      public static int getFragmentEntryLinksCountByFragmentEntryId(long fragmentEntryId)
    • getFragmentEntryLinksCountByFragmentEntryId

      public static int getFragmentEntryLinksCountByFragmentEntryId(long fragmentEntryId, boolean deleted)
    • getFragmentEntryLinksCountByPlid

      public static int getFragmentEntryLinksCountByPlid(long groupId, long plid)
    • getIndexableActionableDynamicQuery

      public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getLayoutFragmentEntryLinksByFragmentEntryId

      public static List<FragmentEntryLink> getLayoutFragmentEntryLinksByFragmentEntryId(long groupId, long fragmentEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentEntryLink> orderByComparator)
    • getLayoutFragmentEntryLinksCountByFragmentEntryId

      public static int getLayoutFragmentEntryLinksCountByFragmentEntryId(long groupId, long fragmentEntryId)
    • getLayoutPageTemplateFragmentEntryLinksByFragmentEntryId

      public static List<FragmentEntryLink> getLayoutPageTemplateFragmentEntryLinksByFragmentEntryId(long groupId, long fragmentEntryId, int layoutPageTemplateType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<FragmentEntryLink> orderByComparator)
    • getLayoutPageTemplateFragmentEntryLinksCountByFragmentEntryId

      public static int getLayoutPageTemplateFragmentEntryLinksCountByFragmentEntryId(long groupId, long fragmentEntryId, int layoutPageTemplateType)
    • getOSGiServiceIdentifier

      public static String 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
    • updateClassedModel

      public static void updateClassedModel(long plid)
    • updateDeleted

      public static FragmentEntryLink updateDeleted(long userId, long fragmentEntryLinkId, boolean deleted) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFragmentEntryLink

      public static FragmentEntryLink updateFragmentEntryLink(FragmentEntryLink fragmentEntryLink)
      Updates the fragment entry link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect FragmentEntryLinkLocalServiceImpl 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:
      fragmentEntryLink - the fragment entry link
      Returns:
      the fragment entry link that was updated
    • updateFragmentEntryLink

      public static FragmentEntryLink updateFragmentEntryLink(long userId, long fragmentEntryLinkId, int position) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFragmentEntryLink

      public static FragmentEntryLink updateFragmentEntryLink(long userId, long fragmentEntryLinkId, long originalFragmentEntryLinkId, long fragmentEntryId, long plid, String css, String html, String js, String configuration, String editableValues, String namespace, int position, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFragmentEntryLink

      public static FragmentEntryLink updateFragmentEntryLink(long userId, long fragmentEntryLinkId, String editableValues) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFragmentEntryLink

      public static FragmentEntryLink updateFragmentEntryLink(long userId, long fragmentEntryLinkId, String editableValues, boolean updateClassedModel) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLatestChanges

      public static void updateLatestChanges(FragmentEntry fragmentEntry, FragmentEntryLink fragmentEntryLink) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateLatestChanges

      public static void updateLatestChanges(long fragmentEntryLinkId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static FragmentEntryLinkLocalService getService()