Class SiteNavigationMenuItemLocalServiceWrapper

java.lang.Object
com.liferay.site.navigation.service.SiteNavigationMenuItemLocalServiceWrapper
All Implemented Interfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<SiteNavigationMenuItem>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<SiteNavigationMenuItemLocalService>, SiteNavigationMenuItemLocalService

public class SiteNavigationMenuItemLocalServiceWrapper extends Object implements com.liferay.portal.kernel.service.ServiceWrapper<SiteNavigationMenuItemLocalService>, SiteNavigationMenuItemLocalService
Provides a wrapper for SiteNavigationMenuItemLocalService.
See Also:
Generated:
  • Constructor Details

    • SiteNavigationMenuItemLocalServiceWrapper

      public SiteNavigationMenuItemLocalServiceWrapper()
    • SiteNavigationMenuItemLocalServiceWrapper

      public SiteNavigationMenuItemLocalServiceWrapper(SiteNavigationMenuItemLocalService siteNavigationMenuItemLocalService)
  • Method Details

    • addOrUpdateSiteNavigationMenuItem

      public SiteNavigationMenuItem addOrUpdateSiteNavigationMenuItem(String externalReferenceCode, long userId, long groupId, long siteNavigationMenuId, long parentSiteNavigationMenuItemId, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Specified by:
      addOrUpdateSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Throws:
      Exception
    • addSiteNavigationMenuItem

      public SiteNavigationMenuItem addSiteNavigationMenuItem(SiteNavigationMenuItem siteNavigationMenuItem)
      Adds the site navigation menu item to the database. Also notifies the appropriate model listeners.

      Important: Inspect SiteNavigationMenuItemLocalServiceImpl 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.

      Specified by:
      addSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Parameters:
      siteNavigationMenuItem - the site navigation menu item
      Returns:
      the site navigation menu item that was added
    • addSiteNavigationMenuItem

      public SiteNavigationMenuItem addSiteNavigationMenuItem(String externalReferenceCode, long userId, long groupId, long siteNavigationMenuId, long parentSiteNavigationMenuItemId, String type, int order, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addSiteNavigationMenuItem

      public SiteNavigationMenuItem addSiteNavigationMenuItem(String externalReferenceCode, long userId, long groupId, long siteNavigationMenuId, long parentSiteNavigationMenuItemId, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createPersistedModel

      public 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
      Specified by:
      createPersistedModel in interface SiteNavigationMenuItemLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • createSiteNavigationMenuItem

      public SiteNavigationMenuItem createSiteNavigationMenuItem(long siteNavigationMenuItemId)
      Creates a new site navigation menu item with the primary key. Does not add the site navigation menu item to the database.
      Specified by:
      createSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Parameters:
      siteNavigationMenuItemId - the primary key for the new site navigation menu item
      Returns:
      the new site navigation menu item
    • deletePersistedModel

      public 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
      Specified by:
      deletePersistedModel in interface SiteNavigationMenuItemLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteSiteNavigationMenuItem

      public SiteNavigationMenuItem deleteSiteNavigationMenuItem(long siteNavigationMenuItemId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the site navigation menu item with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect SiteNavigationMenuItemLocalServiceImpl 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.

      Specified by:
      deleteSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Parameters:
      siteNavigationMenuItemId - the primary key of the site navigation menu item
      Returns:
      the site navigation menu item that was removed
      Throws:
      PortalException - if a site navigation menu item with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteSiteNavigationMenuItem

      public SiteNavigationMenuItem deleteSiteNavigationMenuItem(long siteNavigationMenuItemId, boolean deleteChildren) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteSiteNavigationMenuItem

      public SiteNavigationMenuItem deleteSiteNavigationMenuItem(SiteNavigationMenuItem siteNavigationMenuItem)
      Deletes the site navigation menu item from the database. Also notifies the appropriate model listeners.

      Important: Inspect SiteNavigationMenuItemLocalServiceImpl 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.

      Specified by:
      deleteSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Parameters:
      siteNavigationMenuItem - the site navigation menu item
      Returns:
      the site navigation menu item that was removed
    • deleteSiteNavigationMenuItem

      public SiteNavigationMenuItem deleteSiteNavigationMenuItem(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteSiteNavigationMenuItems

      public void deleteSiteNavigationMenuItems(long siteNavigationMenuId)
      Specified by:
      deleteSiteNavigationMenuItems in interface SiteNavigationMenuItemLocalService
    • deleteSiteNavigationMenuItemsByGroupId

      public void deleteSiteNavigationMenuItemsByGroupId(long groupId)
      Specified by:
      deleteSiteNavigationMenuItemsByGroupId in interface SiteNavigationMenuItemLocalService
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQuery in interface SiteNavigationMenuItemLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Specified by:
      dslQueryCount in interface SiteNavigationMenuItemLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface SiteNavigationMenuItemLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface SiteNavigationMenuItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <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.site.navigation.model.impl.SiteNavigationMenuItemModelImpl.

      Specified by:
      dynamicQuery in interface SiteNavigationMenuItemLocalService
      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 <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.site.navigation.model.impl.SiteNavigationMenuItemModelImpl.

      Specified by:
      dynamicQuery in interface SiteNavigationMenuItemLocalService
      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 long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface SiteNavigationMenuItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public 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.
      Specified by:
      dynamicQueryCount in interface SiteNavigationMenuItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchSiteNavigationMenuItem

      public SiteNavigationMenuItem fetchSiteNavigationMenuItem(long siteNavigationMenuItemId)
      Specified by:
      fetchSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
    • fetchSiteNavigationMenuItemByExternalReferenceCode

      public SiteNavigationMenuItem fetchSiteNavigationMenuItemByExternalReferenceCode(String externalReferenceCode, long groupId)
      Specified by:
      fetchSiteNavigationMenuItemByExternalReferenceCode in interface SiteNavigationMenuItemLocalService
    • fetchSiteNavigationMenuItemByUuidAndGroupId

      public SiteNavigationMenuItem fetchSiteNavigationMenuItemByUuidAndGroupId(String uuid, long groupId)
      Returns the site navigation menu item matching the UUID and group.
      Specified by:
      fetchSiteNavigationMenuItemByUuidAndGroupId in interface SiteNavigationMenuItemLocalService
      Parameters:
      uuid - the site navigation menu item's UUID
      groupId - the primary key of the group
      Returns:
      the matching site navigation menu item, or null if a matching site navigation menu item could not be found
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface SiteNavigationMenuItemLocalService
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface SiteNavigationMenuItemLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface SiteNavigationMenuItemLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface SiteNavigationMenuItemLocalService
      Returns:
      the OSGi service identifier
    • getParentSiteNavigationMenuItemIds

      public List<Long> getParentSiteNavigationMenuItemIds(long siteNavigationMenuId, String typeSettingsKeyword)
      Specified by:
      getParentSiteNavigationMenuItemIds in interface SiteNavigationMenuItemLocalService
    • getPersistedModel

      public 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
      Specified by:
      getPersistedModel in interface SiteNavigationMenuItemLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getSiteNavigationMenuItem

      public SiteNavigationMenuItem getSiteNavigationMenuItem(long siteNavigationMenuItemId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the site navigation menu item with the primary key.
      Specified by:
      getSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Parameters:
      siteNavigationMenuItemId - the primary key of the site navigation menu item
      Returns:
      the site navigation menu item
      Throws:
      PortalException - if a site navigation menu item with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getSiteNavigationMenuItemByExternalReferenceCode

      public SiteNavigationMenuItem getSiteNavigationMenuItemByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getSiteNavigationMenuItemByExternalReferenceCode in interface SiteNavigationMenuItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSiteNavigationMenuItemByUuidAndGroupId

      public SiteNavigationMenuItem getSiteNavigationMenuItemByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the site navigation menu item matching the UUID and group.
      Specified by:
      getSiteNavigationMenuItemByUuidAndGroupId in interface SiteNavigationMenuItemLocalService
      Parameters:
      uuid - the site navigation menu item's UUID
      groupId - the primary key of the group
      Returns:
      the matching site navigation menu item
      Throws:
      PortalException - if a matching site navigation menu item could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getSiteNavigationMenuItems

      public List<SiteNavigationMenuItem> getSiteNavigationMenuItems(int start, int end)
      Returns a range of all the site navigation menu items.

      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.site.navigation.model.impl.SiteNavigationMenuItemModelImpl.

      Specified by:
      getSiteNavigationMenuItems in interface SiteNavigationMenuItemLocalService
      Parameters:
      start - the lower bound of the range of site navigation menu items
      end - the upper bound of the range of site navigation menu items (not inclusive)
      Returns:
      the range of site navigation menu items
    • getSiteNavigationMenuItems

      public List<SiteNavigationMenuItem> getSiteNavigationMenuItems(long siteNavigationMenuId)
      Specified by:
      getSiteNavigationMenuItems in interface SiteNavigationMenuItemLocalService
    • getSiteNavigationMenuItems

      public List<SiteNavigationMenuItem> getSiteNavigationMenuItems(long siteNavigationMenuId, long parentSiteNavigationMenuItemId)
      Specified by:
      getSiteNavigationMenuItems in interface SiteNavigationMenuItemLocalService
    • getSiteNavigationMenuItems

      public List<SiteNavigationMenuItem> getSiteNavigationMenuItems(long siteNavigationMenuId, com.liferay.portal.kernel.util.OrderByComparator<SiteNavigationMenuItem> orderByComparator)
      Specified by:
      getSiteNavigationMenuItems in interface SiteNavigationMenuItemLocalService
    • getSiteNavigationMenuItemsByUuidAndCompanyId

      public List<SiteNavigationMenuItem> getSiteNavigationMenuItemsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the site navigation menu items matching the UUID and company.
      Specified by:
      getSiteNavigationMenuItemsByUuidAndCompanyId in interface SiteNavigationMenuItemLocalService
      Parameters:
      uuid - the UUID of the site navigation menu items
      companyId - the primary key of the company
      Returns:
      the matching site navigation menu items, or an empty list if no matches were found
    • getSiteNavigationMenuItemsByUuidAndCompanyId

      public List<SiteNavigationMenuItem> getSiteNavigationMenuItemsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteNavigationMenuItem> orderByComparator)
      Returns a range of site navigation menu items matching the UUID and company.
      Specified by:
      getSiteNavigationMenuItemsByUuidAndCompanyId in interface SiteNavigationMenuItemLocalService
      Parameters:
      uuid - the UUID of the site navigation menu items
      companyId - the primary key of the company
      start - the lower bound of the range of site navigation menu items
      end - the upper bound of the range of site navigation menu items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching site navigation menu items, or an empty list if no matches were found
    • getSiteNavigationMenuItemsCount

      public int getSiteNavigationMenuItemsCount()
      Returns the number of site navigation menu items.
      Specified by:
      getSiteNavigationMenuItemsCount in interface SiteNavigationMenuItemLocalService
      Returns:
      the number of site navigation menu items
    • getSiteNavigationMenuItemsCount

      public int getSiteNavigationMenuItemsCount(long siteNavigationMenuId)
      Specified by:
      getSiteNavigationMenuItemsCount in interface SiteNavigationMenuItemLocalService
    • updateSiteNavigationMenuItem

      public SiteNavigationMenuItem updateSiteNavigationMenuItem(long siteNavigationMenuItemId, long parentSiteNavigationMenuItemId, int order) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSiteNavigationMenuItem

      public SiteNavigationMenuItem updateSiteNavigationMenuItem(long userId, long siteNavigationMenuItemId, long groupId, long siteNavigationMenuId, long parentSiteNavigationMenuItemId, String type, int order, String typeSettings) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSiteNavigationMenuItem

      public SiteNavigationMenuItem updateSiteNavigationMenuItem(long userId, long siteNavigationMenuItemId, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSiteNavigationMenuItem

      public SiteNavigationMenuItem updateSiteNavigationMenuItem(SiteNavigationMenuItem siteNavigationMenuItem)
      Updates the site navigation menu item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect SiteNavigationMenuItemLocalServiceImpl 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.

      Specified by:
      updateSiteNavigationMenuItem in interface SiteNavigationMenuItemLocalService
      Parameters:
      siteNavigationMenuItem - the site navigation menu item
      Returns:
      the site navigation menu item that was updated
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<SiteNavigationMenuItem> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<SiteNavigationMenuItem>
      Specified by:
      getCTPersistence in interface SiteNavigationMenuItemLocalService
    • getModelClass

      public Class<SiteNavigationMenuItem> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<SiteNavigationMenuItem>
      Specified by:
      getModelClass in interface SiteNavigationMenuItemLocalService
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<SiteNavigationMenuItem>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<SiteNavigationMenuItem>
      Specified by:
      updateWithUnsafeFunction in interface SiteNavigationMenuItemLocalService
      Throws:
      E extends Throwable
    • getWrappedService

      public SiteNavigationMenuItemLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<SiteNavigationMenuItemLocalService>
    • setWrappedService

      public void setWrappedService(SiteNavigationMenuItemLocalService siteNavigationMenuItemLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<SiteNavigationMenuItemLocalService>