com.silverpeas.jcrutil.security.jaas
Class TestAccessAuthentified

java.lang.Object
  extended by com.silverpeas.jcrutil.security.jaas.TestAccessAuthentified

public class TestAccessAuthentified
extends Object


Constructor Summary
TestAccessAuthentified()
           
 
Method Summary
protected  void clearRepository()
           
protected  org.dbunit.dataset.IDataSet getDataSet()
           
protected  boolean hasMixin(String mixinName, javax.jcr.Node node)
           
static void loadSpringContext()
           
 void onSetUp()
           
 void setUpDatabase()
           
static void tearAlldown()
           
 void tearDownDatabase()
           
 void testAccessFileNotOwnable()
           
 void testAccessFileOwnable()
           
 void testAccessFolderNotOwnable()
           
 void testAccessFolderOwnable()
           
protected  void validateFile(javax.jcr.Session session, boolean isAccessible, boolean hasMixin)
           
protected  void validateFolder(javax.jcr.Session session, boolean hasMixin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAccessAuthentified

public TestAccessAuthentified()
Method Detail

loadSpringContext

public static void loadSpringContext()
                              throws Exception
Throws:
Exception

tearAlldown

public static void tearAlldown()
                        throws Exception
Throws:
Exception

onSetUp

public void onSetUp()
             throws Exception
Throws:
Exception

setUpDatabase

public void setUpDatabase()
                   throws Exception
Throws:
Exception

tearDownDatabase

public void tearDownDatabase()
                      throws Exception
Throws:
Exception

testAccessFileOwnable

public void testAccessFileOwnable()
                           throws Exception
Throws:
Exception

testAccessFileNotOwnable

public void testAccessFileNotOwnable()
                              throws Exception
Throws:
Exception

validateFile

protected void validateFile(javax.jcr.Session session,
                            boolean isAccessible,
                            boolean hasMixin)
                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

validateFolder

protected void validateFolder(javax.jcr.Session session,
                              boolean hasMixin)
                       throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

testAccessFolderOwnable

public void testAccessFolderOwnable()
                             throws Exception
Throws:
Exception

testAccessFolderNotOwnable

public void testAccessFolderNotOwnable()
                                throws Exception
Throws:
Exception

getDataSet

protected org.dbunit.dataset.IDataSet getDataSet()
                                          throws Exception
Throws:
Exception

clearRepository

protected void clearRepository()
                        throws Exception
Throws:
Exception

hasMixin

protected boolean hasMixin(String mixinName,
                           javax.jcr.Node node)
                    throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2016 Silverpeas. All Rights Reserved.