Class SiteNavigationMenuLocalServiceWrapper

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

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

    • SiteNavigationMenuLocalServiceWrapper

      public SiteNavigationMenuLocalServiceWrapper()
    • SiteNavigationMenuLocalServiceWrapper

      public SiteNavigationMenuLocalServiceWrapper(SiteNavigationMenuLocalService siteNavigationMenuLocalService)
  • Method Details

    • addSiteNavigationMenu

      public SiteNavigationMenu addSiteNavigationMenu(SiteNavigationMenu siteNavigationMenu)
      Adds the site navigation menu to the database. Also notifies the appropriate model listeners.

      Important: Inspect SiteNavigationMenuLocalServiceImpl 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:
      addSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Parameters:
      siteNavigationMenu - the site navigation menu
      Returns:
      the site navigation menu that was added
    • addSiteNavigationMenu

      public SiteNavigationMenu addSiteNavigationMenu(String externalReferenceCode, long userId, long groupId, String name, int type, boolean auto, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addSiteNavigationMenu

      public SiteNavigationMenu addSiteNavigationMenu(String externalReferenceCode, long userId, long groupId, String name, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addSiteNavigationMenu

      public SiteNavigationMenu addSiteNavigationMenu(String externalReferenceCode, long userId, long groupId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addSiteNavigationMenu in interface SiteNavigationMenuLocalService
      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 SiteNavigationMenuLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • createSiteNavigationMenu

      public SiteNavigationMenu createSiteNavigationMenu(long siteNavigationMenuId)
      Creates a new site navigation menu with the primary key. Does not add the site navigation menu to the database.
      Specified by:
      createSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Parameters:
      siteNavigationMenuId - the primary key for the new site navigation menu
      Returns:
      the new site navigation menu
    • 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 SiteNavigationMenuLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteSiteNavigationMenu

      public SiteNavigationMenu deleteSiteNavigationMenu(long siteNavigationMenuId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the site navigation menu with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect SiteNavigationMenuLocalServiceImpl 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:
      deleteSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Parameters:
      siteNavigationMenuId - the primary key of the site navigation menu
      Returns:
      the site navigation menu that was removed
      Throws:
      PortalException - if a site navigation menu with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteSiteNavigationMenu

      public SiteNavigationMenu deleteSiteNavigationMenu(SiteNavigationMenu siteNavigationMenu) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the site navigation menu from the database. Also notifies the appropriate model listeners.

      Important: Inspect SiteNavigationMenuLocalServiceImpl 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:
      deleteSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Parameters:
      siteNavigationMenu - the site navigation menu
      Returns:
      the site navigation menu that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteSiteNavigationMenu

      public SiteNavigationMenu deleteSiteNavigationMenu(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteSiteNavigationMenus

      public void deleteSiteNavigationMenus(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteSiteNavigationMenus in interface SiteNavigationMenuLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • 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 SiteNavigationMenuLocalService
    • 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 SiteNavigationMenuLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface SiteNavigationMenuLocalService
    • 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 SiteNavigationMenuLocalService
      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.SiteNavigationMenuModelImpl.

      Specified by:
      dynamicQuery in interface SiteNavigationMenuLocalService
      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.SiteNavigationMenuModelImpl.

      Specified by:
      dynamicQuery in interface SiteNavigationMenuLocalService
      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 SiteNavigationMenuLocalService
      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 SiteNavigationMenuLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchPrimarySiteNavigationMenu

      public SiteNavigationMenu fetchPrimarySiteNavigationMenu(long groupId)
      Specified by:
      fetchPrimarySiteNavigationMenu in interface SiteNavigationMenuLocalService
    • fetchSiteNavigationMenu

      public SiteNavigationMenu fetchSiteNavigationMenu(long siteNavigationMenuId)
      Specified by:
      fetchSiteNavigationMenu in interface SiteNavigationMenuLocalService
    • fetchSiteNavigationMenu

      public SiteNavigationMenu fetchSiteNavigationMenu(long groupId, int type)
      Specified by:
      fetchSiteNavigationMenu in interface SiteNavigationMenuLocalService
    • fetchSiteNavigationMenuByExternalReferenceCode

      public SiteNavigationMenu fetchSiteNavigationMenuByExternalReferenceCode(String externalReferenceCode, long groupId)
      Specified by:
      fetchSiteNavigationMenuByExternalReferenceCode in interface SiteNavigationMenuLocalService
    • fetchSiteNavigationMenuByName

      public SiteNavigationMenu fetchSiteNavigationMenuByName(long groupId, String name)
      Specified by:
      fetchSiteNavigationMenuByName in interface SiteNavigationMenuLocalService
    • fetchSiteNavigationMenuByUuidAndGroupId

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

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

      public List<SiteNavigationMenu> getAutoSiteNavigationMenus(long groupId)
      Specified by:
      getAutoSiteNavigationMenus in interface SiteNavigationMenuLocalService
    • getExportActionableDynamicQuery

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

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

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface SiteNavigationMenuLocalService
      Returns:
      the OSGi service identifier
    • 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 SiteNavigationMenuLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • getSiteNavigationMenu

      public SiteNavigationMenu getSiteNavigationMenu(long siteNavigationMenuId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the site navigation menu with the primary key.
      Specified by:
      getSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Parameters:
      siteNavigationMenuId - the primary key of the site navigation menu
      Returns:
      the site navigation menu
      Throws:
      PortalException - if a site navigation menu with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getSiteNavigationMenuByExternalReferenceCode

      public SiteNavigationMenu getSiteNavigationMenuByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getSiteNavigationMenuByExternalReferenceCode in interface SiteNavigationMenuLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSiteNavigationMenuByUuidAndGroupId

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

      public List<SiteNavigationMenu> getSiteNavigationMenus(int start, int end)
      Returns a range of all the site navigation menus.

      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.SiteNavigationMenuModelImpl.

      Specified by:
      getSiteNavigationMenus in interface SiteNavigationMenuLocalService
      Parameters:
      start - the lower bound of the range of site navigation menus
      end - the upper bound of the range of site navigation menus (not inclusive)
      Returns:
      the range of site navigation menus
    • getSiteNavigationMenus

      public List<SiteNavigationMenu> getSiteNavigationMenus(long groupId)
      Specified by:
      getSiteNavigationMenus in interface SiteNavigationMenuLocalService
    • getSiteNavigationMenus

      public List<SiteNavigationMenu> getSiteNavigationMenus(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteNavigationMenu> orderByComparator)
      Specified by:
      getSiteNavigationMenus in interface SiteNavigationMenuLocalService
    • getSiteNavigationMenus

      public List<SiteNavigationMenu> getSiteNavigationMenus(long groupId, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SiteNavigationMenu> orderByComparator)
      Specified by:
      getSiteNavigationMenus in interface SiteNavigationMenuLocalService
    • getSiteNavigationMenusByUuidAndCompanyId

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

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

      public int getSiteNavigationMenusCount()
      Returns the number of site navigation menus.
      Specified by:
      getSiteNavigationMenusCount in interface SiteNavigationMenuLocalService
      Returns:
      the number of site navigation menus
    • getSiteNavigationMenusCount

      public int getSiteNavigationMenusCount(long groupId)
      Specified by:
      getSiteNavigationMenusCount in interface SiteNavigationMenuLocalService
    • getSiteNavigationMenusCount

      public int getSiteNavigationMenusCount(long groupId, String keywords)
      Specified by:
      getSiteNavigationMenusCount in interface SiteNavigationMenuLocalService
    • updateSiteNavigationMenu

      public SiteNavigationMenu updateSiteNavigationMenu(long userId, long siteNavigationMenuId, int type, boolean auto, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSiteNavigationMenu

      public SiteNavigationMenu updateSiteNavigationMenu(long userId, long siteNavigationMenuId, long groupId, String name, int type, boolean auto) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSiteNavigationMenu

      public SiteNavigationMenu updateSiteNavigationMenu(long userId, long siteNavigationMenuId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSiteNavigationMenu

      public SiteNavigationMenu updateSiteNavigationMenu(SiteNavigationMenu siteNavigationMenu)
      Updates the site navigation menu in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect SiteNavigationMenuLocalServiceImpl 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:
      updateSiteNavigationMenu in interface SiteNavigationMenuLocalService
      Parameters:
      siteNavigationMenu - the site navigation menu
      Returns:
      the site navigation menu 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<SiteNavigationMenu> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<SiteNavigationMenu>
      Specified by:
      getCTPersistence in interface SiteNavigationMenuLocalService
    • getModelClass

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

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

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

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