Package com.atlassian.jira.user
Class MockCrowdDirectoryService
java.lang.Object
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
-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.crowd.embedded.api.Directory
addDirectory
(com.atlassian.crowd.embedded.api.Directory directory) List<com.atlassian.crowd.embedded.api.Directory>
com.atlassian.crowd.embedded.api.Directory
findDirectoryById
(long id) com.atlassian.crowd.embedded.api.Directory
findDirectoryByName
(String name) com.atlassian.crowd.embedded.api.DirectorySynchronisationInformation
getPasswordComplexityMessage
(long l) com.atlassian.crowd.embedded.api.PasswordPolicyConfiguration
getPasswordPolicyConfiguration
(long l) com.atlassian.crowd.embedded.api.ConnectionPoolProperties
com.atlassian.crowd.embedded.api.ConnectionPoolProperties
void
boolean
isDirectorySynchronisable
(long l) boolean
isDirectorySynchronising
(long l) boolean
boolean
removeDirectory
(long l) void
setConnectionPoolProperties
(com.atlassian.crowd.embedded.api.ConnectionPoolProperties connectionPoolProperties) void
setDirectoryPosition
(long l, int i) void
setMembershipAggregationEnabled
(boolean b) void
setPasswordPolicyConfiguration
(long l, com.atlassian.crowd.embedded.api.PasswordPolicyConfiguration passwordPolicyConfiguration, String s) 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)
-
Constructor Details
-
MockCrowdDirectoryService
public MockCrowdDirectoryService()
-
-
Method Details
-
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 interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
- Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException
-
validateDirectoryConfiguration
public List<com.atlassian.crowd.validator.ValidationError> validateDirectoryConfiguration(com.atlassian.crowd.embedded.api.Directory directory, EnumSet<com.atlassian.crowd.validator.DirectoryValidationContext> validationContexts) - Specified by:
validateDirectoryConfiguration
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
findDirectoryByName
- Specified by:
findDirectoryByName
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
testConnection
public void testConnection(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.runtime.OperationFailedException - Specified by:
testConnection
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
- Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException
-
findAllDirectories
- Specified by:
findAllDirectories
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
findDirectoryById
public com.atlassian.crowd.embedded.api.Directory findDirectoryById(long id) - Specified by:
findDirectoryById
in interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
getStoredConnectionPoolProperties
public com.atlassian.crowd.embedded.api.ConnectionPoolProperties getStoredConnectionPoolProperties()- Specified by:
getStoredConnectionPoolProperties
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
getSystemConnectionPoolProperties
public com.atlassian.crowd.embedded.api.ConnectionPoolProperties getSystemConnectionPoolProperties()- Specified by:
getSystemConnectionPoolProperties
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
isMembershipAggregationEnabled
public boolean isMembershipAggregationEnabled()- Specified by:
isMembershipAggregationEnabled
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
setMembershipAggregationEnabled
public void setMembershipAggregationEnabled(boolean b) - Specified by:
setMembershipAggregationEnabled
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
setPasswordPolicyConfiguration
public void setPasswordPolicyConfiguration(long l, com.atlassian.crowd.embedded.api.PasswordPolicyConfiguration passwordPolicyConfiguration, String s) throws com.atlassian.crowd.exception.OperationNotSupportedException, com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
setPasswordPolicyConfiguration
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
- Throws:
com.atlassian.crowd.exception.OperationNotSupportedException
com.atlassian.crowd.exception.DirectoryNotFoundException
-
getPasswordPolicyConfiguration
public com.atlassian.crowd.embedded.api.PasswordPolicyConfiguration getPasswordPolicyConfiguration(long l) throws com.atlassian.crowd.exception.OperationNotSupportedException, com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
getPasswordPolicyConfiguration
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
- Throws:
com.atlassian.crowd.exception.OperationNotSupportedException
com.atlassian.crowd.exception.DirectoryNotFoundException
-
getPasswordComplexityMessage
public String getPasswordComplexityMessage(long l) throws com.atlassian.crowd.exception.OperationNotSupportedException, com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
getPasswordComplexityMessage
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
- Throws:
com.atlassian.crowd.exception.OperationNotSupportedException
com.atlassian.crowd.exception.DirectoryNotFoundException
-
initJndiLdapConnectionPool
public void initJndiLdapConnectionPool()- Specified by:
initJndiLdapConnectionPool
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-