public class AbstractReadPermissionTest
extends junit.framework.TestCase
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractReadPermissionTest.Counter |
| Modifier and Type | Field and Description |
|---|---|
protected AccessControlListDAO |
accessControlListDao |
protected AclDAO |
aclDaoComponent |
protected ADMLuceneIndexer |
admLuceneIndexer |
protected static org.springframework.context.ApplicationContext |
applicationContext |
protected AuthenticationComponent |
authenticationComponent |
protected MutableAuthenticationDao |
authenticationDAO |
protected MutableAuthenticationService |
authenticationService |
protected java.lang.String[] |
authorities |
protected AuthorityDAO |
authorityDAO |
protected AuthorityService |
authorityService |
protected java.lang.String |
AVMStore |
protected AbstractReadPermissionTest.Counter |
c0001 |
protected AbstractReadPermissionTest.Counter |
c001 |
protected AbstractReadPermissionTest.Counter |
c01 |
protected int |
COUNT |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected FileFolderService |
fileFolderService |
protected IndexerAndSearcher |
fIndexerAndSearcher |
protected AVMService |
fService |
protected boolean |
logToFile |
protected org.alfresco.service.namespace.NamespacePrefixResolver |
namespacePrefixResolver |
protected NodeDAO |
nodeDAO |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected OwnableService |
ownableService |
protected ModelDAO |
permissionModelDAO |
protected PermissionServiceSPI |
permissionService |
protected PersonService |
personService |
protected RetryingTransactionHelper |
retryingTransactionHelper |
protected static java.lang.String |
ROLE_AUTHENTICATED |
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 |
protected java.lang.String |
TEST_RUN |
protected java.lang.String |
TEST_WEBPROJ_DEFAULT_WEBAPP |
protected java.lang.String |
TEST_WEBPROJ_DESCRIPTION |
protected java.lang.String |
TEST_WEBPROJ_DNS |
protected boolean |
TEST_WEBPROJ_DONT_USE_AS_TEMPLATE |
protected java.lang.String |
TEST_WEBPROJ_NAME |
protected java.lang.String |
TEST_WEBPROJ_TITLE |
protected boolean |
TEST_WEBPROJ_USE_AS_TEMPLATE |
protected javax.transaction.UserTransaction |
testTX |
protected TransactionService |
transactionService |
protected java.lang.String[] |
webAuthorities |
protected WebProjectService |
wpService |
| Constructor and Description |
|---|
AbstractReadPermissionTest() |
| Modifier and Type | Method and Description |
|---|---|
protected org.alfresco.service.cmr.repository.NodeRef[] |
build1000Nodes(java.lang.String authority,
int returnNodes,
boolean inherit) |
protected org.alfresco.service.cmr.repository.NodeRef[] |
build1000Nodes(java.lang.String authority,
java.lang.String permission,
boolean inherit) |
protected org.alfresco.service.cmr.repository.NodeRef[] |
build1000Nodes(java.lang.String authority,
java.lang.String permission,
int returnNodes,
boolean inherit) |
protected void |
build1000NodesReadDenied(java.lang.String authority) |
protected void |
buildNodes() |
protected void |
buildNodes(java.lang.String user,
java.lang.String permission,
int n,
boolean inherit) |
protected org.alfresco.service.cmr.repository.NodeRef[] |
buildOwnedNodes(java.lang.String authority,
int returnNodes) |
protected void |
createAuthentication(java.lang.String name) |
protected void |
createGroup(java.lang.String name) |
protected void |
deleteAuthentication(java.lang.String name) |
protected void |
runAs(java.lang.String userName) |
void |
setUp() |
protected void |
setupBasicTree(java.lang.String authority) |
protected void |
tearDown() |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, formatprotected static org.springframework.context.ApplicationContext applicationContext
protected static final java.lang.String ROLE_AUTHENTICATED
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected PermissionServiceSPI permissionService
protected MutableAuthenticationService authenticationService
protected MutableAuthenticationDao authenticationDAO
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 AuthorityDAO authorityDAO
protected NodeDAO nodeDAO
protected AclDAO aclDaoComponent
protected ADMLuceneIndexer admLuceneIndexer
protected RetryingTransactionHelper retryingTransactionHelper
protected TransactionService transactionService
protected AccessControlListDAO accessControlListDao
protected FileFolderService fileFolderService
protected OwnableService ownableService
protected javax.transaction.UserTransaction testTX
protected AVMService fService
protected IndexerAndSearcher fIndexerAndSearcher
protected WebProjectService wpService
protected boolean logToFile
protected java.lang.String[] webAuthorities
protected java.lang.String[] authorities
protected java.lang.String AVMStore
protected final java.lang.String TEST_RUN
protected final java.lang.String TEST_WEBPROJ_DNS
protected final java.lang.String TEST_WEBPROJ_NAME
protected final java.lang.String TEST_WEBPROJ_TITLE
protected final java.lang.String TEST_WEBPROJ_DESCRIPTION
protected final java.lang.String TEST_WEBPROJ_DEFAULT_WEBAPP
protected final boolean TEST_WEBPROJ_USE_AS_TEMPLATE
protected final boolean TEST_WEBPROJ_DONT_USE_AS_TEMPLATE
protected int COUNT
protected AbstractReadPermissionTest.Counter c01
protected AbstractReadPermissionTest.Counter c001
protected AbstractReadPermissionTest.Counter c0001
protected void createAuthentication(java.lang.String name)
protected void createGroup(java.lang.String name)
protected void runAs(java.lang.String userName)
protected org.alfresco.service.cmr.repository.NodeRef[] build1000Nodes(java.lang.String authority,
int returnNodes,
boolean inherit)
protected org.alfresco.service.cmr.repository.NodeRef[] buildOwnedNodes(java.lang.String authority,
int returnNodes)
protected void buildNodes(java.lang.String user,
java.lang.String permission,
int n,
boolean inherit)
protected org.alfresco.service.cmr.repository.NodeRef[] build1000Nodes(java.lang.String authority,
java.lang.String permission,
int returnNodes,
boolean inherit)
protected org.alfresco.service.cmr.repository.NodeRef[] build1000Nodes(java.lang.String authority,
java.lang.String permission,
boolean inherit)
protected void build1000NodesReadDenied(java.lang.String authority)
protected void buildNodes()
protected void setupBasicTree(java.lang.String authority)
throws java.lang.Exception
java.lang.Exceptionprotected void deleteAuthentication(java.lang.String name)
public void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.