Package com.atlassian.bamboo.crowd
Class DelegatingCrowdDirectoryService
- java.lang.Object
-
- com.atlassian.bamboo.crowd.DelegatingCrowdDirectoryService
-
- All Implemented Interfaces:
com.atlassian.crowd.embedded.api.CrowdDirectoryService
- Direct Known Subclasses:
BambooCrowdDirectoryService
public class DelegatingCrowdDirectoryService extends Object implements com.atlassian.crowd.embedded.api.CrowdDirectoryService
Delegates all calls
-
-
Field Summary
Fields Modifier and Type Field Description protected com.atlassian.crowd.embedded.api.CrowdDirectoryService
delegate
-
Constructor Summary
Constructors Constructor Description DelegatingCrowdDirectoryService(com.atlassian.crowd.embedded.api.CrowdDirectoryService delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 directoryId)
com.atlassian.crowd.embedded.api.Directory
findDirectoryByName(String s)
com.atlassian.crowd.embedded.api.DirectorySynchronisationInformation
getDirectorySynchronisationInformation(long directoryId)
com.atlassian.crowd.embedded.api.ConnectionPoolProperties
getStoredConnectionPoolProperties()
com.atlassian.crowd.embedded.api.ConnectionPoolProperties
getSystemConnectionPoolProperties()
boolean
isDirectorySynchronisable(long directoryId)
boolean
isDirectorySynchronising(long directoryId)
boolean
isMembershipAggregationEnabled()
boolean
removeDirectory(long directoryId)
void
setConnectionPoolProperties(com.atlassian.crowd.embedded.api.ConnectionPoolProperties poolProperties)
void
setDirectoryPosition(long directoryId, int position)
void
setMembershipAggregationEnabled(boolean enabled)
boolean
supportsNestedGroups(long directoryId)
void
synchroniseDirectory(long directoryId)
void
synchroniseDirectory(long directoryId, boolean runInBackground)
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> enumSet)
-
-
-
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 interfacecom.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 interfacecom.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 interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
findDirectoryById
public com.atlassian.crowd.embedded.api.Directory findDirectoryById(long directoryId)
- 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 directoryId, int position) 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 directoryId) 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 directoryId) 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 directoryId) 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 directoryId) 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 directoryId, boolean runInBackground) 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 directoryId) 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 directoryId) 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 poolProperties)
- 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 enabled)
- Specified by:
setMembershipAggregationEnabled
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
validateDirectoryConfiguration
public List<com.atlassian.crowd.validator.ValidationError> validateDirectoryConfiguration(com.atlassian.crowd.embedded.api.Directory directory, EnumSet<com.atlassian.crowd.validator.DirectoryValidationContext> enumSet)
- Specified by:
validateDirectoryConfiguration
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
findDirectoryByName
public com.atlassian.crowd.embedded.api.Directory findDirectoryByName(String s)
- Specified by:
findDirectoryByName
in interfacecom.atlassian.crowd.embedded.api.CrowdDirectoryService
-
-