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 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 interface com.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 interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
    • findDirectoryByName

      @Nullable public com.atlassian.crowd.embedded.api.Directory findDirectoryByName(String name)
      Specified by:
      findDirectoryByName in interface com.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 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
    • isMembershipAggregationEnabled

      public boolean isMembershipAggregationEnabled()
      Specified by:
      isMembershipAggregationEnabled in interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
    • setMembershipAggregationEnabled

      public void setMembershipAggregationEnabled(boolean b)
      Specified by:
      setMembershipAggregationEnabled in interface com.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 interface com.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 interface com.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 interface com.atlassian.crowd.embedded.api.CrowdDirectoryService
      Throws:
      com.atlassian.crowd.exception.OperationNotSupportedException
      com.atlassian.crowd.exception.DirectoryNotFoundException
    • initJndiLdapConnectionPool

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