public abstract class BaseSharingTestCase<T extends ClassedModel>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static AggregateTestRule |
aggregateTestRule |
| Constructor and Description |
|---|
BaseSharingTestCase() |
public static final 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 PortalException
PortalExceptionprotected abstract java.lang.String getClassName()
protected abstract T getModel(User user, Group group) throws PortalException
PortalExceptionprotected abstract int getModelCount(Group group) throws PortalException
PortalExceptionprotected abstract ModelResourcePermission<T> getModelResourcePermission()
protected abstract T getPendingModel(User user, Group group) throws PortalException
PortalExceptionprotected abstract PermissionSQLContributor getPermissionSQLContributor()
protected abstract SharingPermissionChecker getSharingPermissionChecker()
protected abstract void moveModelToTrash(T model) throws PortalException
PortalException