| Modifier and Type | Class and Description |
|---|---|
private static class |
JDBCStorage.AttributeReleaseMapper
AttributeRelease row mapper. |
private static class |
JDBCStorage.UserMapper
User row mapper. |
| Modifier and Type | Field and Description |
|---|---|
private JDBCStorage.AttributeReleaseMapper |
attributeReleaseMapper
The attribute release mapper.
|
private String |
attributeReleaseTable
The name of the attribute release table.
|
private SimpleJdbcTemplate |
jdbcTemplate
The JDBC template.
|
private JDBCStorage.UserMapper |
userMapper
The user mapper.
|
private String |
userTable
The name of the user table.
|
| Constructor and Description |
|---|
JDBCStorage() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAttributeRelease(String userId,
String relyingPartyId,
String attributeId)
Checks if the storage contains a attribute release for a specific user, relying party and attribute.
|
boolean |
containsUser(String userId)
Checks if the storage contains a user.
|
void |
createAttributeRelease(String userId,
String relyingPartyId,
AttributeRelease attributeRelease)
Creates an attribute releases for a specific user and relying party.
|
void |
createUser(User user)
Creates a user.
|
void |
deleteAttributeReleases(String userId,
String relyingPartyId)
Deletes the attribute releases from the storage for a specific user and relying party.
|
Collection<AttributeRelease> |
readAttributeReleases(String userId,
String relyingPartyId)
Reads the attribute releases from the storage for a specific user and relying party.
|
User |
readUser(String userId)
Reads a user from the storage.
|
void |
setDataSource(DataSource dataSource)
Sets the data source.
|
void |
updateAttributeRelease(String userId,
String relyingPartyId,
AttributeRelease attributeRelease)
Updates the attribute releases for a specific user and relying party.
|
void |
updateUser(User user)
Updates a user.
|
private SimpleJdbcTemplate jdbcTemplate
private final JDBCStorage.UserMapper userMapper
private final JDBCStorage.AttributeReleaseMapper attributeReleaseMapper
private final String userTable
private final String attributeReleaseTable
public void setDataSource(DataSource dataSource)
dataSource - The datasource.public boolean containsUser(String userId)
containsUser in interface StorageuserId - The user id.public void updateUser(User user)
updateUser in interface Storageuser - The user.public void createUser(User user)
createUser in interface Storageuser - The user.public Collection<AttributeRelease> readAttributeReleases(String userId, String relyingPartyId)
readAttributeReleases in interface StorageuserId - The user id.relyingPartyId - The relying party id.public void deleteAttributeReleases(String userId, String relyingPartyId)
deleteAttributeReleases in interface StorageuserId - The user id.relyingPartyId - The relying party id.public boolean containsAttributeRelease(String userId, String relyingPartyId, String attributeId)
containsAttributeRelease in interface StorageuserId - The user id.relyingPartyId - The relying party id.attributeId - attribute id.public void updateAttributeRelease(String userId, String relyingPartyId, AttributeRelease attributeRelease)
updateAttributeRelease in interface StorageuserId - The user id.relyingPartyId - The relying party id.attributeRelease - The attribute release.public void createAttributeRelease(String userId, String relyingPartyId, AttributeRelease attributeRelease)
createAttributeRelease in interface StorageuserId - The user id.relyingPartyId - The relying party id.attributeRelease - The attribute release.Copyright © 1999–2014. All rights reserved.