@Repository public class AccountGroupMappingJdbcRepository extends AbstractJdbcRepository implements AccountGroupMappingRepository
Constructor and Description |
---|
AccountGroupMappingJdbcRepository(javax.sql.DataSource dataSource,
AccountGroupRepository accountGroupRepository) |
Modifier and Type | Method and Description |
---|---|
Ack |
deleteMapping(ID id)
Deletes a mapping
|
java.util.Collection<AccountGroup> |
getGroups(java.lang.String mapping,
java.lang.String mappedName)
For the given
mapping type, collects the AccountGroup which are associated
with the mappedName name. |
AccountGroupMapping |
getMapping(ID id)
Gets a mapping by its ID
|
java.util.List<AccountGroupMapping> |
getMappings(java.lang.String mapping)
For the given
mapping type, collects the mappings. |
java.util.List<AccountGroupMapping> |
getMappingsForGroup(AccountGroup group)
Gets the list of mappings for a given group.
|
AccountGroupMapping |
newMapping(java.lang.String mapping,
AccountGroupMappingInput input)
Creates a new mapping
|
protected AccountGroupMapping |
toAccountGroupMapping(java.sql.ResultSet rs,
int rowNum) |
AccountGroupMapping |
updateMapping(ID id,
AccountGroupMappingInput input)
Updates a mapping
|
dateTimeForDB, dateTimeFromDB, dbCreate, getEnum, getFirstItem, getFirstItem, getOptional, getOptional, id, id, id, noParams, optionalInt, params, readJson, readJson, readJson, readSignature, readSignature, toDocument, writeJson
getNamedParameterJdbcTemplate, initTemplateConfig
@Autowired public AccountGroupMappingJdbcRepository(javax.sql.DataSource dataSource, AccountGroupRepository accountGroupRepository)
public java.util.Collection<AccountGroup> getGroups(java.lang.String mapping, java.lang.String mappedName)
AccountGroupMappingRepository
mapping
type, collects the AccountGroup
which are associated
with the mappedName
name.getGroups
in interface AccountGroupMappingRepository
mapping
- Mapping type, for example: "ldap"mappedName
- Mapping name, for example: "Administrator"public java.util.List<AccountGroupMapping> getMappings(java.lang.String mapping)
AccountGroupMappingRepository
mapping
type, collects the mappings.getMappings
in interface AccountGroupMappingRepository
mapping
- Mapping type, for example: "ldap"public AccountGroupMapping newMapping(java.lang.String mapping, AccountGroupMappingInput input)
AccountGroupMappingRepository
newMapping
in interface AccountGroupMappingRepository
mapping
- Mapping type, for example: "ldap"input
- Input data for the mappingpublic AccountGroupMapping getMapping(ID id)
AccountGroupMappingRepository
getMapping
in interface AccountGroupMappingRepository
id
- ID of the mappingpublic AccountGroupMapping updateMapping(ID id, AccountGroupMappingInput input)
AccountGroupMappingRepository
updateMapping
in interface AccountGroupMappingRepository
id
- ID of the mappinginput
- Input data for the mappingpublic Ack deleteMapping(ID id)
AccountGroupMappingRepository
deleteMapping
in interface AccountGroupMappingRepository
id
- ID of the mappingpublic java.util.List<AccountGroupMapping> getMappingsForGroup(AccountGroup group)
AccountGroupMappingRepository
getMappingsForGroup
in interface AccountGroupMappingRepository
group
- Group to get the mappings toprotected AccountGroupMapping toAccountGroupMapping(java.sql.ResultSet rs, int rowNum) throws java.sql.SQLException
java.sql.SQLException