public abstract class BaseSharingTestCase<T extends com.liferay.portal.kernel.model.ClassedModel>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.liferay.portal.kernel.test.rule.AggregateTestRule |
aggregateTestRule |
Constructor and Description |
---|
BaseSharingTestCase() |
public static final com.liferay.portal.kernel.test.rule.AggregateTestRule aggregateTestRule
public void setUp() throws java.lang.Exception
java.lang.Exception
public void testAdminCanShareWithAddDiscussion() throws java.lang.Exception
java.lang.Exception
public void testAdminCanShareWithUpdate() throws java.lang.Exception
java.lang.Exception
public void testAdminCanShareWithView() throws java.lang.Exception
java.lang.Exception
public void testDeletingSharedModelDeletesSharingEntries() throws java.lang.Exception
java.lang.Exception
public void testDeletingSharedModelDoesNotDeleteOtherSharingEntries() throws java.lang.Exception
java.lang.Exception
public void testInlinePermissions() throws java.lang.Exception
java.lang.Exception
public void testModelClassNameReturnsPermissionSQL() throws java.lang.Exception
java.lang.Exception
public void testMovingToRecycleBinSharedModelDoesNotDeleteSharingEntries() throws java.lang.Exception
java.lang.Exception
public void testUserWithAddDiscussionAndViewSharingEntryActionCanAddDiscussionPrivateModel() throws java.lang.Exception
java.lang.Exception
public void testUserWithAddDiscussionAndViewSharingEntryActionCannotUpdatePrivateModel() throws java.lang.Exception
java.lang.Exception
public void testUserWithAddDiscussionPermissionCannotShareWithUpdate() throws java.lang.Exception
java.lang.Exception
public void testUserWithAddDiscussionPermissionCannotShareWithView() throws java.lang.Exception
java.lang.Exception
public void testUserWithAddDiscussionPermissionCanShareWithAddDiscussion() throws java.lang.Exception
java.lang.Exception
public void testUserWithoutAddDiscussionPermissionCannotShareWithAddDiscussion() throws java.lang.Exception
java.lang.Exception
public void testUserWithoutAddDiscussionSharingEntryActionCannotAddDiscussionPrivateModel() throws java.lang.Exception
java.lang.Exception
public void testUserWithoutSharingCannotViewPrivateModel() throws java.lang.Exception
java.lang.Exception
public void testUserWithoutUpdatePermissionCannotShareWithUpdate() throws java.lang.Exception
java.lang.Exception
public void testUserWithoutUpdateSharingEntryActionCannotUpdatePrivateModel() throws java.lang.Exception
java.lang.Exception
public void testUserWithoutViewPermissionCannotShareWithView() throws java.lang.Exception
java.lang.Exception
public void testUserWithoutViewSharingEntryActionCannotViewPrivateModel() throws java.lang.Exception
java.lang.Exception
public void testUserWithUpdateAndViewSharingEntryActionCannotAddDiscussionPrivateModel() throws java.lang.Exception
java.lang.Exception
public void testUserWithUpdateAndViewSharingEntryActionCanUpdatePrivateModel() throws java.lang.Exception
java.lang.Exception
public void testUserWithUpdatePermissionCannotShareWithAddDiscussion() throws java.lang.Exception
java.lang.Exception
public void testUserWithUpdatePermissionCannotShareWithView() throws java.lang.Exception
java.lang.Exception
public void testUserWithUpdatePermissionCanShareWithUpdate() throws java.lang.Exception
java.lang.Exception
public void testUserWithViewPermissionCannotShareWithAddDiscussion() throws java.lang.Exception
java.lang.Exception
public void testUserWithViewPermissionCannotShareWithUpdate() throws java.lang.Exception
java.lang.Exception
public void testUserWithViewPermissionCanShareWithView() throws java.lang.Exception
java.lang.Exception
public void testUserWithViewSharingEntryActionCannotViewPendingModel() throws java.lang.Exception
java.lang.Exception
public void testUserWithViewSharingEntryActionCanViewPrivateModel() throws java.lang.Exception
java.lang.Exception
protected abstract void deleteModel(T model) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected abstract java.lang.String getClassName()
protected abstract T getModel(com.liferay.portal.kernel.model.User user, com.liferay.portal.kernel.model.Group group) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected abstract int getModelCount(com.liferay.portal.kernel.model.Group group) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected abstract com.liferay.portal.kernel.security.permission.resource.ModelResourcePermission<T> getModelResourcePermission()
protected abstract T getPendingModel(com.liferay.portal.kernel.model.User user, com.liferay.portal.kernel.model.Group group) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected abstract com.liferay.portal.security.permission.contributor.PermissionSQLContributor getPermissionSQLContributor()
protected abstract SharingPermissionChecker getSharingPermissionChecker()
protected abstract void moveModelToTrash(T model) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException