|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.importer.importers.BaseImporter com.atlassian.crowd.importer.importers.JdbcImporter
public abstract class JdbcImporter
General JDBC class that handles the fetching of users, groups and memberships. Subclasses of this class implement Mappers and SQL to retrieve users, groups and memberships
Field Summary | |
---|---|
protected org.springframework.jdbc.core.JdbcOperations |
jdbcTemplate
|
protected PasswordGenerator |
passwordGenerator
|
Fields inherited from class com.atlassian.crowd.importer.importers.BaseImporter |
---|
directoryManager, logger |
Constructor Summary | |
---|---|
JdbcImporter(DirectoryManager directoryManager,
PasswordGenerator passwordGenerator)
|
Method Summary | |
---|---|
java.util.List<GroupMembership> |
findGroupMemberships(Configuration configuration)
Will locate and build a collection of GroupMembership objects based on the passed in Configuration |
java.util.Collection<RemoteGroup> |
findGroups(Configuration configuration)
Will locate and build a collection of RemoteGroup objects based on the passed in Configuration |
java.util.Collection<RoleMembership> |
findRoleMemberships(Configuration configuration)
Will locate and build a collection of RoleMembership objects based on the passed in Configuration |
java.util.Collection<RemoteRole> |
findRoles(Configuration configuration)
Will locate and build a collection of RemoteRole objects based on the passed in Configuration |
java.util.List<RemotePrincipal> |
findUsers(Configuration configuration)
Will locate and build a collection of RemotePrincipal objects based on the passed in Configuration |
java.lang.Class |
getConfigurationType()
The type of configuration being used for this Import. |
abstract org.springframework.jdbc.core.RowMapper |
getGroupMapper()
|
abstract org.springframework.jdbc.core.RowMapper |
getMembershipMapper()
|
abstract java.lang.String |
getSelectAllGroupsSQL()
|
abstract java.lang.String |
getSelectAllUserGroupMembershipsSQL()
|
abstract java.lang.String |
getSelectAllUsersSQL()
|
abstract org.springframework.jdbc.core.RowMapper |
getUserMapper(java.lang.Boolean setPassword,
PasswordGenerator passwordGenerator)
|
void |
init(Configuration configuration)
Initialise anything required for the import process. |
void |
setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
|
Methods inherited from class com.atlassian.crowd.importer.importers.BaseImporter |
---|
importPrincipalGroupMemberships, importPrincipalRoleMemberships, importRemoteGroups, importRemotePrincipals, importRemoteRoles, importUsersGroupsAndRoles |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.crowd.importer.importers.Importer |
---|
importUsersGroupsAndRoles |
Field Detail |
---|
protected org.springframework.jdbc.core.JdbcOperations jdbcTemplate
protected PasswordGenerator passwordGenerator
Constructor Detail |
---|
public JdbcImporter(DirectoryManager directoryManager, PasswordGenerator passwordGenerator)
Method Detail |
---|
public abstract java.lang.String getSelectAllUserGroupMembershipsSQL()
public abstract org.springframework.jdbc.core.RowMapper getMembershipMapper()
public abstract java.lang.String getSelectAllGroupsSQL()
public abstract org.springframework.jdbc.core.RowMapper getGroupMapper()
public abstract java.lang.String getSelectAllUsersSQL()
public abstract org.springframework.jdbc.core.RowMapper getUserMapper(java.lang.Boolean setPassword, PasswordGenerator passwordGenerator)
public java.util.Collection<RemoteGroup> findGroups(Configuration configuration)
Importer
findGroups
in interface Importer
configuration
- the configuration that contains the directory to import the groups too
public java.util.List<GroupMembership> findGroupMemberships(Configuration configuration)
Importer
findGroupMemberships
in interface Importer
configuration
- the Importer Configuration
public java.util.List<RemotePrincipal> findUsers(Configuration configuration)
Importer
findUsers
in interface Importer
configuration
- the Importer Configuration
public java.util.Collection<RoleMembership> findRoleMemberships(Configuration configuration) throws ImporterException
Importer
findRoleMemberships
in interface Importer
configuration
- the Importer Configuration
ImporterException
- if there is an error finding role membershipspublic java.util.Collection<RemoteRole> findRoles(Configuration configuration) throws ImporterException
Importer
findRoles
in interface Importer
configuration
- the Importer Configuration
ImporterException
- if there is an error finding the RemoteRolespublic java.lang.Class getConfigurationType()
Importer
getConfigurationType
in interface Importer
public void init(Configuration configuration)
Importer
init
in interface Importer
configuration
- can contain any setup params such as database settings that need init'ingpublic void setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |