com.atlassian.jira.user
Class MockCrowdDirectoryService

java.lang.Object
  extended by com.atlassian.jira.user.MockCrowdDirectoryService
All Implemented Interfaces:
com.atlassian.crowd.embedded.api.CrowdDirectoryService

public class MockCrowdDirectoryService
extends Object
implements com.atlassian.crowd.embedded.api.CrowdDirectoryService

Since:
v4.4

Constructor Summary
MockCrowdDirectoryService()
           
 
Method Summary
 com.atlassian.crowd.embedded.api.Directory addDirectory(com.atlassian.crowd.embedded.api.Directory directory)
           
 List<com.atlassian.crowd.embedded.api.Directory> findAllDirectories()
           
 com.atlassian.crowd.embedded.api.Directory findDirectoryById(long id)
           
 com.atlassian.crowd.embedded.api.DirectorySynchronisationInformation getDirectorySynchronisationInformation(long l)
           
 com.atlassian.crowd.embedded.api.ConnectionPoolProperties getStoredConnectionPoolProperties()
           
 com.atlassian.crowd.embedded.api.ConnectionPoolProperties getSystemConnectionPoolProperties()
           
 boolean isDirectorySynchronisable(long l)
           
 boolean isDirectorySynchronising(long l)
           
 boolean removeDirectory(long l)
           
 void setConnectionPoolProperties(com.atlassian.crowd.embedded.api.ConnectionPoolProperties connectionPoolProperties)
           
 void setDirectoryPosition(long l, int i)
           
 boolean supportsNestedGroups(long l)
           
 void synchroniseDirectory(long l)
           
 void synchroniseDirectory(long l, boolean b)
           
 void testConnection(com.atlassian.crowd.embedded.api.Directory directory)
           
 com.atlassian.crowd.embedded.api.Directory updateDirectory(com.atlassian.crowd.embedded.api.Directory directory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockCrowdDirectoryService

public MockCrowdDirectoryService()
Method Detail

addDirectory

public com.atlassian.crowd.embedded.api.Directory addDirectory(com.atlassian.crowd.embedded.api.Directory directory)
                                                        throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
addDirectory in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

testConnection

public void testConnection(com.atlassian.crowd.embedded.api.Directory directory)
                    throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
testConnection in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

findAllDirectories

public List<com.atlassian.crowd.embedded.api.Directory> findAllDirectories()
Specified by:
findAllDirectories in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService

findDirectoryById

public com.atlassian.crowd.embedded.api.Directory findDirectoryById(long id)
Specified by:
findDirectoryById in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService

updateDirectory

public com.atlassian.crowd.embedded.api.Directory updateDirectory(com.atlassian.crowd.embedded.api.Directory directory)
                                                           throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
updateDirectory in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

setDirectoryPosition

public void setDirectoryPosition(long l,
                                 int i)
                          throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
setDirectoryPosition in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

removeDirectory

public boolean removeDirectory(long l)
                        throws com.atlassian.crowd.exception.DirectoryCurrentlySynchronisingException,
                               com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
removeDirectory in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.DirectoryCurrentlySynchronisingException
com.atlassian.crowd.exception.runtime.OperationFailedException

supportsNestedGroups

public boolean supportsNestedGroups(long l)
                             throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
supportsNestedGroups in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

isDirectorySynchronisable

public boolean isDirectorySynchronisable(long l)
                                  throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
isDirectorySynchronisable in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

synchroniseDirectory

public void synchroniseDirectory(long l)
                          throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
synchroniseDirectory in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

synchroniseDirectory

public void synchroniseDirectory(long l,
                                 boolean b)
                          throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
synchroniseDirectory in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

isDirectorySynchronising

public boolean isDirectorySynchronising(long l)
                                 throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
isDirectorySynchronising in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

getDirectorySynchronisationInformation

public com.atlassian.crowd.embedded.api.DirectorySynchronisationInformation getDirectorySynchronisationInformation(long l)
                                                                                                            throws com.atlassian.crowd.exception.runtime.OperationFailedException
Specified by:
getDirectorySynchronisationInformation in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

setConnectionPoolProperties

public void setConnectionPoolProperties(com.atlassian.crowd.embedded.api.ConnectionPoolProperties connectionPoolProperties)
Specified by:
setConnectionPoolProperties in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService

getStoredConnectionPoolProperties

public com.atlassian.crowd.embedded.api.ConnectionPoolProperties getStoredConnectionPoolProperties()
Specified by:
getStoredConnectionPoolProperties in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService

getSystemConnectionPoolProperties

public com.atlassian.crowd.embedded.api.ConnectionPoolProperties getSystemConnectionPoolProperties()
Specified by:
getSystemConnectionPoolProperties in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService


Copyright © 2002-2011 Atlassian. All Rights Reserved.