com.atlassian.confluence.user.crowd
Class ConfluenceCrowdDirectoryService

java.lang.Object
  extended by com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl
      extended by com.atlassian.confluence.user.crowd.ConfluenceCrowdDirectoryService
All Implemented Interfaces:
com.atlassian.crowd.embedded.api.CrowdDirectoryService

public final class ConfluenceCrowdDirectoryService
extends com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl

Overrides removal and addition of directories to make sure they're added to the single internal application. This should properly be handled by the default directory service implementation, but it was originally handled by the DAOs provided by JIRA and Confluence and we didn't get time to rewrite it.

TODO: This is a halfway house until we can update CrowdDirectoryServiceImpl to handle this itself.

Since:
3.5

Constructor Summary
ConfluenceCrowdDirectoryService(com.atlassian.crowd.embedded.api.ApplicationFactory applicationFactory, com.atlassian.crowd.directory.loader.DirectoryInstanceLoader directoryInstanceLoader, com.atlassian.crowd.manager.directory.DirectoryManager directoryManager, com.atlassian.crowd.manager.application.ApplicationManager applicationManager)
           
 
Method Summary
 com.atlassian.crowd.embedded.api.Directory addDirectory(com.atlassian.crowd.embedded.api.Directory directory)
           
 boolean removeDirectory(long directoryId)
           
 com.atlassian.crowd.embedded.api.Directory updateDirectory(com.atlassian.crowd.embedded.api.Directory directory)
           
 
Methods inherited from class com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl
findAllDirectories, findDirectoryById, getDirectorySynchronisationInformation, getStoredConnectionPoolProperties, getSystemConnectionPoolProperties, isDirectorySynchronisable, isDirectorySynchronising, setConnectionPoolProperties, setDirectoryPosition, supportsNestedGroups, synchroniseDirectory, synchroniseDirectory, testConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceCrowdDirectoryService

public ConfluenceCrowdDirectoryService(com.atlassian.crowd.embedded.api.ApplicationFactory applicationFactory,
                                       com.atlassian.crowd.directory.loader.DirectoryInstanceLoader directoryInstanceLoader,
                                       com.atlassian.crowd.manager.directory.DirectoryManager directoryManager,
                                       com.atlassian.crowd.manager.application.ApplicationManager applicationManager)
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
Overrides:
addDirectory in class com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException

removeDirectory

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

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
Overrides:
updateDirectory in class com.atlassian.crowd.embedded.core.CrowdDirectoryServiceImpl
Throws:
com.atlassian.crowd.exception.runtime.OperationFailedException


Copyright © 2003-2011 Atlassian. All Rights Reserved.