org.alfresco.repo.security.permissions.impl
Class AbstractPermissionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.security.permissions.impl.AbstractPermissionTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ACLEntryAfterInvocationTest, ACLEntryVoterTest, ExtendedPermissionServiceTest, PermissionModelTest, PermissionServiceTest

public class AbstractPermissionTest
extends junit.framework.TestCase


Field Summary
protected  AclDAO aclDaoComponent
           
protected  AuthenticationComponent authenticationComponent
           
protected  MutableAuthenticationService authenticationService
           
protected  AuthorityDAO authorityDAO
           
protected  AuthorityService authorityService
           
protected  org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
           
protected  org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver
           
protected  NodeDAO nodeDAO
           
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
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
           
 
Constructor Summary
AbstractPermissionTest()
           
 
Method Summary
protected  PermissionReference getPermission(java.lang.String permission)
           
protected  void runAs(java.lang.String userName)
           
 void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROLE_AUTHENTICATED

protected static final java.lang.String ROLE_AUTHENTICATED
See Also:
Constant Field Values

nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService

dictionaryService

protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService

permissionService

protected PermissionServiceSPI permissionService

authenticationService

protected MutableAuthenticationService authenticationService

sessionFactory

protected org.springframework.orm.hibernate3.LocalSessionFactoryBean sessionFactory

rootNodeRef

protected org.alfresco.service.cmr.repository.NodeRef rootNodeRef

namespacePrefixResolver

protected org.alfresco.service.namespace.NamespacePrefixResolver namespacePrefixResolver

serviceRegistry

protected ServiceRegistry serviceRegistry

systemNodeRef

protected org.alfresco.service.cmr.repository.NodeRef systemNodeRef

authenticationComponent

protected AuthenticationComponent authenticationComponent

permissionModelDAO

protected ModelDAO permissionModelDAO

personService

protected PersonService personService

authorityService

protected AuthorityService authorityService

authorityDAO

protected AuthorityDAO authorityDAO

nodeDAO

protected NodeDAO nodeDAO

aclDaoComponent

protected AclDAO aclDaoComponent

retryingTransactionHelper

protected RetryingTransactionHelper retryingTransactionHelper
Constructor Detail

AbstractPermissionTest

public AbstractPermissionTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

runAs

protected void runAs(java.lang.String userName)

getPermission

protected PermissionReference getPermission(java.lang.String permission)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.