public class MockCrowdDirectoryService extends Object implements com.atlassian.crowd.embedded.api.CrowdDirectoryService
Constructor and Description |
---|
MockCrowdDirectoryService() |
Modifier and Type | Method and Description |
---|---|
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.Directory |
findDirectoryByName(String name) |
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 |
isMembershipAggregationEnabled() |
boolean |
removeDirectory(long l) |
void |
setConnectionPoolProperties(com.atlassian.crowd.embedded.api.ConnectionPoolProperties connectionPoolProperties) |
void |
setDirectoryPosition(long l,
int i) |
void |
setMembershipAggregationEnabled(boolean b) |
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) |
List<com.atlassian.crowd.validator.ValidationError> |
validateDirectoryConfiguration(com.atlassian.crowd.embedded.api.Directory directory,
EnumSet<com.atlassian.crowd.validator.DirectoryValidationContext> validationContexts) |
public com.atlassian.crowd.embedded.api.Directory addDirectory(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.runtime.OperationFailedException
addDirectory
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public List<com.atlassian.crowd.validator.ValidationError> validateDirectoryConfiguration(com.atlassian.crowd.embedded.api.Directory directory, EnumSet<com.atlassian.crowd.validator.DirectoryValidationContext> validationContexts)
validateDirectoryConfiguration
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
@Nullable public com.atlassian.crowd.embedded.api.Directory findDirectoryByName(String name)
findDirectoryByName
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
public void testConnection(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.runtime.OperationFailedException
testConnection
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public List<com.atlassian.crowd.embedded.api.Directory> findAllDirectories()
findAllDirectories
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
public com.atlassian.crowd.embedded.api.Directory findDirectoryById(long id)
findDirectoryById
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
public com.atlassian.crowd.embedded.api.Directory updateDirectory(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.runtime.OperationFailedException
updateDirectory
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public void setDirectoryPosition(long l, int i) throws com.atlassian.crowd.exception.runtime.OperationFailedException
setDirectoryPosition
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean removeDirectory(long l) throws com.atlassian.crowd.exception.DirectoryCurrentlySynchronisingException, com.atlassian.crowd.exception.runtime.OperationFailedException
removeDirectory
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.DirectoryCurrentlySynchronisingException
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean supportsNestedGroups(long l) throws com.atlassian.crowd.exception.runtime.OperationFailedException
supportsNestedGroups
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean isDirectorySynchronisable(long l) throws com.atlassian.crowd.exception.runtime.OperationFailedException
isDirectorySynchronisable
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public void synchroniseDirectory(long l) throws com.atlassian.crowd.exception.runtime.OperationFailedException
synchroniseDirectory
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public void synchroniseDirectory(long l, boolean b) throws com.atlassian.crowd.exception.runtime.OperationFailedException
synchroniseDirectory
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public boolean isDirectorySynchronising(long l) throws com.atlassian.crowd.exception.runtime.OperationFailedException
isDirectorySynchronising
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public com.atlassian.crowd.embedded.api.DirectorySynchronisationInformation getDirectorySynchronisationInformation(long l) throws com.atlassian.crowd.exception.runtime.OperationFailedException
getDirectorySynchronisationInformation
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
com.atlassian.crowd.exception.runtime.OperationFailedException
public void setConnectionPoolProperties(com.atlassian.crowd.embedded.api.ConnectionPoolProperties connectionPoolProperties)
setConnectionPoolProperties
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
public com.atlassian.crowd.embedded.api.ConnectionPoolProperties getStoredConnectionPoolProperties()
getStoredConnectionPoolProperties
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
public com.atlassian.crowd.embedded.api.ConnectionPoolProperties getSystemConnectionPoolProperties()
getSystemConnectionPoolProperties
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
public boolean isMembershipAggregationEnabled()
isMembershipAggregationEnabled
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
public void setMembershipAggregationEnabled(boolean b)
setMembershipAggregationEnabled
in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
Copyright © 2002-2021 Atlassian. All Rights Reserved.