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.Exceptionpublic void testAdminCanShareWithAddDiscussion()
throws java.lang.Exception
java.lang.Exceptionpublic void testAdminCanShareWithUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testAdminCanShareWithView()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeletingSharedModelDeletesSharingEntries()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeletingSharedModelDoesNotDeleteOtherSharingEntries()
throws java.lang.Exception
java.lang.Exceptionpublic void testInlinePermissions()
throws java.lang.Exception
java.lang.Exceptionpublic void testModelClassNameReturnsPermissionSQL()
throws java.lang.Exception
java.lang.Exceptionpublic void testMovingToRecycleBinSharedModelDoesNotDeleteSharingEntries()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithAddDiscussionAndViewSharingEntryActionCanAddDiscussionPrivateModel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithAddDiscussionAndViewSharingEntryActionCannotUpdatePrivateModel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithAddDiscussionPermissionCannotShareWithUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithAddDiscussionPermissionCannotShareWithView()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithAddDiscussionPermissionCanShareWithAddDiscussion()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithoutAddDiscussionPermissionCannotShareWithAddDiscussion()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithoutAddDiscussionSharingEntryActionCannotAddDiscussionPrivateModel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithoutSharingCannotViewPrivateModel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithoutUpdatePermissionCannotShareWithUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithoutUpdateSharingEntryActionCannotUpdatePrivateModel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithoutViewPermissionCannotShareWithView()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithoutViewSharingEntryActionCannotViewPrivateModel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithUpdateAndViewSharingEntryActionCannotAddDiscussionPrivateModel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithUpdateAndViewSharingEntryActionCanUpdatePrivateModel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithUpdatePermissionCannotShareWithAddDiscussion()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithUpdatePermissionCannotShareWithView()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithUpdatePermissionCanShareWithUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithViewPermissionCannotShareWithAddDiscussion()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithViewPermissionCannotShareWithUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithViewPermissionCanShareWithView()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithViewSharingEntryActionCannotViewPendingModel()
throws java.lang.Exception
java.lang.Exceptionpublic void testUserWithViewSharingEntryActionCanViewPrivateModel()
throws java.lang.Exception
java.lang.Exceptionprotected abstract void deleteModel(T model) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected 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.PortalExceptionprotected abstract int getModelCount(com.liferay.portal.kernel.model.Group group)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected 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.PortalExceptionprotected abstract com.liferay.portal.security.permission.contributor.PermissionSQLContributor getPermissionSQLContributor()
protected abstract com.liferay.sharing.security.permission.SharingPermissionChecker getSharingPermissionChecker()
protected abstract void moveModelToTrash(T model) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException