org.exoplatform.services.jcr.ext.replication.test
Class LockTestCase

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
      extended by org.exoplatform.services.jcr.ext.replication.test.LockTestCase

public class LockTestCase
extends BaseReplicationTestCase

Created by The eXo Platform SAS.

Version:
$Id: LockTestCase.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Alex Reshetnyak

Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
BUFFER_SIZE, DIVIDER, log, ONE_SECONDS, repository, rootNode, session
 
Constructor Summary
LockTestCase(RepositoryService repositoryService, java.lang.String reposytoryName, java.lang.String workspaceName, java.lang.String userName, java.lang.String password)
          LockTestCase constructor.
 
Method Summary
 java.lang.StringBuffer isLocked(java.lang.String repoPath)
          isLocked.
 java.lang.StringBuffer lock(java.lang.String repoPath)
          lock.
 
Methods inherited from class org.exoplatform.services.jcr.ext.replication.test.BaseReplicationTestCase
addNodePath, compareStream, compareStream, getNormalizePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockTestCase

public LockTestCase(RepositoryService repositoryService,
                    java.lang.String reposytoryName,
                    java.lang.String workspaceName,
                    java.lang.String userName,
                    java.lang.String password)
LockTestCase constructor.

Parameters:
repositoryService - the RepositoryService.
reposytoryName - the repository name
workspaceName - the workspace name
userName - the user name
password - the password
Method Detail

lock

public java.lang.StringBuffer lock(java.lang.String repoPath)
lock.

Parameters:
repoPath - repository path
Returns:
StringBuffer return the responds {'ok', 'fail'}

isLocked

public java.lang.StringBuffer isLocked(java.lang.String repoPath)
isLocked.

Parameters:
repoPath - repository path
Returns:
StringBuffer return the responds {'ok', 'fail'}


Copyright © 2012 eXo Platform SAS. All Rights Reserved.