Class KBCommentServiceUtil

java.lang.Object
com.liferay.knowledge.base.service.KBCommentServiceUtil

public class KBCommentServiceUtil extends Object
Provides the remote service utility for KBComment. This utility wraps com.liferay.knowledge.base.service.impl.KBCommentServiceImpl and is an access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
See Also:
Generated:
  • Constructor Details

    • KBCommentServiceUtil

      public KBCommentServiceUtil()
  • Method Details

    • deleteKBComment

      public static KBComment deleteKBComment(KBComment kbComment) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKBComment

      public static KBComment deleteKBComment(long kbCommentId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBComment

      public static KBComment getKBComment(long kbCommentId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBComments

      public static List<KBComment> getKBComments(long groupId, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBComments

      public static List<KBComment> getKBComments(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBComments

      public static List<KBComment> getKBComments(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBComments

      public static List<KBComment> getKBComments(long groupId, String className, long classPK, int status, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBComments

      public static List<KBComment> getKBComments(long groupId, String className, long classPK, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBComments

      public static List<KBComment> getKBComments(long groupId, String className, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBComment> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBCommentsCount

      public static int getKBCommentsCount(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBCommentsCount

      public static int getKBCommentsCount(long groupId, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBCommentsCount

      public static int getKBCommentsCount(long groupId, String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBCommentsCount

      public static int getKBCommentsCount(long groupId, String className, long classPK, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • updateKBComment

      public static KBComment updateKBComment(long kbCommentId, long classNameId, long classPK, String content, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateKBComment

      public static KBComment updateKBComment(long kbCommentId, long classNameId, long classPK, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public static KBComment updateStatus(long kbCommentId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static KBCommentService getService()