public class AVMServicePermissionsTest
extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
protected AuthenticationComponent |
authenticationComponent |
protected MutableAuthenticationService |
authenticationService |
protected AuthorityService |
authorityService |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected org.alfresco.service.namespace.NamespacePrefixResolver |
namespacePrefixResolver |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected ModelDAO |
permissionModelDAO |
protected PermissionServiceSPI |
permissionService |
protected PersonService |
personService |
protected org.alfresco.service.cmr.repository.NodeRef |
rootNodeRef |
protected ServiceRegistry |
serviceRegistry |
protected org.springframework.orm.hibernate3.LocalSessionFactoryBean |
sessionFactory |
protected org.alfresco.service.cmr.repository.NodeRef |
systemNodeRef |
Constructor and Description |
---|
AVMServicePermissionsTest() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkHasPermission(java.lang.String user,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.lang.String permission,
boolean allowed) |
protected PermissionReference |
getPermission(java.lang.String permission) |
protected void |
recursiveList(java.lang.String store)
Helper to write a recursive listing of latest version of an AVMStore.
|
protected java.lang.String |
recursiveList(java.lang.String repoName,
int version,
boolean followLinks)
Helper to write a recursive listing of an AVMStore at a given version.
|
protected java.lang.String |
recursiveList(java.lang.String path,
int version,
int indent,
boolean followLinks)
Recursive list the given path.
|
protected void |
runAs(java.lang.String userName) |
protected void |
setUp() |
protected void |
tearDown() |
void |
test_ETWOTWO_457_NPE1() |
void |
test_ETWOTWO_457_NPE2() |
void |
test_ETWOTWO_457_NPE3() |
void |
testBranches() |
void |
testComplexStore_AddPermissionsToBottom() |
void |
testComplexStore_AddPermissionsToMiddle() |
void |
testComplexStore_AlterInheritance() |
void |
testCopy() |
void |
testMutationsWithSimpleLayers() |
void |
testRedirectLayeredDirectory() |
void |
testRenamePlainDirectory() |
void |
testRenamePlainDirectoryIntoLayer() |
void |
testRenamePlainFile() |
void |
testRenamePlainFileIntoLayer() |
void |
testSetInheritParentPermissions() |
void |
testSetup() |
void |
testSimpleDirectoryPermissionDiff0() |
void |
testSimpleDirectoryPermissionDiff1() |
void |
testSimpleDirectoryPermissionDiff2() |
void |
testSimpleDirectoryPermissionDiff3() |
void |
testSimpleDirectoryPermissionDiff4() |
void |
testSimpleDirectoryPermissionDiff5() |
void |
testSimpleDirectoryPermissionDiff6() |
void |
testSimpleExternalLayer() |
void |
testSimpleFilePermissionDiff() |
void |
testSimpleUpdate() |
void |
testStoreAcls() |
void |
testUpdateWithPermissions() |
void |
testWCMStyleTemplateAsBranch() |
void |
x_testSimpleInternalLayer() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected PermissionServiceSPI permissionService
protected MutableAuthenticationService authenticationService
protected org.springframework.orm.hibernate3.LocalSessionFactoryBean sessionFactory
protected org.alfresco.service.cmr.repository.NodeRef rootNodeRef
protected org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver
protected ServiceRegistry serviceRegistry
protected org.alfresco.service.cmr.repository.NodeRef systemNodeRef
protected AuthenticationComponent authenticationComponent
protected ModelDAO permissionModelDAO
protected PersonService personService
protected AuthorityService authorityService
protected void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
protected void runAs(java.lang.String userName)
protected PermissionReference getPermission(java.lang.String permission)
public boolean checkHasPermission(java.lang.String user, org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String permission, boolean allowed)
public void testSetup() throws java.lang.Exception
java.lang.Exception
public void test_ETWOTWO_457_NPE1() throws java.lang.Exception
java.lang.Exception
public void test_ETWOTWO_457_NPE2() throws java.lang.Exception
java.lang.Exception
public void test_ETWOTWO_457_NPE3() throws java.lang.Exception
java.lang.Exception
public void testStoreAcls() throws java.lang.Exception
java.lang.Exception
public void testSimpleUpdate() throws java.lang.Throwable
java.lang.Throwable
public void testUpdateWithPermissions() throws java.lang.Exception
java.lang.Exception
public void testComplexStore_AlterInheritance() throws java.io.IOException
java.io.IOException
public void testComplexStore_AddPermissionsToMiddle() throws java.io.IOException
java.io.IOException
public void testComplexStore_AddPermissionsToBottom() throws java.io.IOException
java.io.IOException
public void testSimpleFilePermissionDiff() throws java.lang.Throwable
java.lang.Throwable
public void testSimpleDirectoryPermissionDiff0() throws java.lang.Throwable
java.lang.Throwable
public void testSimpleDirectoryPermissionDiff1() throws java.lang.Throwable
java.lang.Throwable
public void testSimpleDirectoryPermissionDiff2() throws java.lang.Throwable
java.lang.Throwable
public void testSimpleDirectoryPermissionDiff3() throws java.lang.Throwable
java.lang.Throwable
public void testSimpleDirectoryPermissionDiff4() throws java.lang.Throwable
java.lang.Throwable
public void testSimpleDirectoryPermissionDiff5() throws java.lang.Throwable
java.lang.Throwable
public void testSimpleDirectoryPermissionDiff6() throws java.lang.Throwable
java.lang.Throwable
public void testRedirectLayeredDirectory() throws java.io.IOException
java.io.IOException
public void testCopy()
public void testBranches()
public void testWCMStyleTemplateAsBranch()
public void testSimpleExternalLayer() throws java.lang.Exception
java.lang.Exception
public void x_testSimpleInternalLayer() throws java.io.IOException
java.io.IOException
public void testMutationsWithSimpleLayers() throws java.io.IOException
java.io.IOException
public void testRenamePlainDirectory()
public void testRenamePlainFile() throws java.io.IOException
java.io.IOException
public void testRenamePlainDirectoryIntoLayer()
public void testRenamePlainFileIntoLayer() throws java.io.IOException
java.io.IOException
protected void recursiveList(java.lang.String store)
repoName
- The name of the AVMStore.protected java.lang.String recursiveList(java.lang.String repoName, int version, boolean followLinks)
repoName
- The name of the AVMStore.version
- The version to look under.protected java.lang.String recursiveList(java.lang.String path, int version, int indent, boolean followLinks)
path
- The path.version
- The version.indent
- The current indent level.public void testSetInheritParentPermissions() throws java.lang.Exception
java.lang.Exception
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.