Liferay 7.0-ce-b4

com.liferay.portal.kernel.comment
Class BaseDiscussionPermission

java.lang.Object
  extended by com.liferay.portal.kernel.comment.BaseDiscussionPermission
All Implemented Interfaces:
DiscussionPermission

public abstract class BaseDiscussionPermission
extends Object
implements DiscussionPermission


Constructor Summary
BaseDiscussionPermission()
           
 
Method Summary
 void checkAddPermission(long companyId, long groupId, String className, long classPK)
           
 void checkDeletePermission(long commentId)
           
 void checkSubscribePermission(long companyId, long groupId, String className, long classPK)
           
 void checkUpdatePermission(long commentId)
           
 void checkViewPermission(long companyId, long groupId, String className, long classPK)
           
 boolean hasDeletePermission(long commentId)
           
 boolean hasUpdatePermission(long commentId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.comment.DiscussionPermission
hasAddPermission, hasPermission, hasSubscribePermission, hasViewPermission
 

Constructor Detail

BaseDiscussionPermission

public BaseDiscussionPermission()
Method Detail

checkAddPermission

public void checkAddPermission(long companyId,
                               long groupId,
                               String className,
                               long classPK)
                        throws PortalException
Specified by:
checkAddPermission in interface DiscussionPermission
Throws:
PortalException

checkDeletePermission

public void checkDeletePermission(long commentId)
                           throws PortalException
Specified by:
checkDeletePermission in interface DiscussionPermission
Throws:
PortalException

checkSubscribePermission

public void checkSubscribePermission(long companyId,
                                     long groupId,
                                     String className,
                                     long classPK)
                              throws PortalException
Specified by:
checkSubscribePermission in interface DiscussionPermission
Throws:
PortalException

checkUpdatePermission

public void checkUpdatePermission(long commentId)
                           throws PortalException
Specified by:
checkUpdatePermission in interface DiscussionPermission
Throws:
PortalException

checkViewPermission

public void checkViewPermission(long companyId,
                                long groupId,
                                String className,
                                long classPK)
                         throws PortalException
Specified by:
checkViewPermission in interface DiscussionPermission
Throws:
PortalException

hasDeletePermission

public boolean hasDeletePermission(long commentId)
                            throws PortalException
Specified by:
hasDeletePermission in interface DiscussionPermission
Throws:
PortalException

hasUpdatePermission

public boolean hasUpdatePermission(long commentId)
                            throws PortalException
Specified by:
hasUpdatePermission in interface DiscussionPermission
Throws:
PortalException

Liferay 7.0-ce-b4