Class KBFolderLocalServiceWrapper

java.lang.Object
com.liferay.knowledge.base.service.KBFolderLocalServiceWrapper
All Implemented Interfaces:
KBFolderLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<KBFolder>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<KBFolderLocalService>

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

    • KBFolderLocalServiceWrapper

      public KBFolderLocalServiceWrapper()
    • KBFolderLocalServiceWrapper

      public KBFolderLocalServiceWrapper(KBFolderLocalService kbFolderLocalService)
  • Method Details

    • addKBFolder

      public KBFolder addKBFolder(KBFolder kbFolder)
      Adds the kb folder to the database. Also notifies the appropriate model listeners.

      Important: Inspect KBFolderLocalServiceImpl 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:
      addKBFolder in interface KBFolderLocalService
      Parameters:
      kbFolder - the kb folder
      Returns:
      the kb folder that was added
    • addKBFolder

      public KBFolder addKBFolder(String externalReferenceCode, long userId, long groupId, long parentResourceClassNameId, long parentResourcePrimKey, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addKBFolder in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createKBFolder

      public KBFolder createKBFolder(long kbFolderId)
      Creates a new kb folder with the primary key. Does not add the kb folder to the database.
      Specified by:
      createKBFolder in interface KBFolderLocalService
      Parameters:
      kbFolderId - the primary key for the new kb folder
      Returns:
      the new kb folder
    • createPersistedModel

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

      public KBFolder deleteKBFolder(KBFolder kbFolder) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the kb folder from the database. Also notifies the appropriate model listeners.

      Important: Inspect KBFolderLocalServiceImpl 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:
      deleteKBFolder in interface KBFolderLocalService
      Parameters:
      kbFolder - the kb folder
      Returns:
      the kb folder that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteKBFolder

      public KBFolder deleteKBFolder(KBFolder kbFolder, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKBFolder in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKBFolder

      public KBFolder deleteKBFolder(long kbFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the kb folder with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect KBFolderLocalServiceImpl 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:
      deleteKBFolder in interface KBFolderLocalService
      Parameters:
      kbFolderId - the primary key of the kb folder
      Returns:
      the kb folder that was removed
      Throws:
      PortalException - if a kb folder with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteKBFolder

      public KBFolder deleteKBFolder(long kbFolderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKBFolder in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKBFolders

      public void deleteKBFolders(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKBFolders in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • 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 KBFolderLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

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

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

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface KBFolderLocalService
    • 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 KBFolderLocalService
      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.knowledge.base.model.impl.KBFolderModelImpl.

      Specified by:
      dynamicQuery in interface KBFolderLocalService
      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.knowledge.base.model.impl.KBFolderModelImpl.

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

      public KBFolder fetchFirstChildKBFolder(long groupId, long kbFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchFirstChildKBFolder in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchFirstChildKBFolder

      public KBFolder fetchFirstChildKBFolder(long groupId, long kbFolderId, com.liferay.portal.kernel.util.OrderByComparator<KBFolder> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchFirstChildKBFolder in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchKBFolder

      public KBFolder fetchKBFolder(long kbFolderId)
      Specified by:
      fetchKBFolder in interface KBFolderLocalService
    • fetchKBFolder

      public KBFolder fetchKBFolder(String uuid, long groupId)
      Specified by:
      fetchKBFolder in interface KBFolderLocalService
    • fetchKBFolderByExternalReferenceCode

      public KBFolder fetchKBFolderByExternalReferenceCode(String externalReferenceCode, long groupId)
      Specified by:
      fetchKBFolderByExternalReferenceCode in interface KBFolderLocalService
    • fetchKBFolderByUrlTitle

      public KBFolder fetchKBFolderByUrlTitle(long groupId, long parentKbFolderId, String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchKBFolderByUrlTitle in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchKBFolderByUuidAndGroupId

      public KBFolder fetchKBFolderByUuidAndGroupId(String uuid, long groupId)
      Returns the kb folder matching the UUID and group.
      Specified by:
      fetchKBFolderByUuidAndGroupId in interface KBFolderLocalService
      Parameters:
      uuid - the kb folder's UUID
      groupId - the primary key of the group
      Returns:
      the matching kb folder, or null if a matching kb folder could not be found
    • getActionableDynamicQuery

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

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

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

      public KBFolder getKBFolder(long kbFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the kb folder with the primary key.
      Specified by:
      getKBFolder in interface KBFolderLocalService
      Parameters:
      kbFolderId - the primary key of the kb folder
      Returns:
      the kb folder
      Throws:
      PortalException - if a kb folder with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getKBFolderByExternalReferenceCode

      public KBFolder getKBFolderByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKBFolderByExternalReferenceCode in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBFolderByUrlTitle

      public KBFolder getKBFolderByUrlTitle(long groupId, long parentKbFolderId, String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKBFolderByUrlTitle in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBFolderByUuidAndGroupId

      public KBFolder getKBFolderByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the kb folder matching the UUID and group.
      Specified by:
      getKBFolderByUuidAndGroupId in interface KBFolderLocalService
      Parameters:
      uuid - the kb folder's UUID
      groupId - the primary key of the group
      Returns:
      the matching kb folder
      Throws:
      PortalException - if a matching kb folder could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getKBFolders

      public List<KBFolder> getKBFolders(int start, int end)
      Returns a range of all the kb folders.

      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.knowledge.base.model.impl.KBFolderModelImpl.

      Specified by:
      getKBFolders in interface KBFolderLocalService
      Parameters:
      start - the lower bound of the range of kb folders
      end - the upper bound of the range of kb folders (not inclusive)
      Returns:
      the range of kb folders
    • getKBFolders

      public List<KBFolder> getKBFolders(long groupId, long parentKBFolderId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKBFolders in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBFoldersAndKBArticles

      public List<Object> getKBFoldersAndKBArticles(long groupId, long parentResourcePrimKey)
      Specified by:
      getKBFoldersAndKBArticles in interface KBFolderLocalService
    • getKBFoldersAndKBArticles

      public List<Object> getKBFoldersAndKBArticles(long groupId, long parentResourcePrimKey, int status)
      Specified by:
      getKBFoldersAndKBArticles in interface KBFolderLocalService
    • getKBFoldersAndKBArticles

      public List<Object> getKBFoldersAndKBArticles(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
      Specified by:
      getKBFoldersAndKBArticles in interface KBFolderLocalService
    • getKBFoldersAndKBArticlesCount

      public int getKBFoldersAndKBArticlesCount(long groupId, long parentResourcePrimKey, int status)
      Specified by:
      getKBFoldersAndKBArticlesCount in interface KBFolderLocalService
    • getKBFoldersByUuidAndCompanyId

      public List<KBFolder> getKBFoldersByUuidAndCompanyId(String uuid, long companyId)
      Returns all the kb folders matching the UUID and company.
      Specified by:
      getKBFoldersByUuidAndCompanyId in interface KBFolderLocalService
      Parameters:
      uuid - the UUID of the kb folders
      companyId - the primary key of the company
      Returns:
      the matching kb folders, or an empty list if no matches were found
    • getKBFoldersByUuidAndCompanyId

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

      public int getKBFoldersCount()
      Returns the number of kb folders.
      Specified by:
      getKBFoldersCount in interface KBFolderLocalService
      Returns:
      the number of kb folders
    • getKBFoldersCount

      public int getKBFoldersCount(long groupId, long parentKBFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKBFoldersCount in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBFoldersCount

      public int getKBFoldersCount(long groupId, long parentKBFolderId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKBFoldersCount in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

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

      public KBFolder moveKBFolder(long kbFolderId, long parentKBFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveKBFolder in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveKBFolderFromTrash

      public KBFolder moveKBFolderFromTrash(long userId, long kbFolderId, long parentKBFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveKBFolderFromTrash in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveKBFolderToTrash

      public KBFolder moveKBFolderToTrash(long userId, long kbFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveKBFolderToTrash in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreKBFolderFromTrash

      public KBFolder restoreKBFolderFromTrash(long userId, long kbFolderId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      restoreKBFolderFromTrash in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateKBFolder

      public KBFolder updateKBFolder(KBFolder kbFolder)
      Updates the kb folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect KBFolderLocalServiceImpl 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:
      updateKBFolder in interface KBFolderLocalService
      Parameters:
      kbFolder - the kb folder
      Returns:
      the kb folder that was updated
    • updateKBFolder

      public KBFolder updateKBFolder(long parentResourceClassNameId, long parentResourcePrimKey, long kbFolderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateKBFolder in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public KBFolder updateStatus(long userId, KBFolder kbFolder, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface KBFolderLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • 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<KBFolder> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<KBFolder>
      Specified by:
      getCTPersistence in interface KBFolderLocalService
    • getModelClass

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

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

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

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