com.atlassian.crowd.dao.directory
Class IntegrityConstraintAwareDirectoryPropertiesMapper
java.lang.Object
com.atlassian.crowd.dao.directory.DirectoryPropertiesMapper
com.atlassian.crowd.dao.directory.IntegrityConstraintAwareDirectoryPropertiesMapper
public class IntegrityConstraintAwareDirectoryPropertiesMapper
- extends DirectoryPropertiesMapper
In order to prevent the instantiation of directories that do not exist in the
database, this class only authorises directories that match an existing id
in the database.
Method Summary |
protected boolean |
canImportDirectory(Long id)
Determines if a directory can be created using this mapper. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntegrityConstraintAwareDirectoryPropertiesMapper
public IntegrityConstraintAwareDirectoryPropertiesMapper(DirectoryDao backendDirectoryDao)
canImportDirectory
protected boolean canImportDirectory(Long id)
- Description copied from class:
DirectoryPropertiesMapper
- Determines if a directory can be created using this mapper. Subclasses can override
this method to implement their own policies.
- Overrides:
canImportDirectory
in class DirectoryPropertiesMapper
- Parameters:
id
- directory id
- Returns:
- true if the directory can be created
Copyright © 2013 Atlassian. All Rights Reserved.