|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Importer
Classes that extend this interface will manage the import of users, groups and their memberships from a given application (or file) into Crowd
Method Summary | |
---|---|
java.util.Collection<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.Collection<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. |
Result |
importUsersGroupsAndRoles(Configuration configuration)
Responsible for the import of both users and groups into Crowd using the given Configuration |
void |
init(Configuration configuration)
Initialise anything required for the import process. |
Method Detail |
---|
Result importUsersGroupsAndRoles(Configuration configuration) throws ImporterException
Configuration
configuration
- the Configuration, this could be a JDBC configuration or a CSVConfiguration
ImporterException
- general exception if anything happened during the importjava.util.Collection<GroupMembership> findGroupMemberships(Configuration configuration) throws ImporterException
configuration
- the Importer Configuration
ImporterException
- if there is an error finding group membershipsjava.util.Collection<RoleMembership> findRoleMemberships(Configuration configuration) throws ImporterException
configuration
- the Importer Configuration
ImporterException
- if there is an error finding role membershipsjava.util.Collection<RemoteGroup> findGroups(Configuration configuration) throws ImporterException
configuration
- the Importer Configuration
ImporterException
- if there is an error finding the RemoteGroupsjava.util.Collection<RemoteRole> findRoles(Configuration configuration) throws ImporterException
configuration
- the Importer Configuration
ImporterException
- if there is an error finding the RemoteRolesjava.util.Collection<RemotePrincipal> findUsers(Configuration configuration) throws ImporterException
configuration
- the Importer Configuration
ImporterException
- if there is an error finding the RemotePrincipalvoid init(Configuration configuration)
configuration
- can contain any setup params such as database settings that need init'ingjava.lang.Class getConfigurationType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |