com.atlassian.crowd.dao.directory
Class DirectoryPropertiesMapper

java.lang.Object
  extended by com.atlassian.crowd.dao.directory.DirectoryPropertiesMapper
Direct Known Subclasses:
IntegrityConstraintAwareDirectoryPropertiesMapper

public class DirectoryPropertiesMapper
extends Object

A mapper that builds immutable directories by parsing the data from a properties (it does not do any caching) and exports directories to properties.


Field Summary
static String ACTIVE_PROPERTY
           
static String ALLOWED_OPERATIONS_PROPERTY
           
static String ATTRIBUTES_PROPERTY
           
static String DESCRIPTION_PROPERTY
           
static String ENCRYPTION_TYPE_PROPERTY
           
static String IMPLEMENTATION_CLASS_PROPERTY
           
static String NAME_PROPERTY
           
static String TYPE_PROPERTY
           
 
Constructor Summary
DirectoryPropertiesMapper()
           
 
Method Summary
protected  boolean canImportDirectory(Long id)
          Determines if a directory can be created using this mapper.
 Properties exportProperties(Iterable<Directory> allDirectories)
           
 Map<String,String> getDirectoryAttributes(Properties properties, Long id)
           
 List<Directory> importAllDirectories(Properties properties, Date timestamp)
           
 Directory importDirectory(Properties properties, Long id, Date timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPLEMENTATION_CLASS_PROPERTY

public static final String IMPLEMENTATION_CLASS_PROPERTY
See Also:
Constant Field Values

DESCRIPTION_PROPERTY

public static final String DESCRIPTION_PROPERTY
See Also:
Constant Field Values

ENCRYPTION_TYPE_PROPERTY

public static final String ENCRYPTION_TYPE_PROPERTY
See Also:
Constant Field Values

ACTIVE_PROPERTY

public static final String ACTIVE_PROPERTY
See Also:
Constant Field Values

NAME_PROPERTY

public static final String NAME_PROPERTY
See Also:
Constant Field Values

ATTRIBUTES_PROPERTY

public static final String ATTRIBUTES_PROPERTY
See Also:
Constant Field Values

TYPE_PROPERTY

public static final String TYPE_PROPERTY
See Also:
Constant Field Values

ALLOWED_OPERATIONS_PROPERTY

public static final String ALLOWED_OPERATIONS_PROPERTY
See Also:
Constant Field Values
Constructor Detail

DirectoryPropertiesMapper

public DirectoryPropertiesMapper()
Method Detail

importDirectory

public Directory importDirectory(Properties properties,
                                 Long id,
                                 Date timestamp)
                          throws DirectoryNotFoundException
Throws:
DirectoryNotFoundException

canImportDirectory

protected boolean canImportDirectory(Long id)
Determines if a directory can be created using this mapper. Subclasses can override this method to implement their own policies.

Parameters:
id - directory id
Returns:
true if the directory can be created

getDirectoryAttributes

public Map<String,String> getDirectoryAttributes(Properties properties,
                                                 Long id)

importAllDirectories

public List<Directory> importAllDirectories(Properties properties,
                                            Date timestamp)

exportProperties

public Properties exportProperties(Iterable<Directory> allDirectories)


Copyright © 2013 Atlassian. All Rights Reserved.