Interface DaoInterface
-
- All Known Implementing Classes:
JdbcSimpleUserDao
public interface DaoInterfaceClasses that implement this interface are expected to conatin code that accesses a datastore, such as JBDC code to access a database, and create, read, update, delete, and search users and user related attributes. No matter what technology is used to access the datastore or what format or type the data may be, it should be converted to Strings before being returned to the opensso layer and calling code, as indicated in the method interfaces. An IdRepo.java implementatiuon class like JDBCSimpleUserDao.java is an example of the expected client that would be calling these methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMembersToGroup(Set<String> members, String groupName, String membershipIdAttributeName)voidcreateGroup(String groupName, String membershipIdAttributeName)StringcreateUser(String userIDAttributeName, Map<String,Set<String>> attrMap)voiddeleteGroup(String groupName, String membershipIdAttributeName)voiddeleteMembersFromGroup(Set<String> members, String groupName, String membershipIdAttributeName)voiddeleteUser(String userID, String userIDAttributeName)Map<String,Set<String>>getAttributes(String userID, String userIDAttributeName, Set<String> attributesToFetch)StringgetDataSourceURL()get the url of the current database.Map<String,Set<String>>getGroupAttributes(String groupName, String membershipIdAttributeName, Set<String> attributesToFetch)Set<String>getMembers(String groupName, String membershipIdAttributeName)Set<String>getMemberships(String userName, String membershipIdAttributeName)voidinitialize(String jndiName, String userDataBaseTableName, String membershipDataBaseTableName, Debug idRepoDebugLog)voidinitialize(String jdbcDriver, String jdbcDriverUrl, String jdbcDbUser, String jdbcDbPassword, String userDataBaseTableName, String membershipDataBaseTableName, Debug idRepoDebugLog)Map<String,Map<String,Set<String>>>search(String userIDAttributeName, int limit, String idPattern, Set<String> attributesToFetch, String filterOperand, Map<String,Set<String>> avPairs)Map<String,Map<String,Set<String>>>search(String userIDAttributeName, int limit, org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter, Set<String> attributesToFetch, String filterOperand, Map<String,Set<String>> avPairs)Map<String,Map<String,Set<String>>>searchForGroups(String membershipIdAttributeName, int limit, String idPattern, Set<String> attributesToFetch, String filterOperand, Map<String,Set<String>> avPairs)Map<String,Map<String,Set<String>>>searchForGroups(String membershipIdAttributeName, int limit, org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter, Set<String> attributesToFetch, String filterOperand, Map<String,Set<String>> avPairs)voidupdateUser(String userID, String userIDAttributeName, Map<String,Set<String>> attrMap)
-
-
-
Method Detail
-
initialize
void initialize(String jndiName, String userDataBaseTableName, String membershipDataBaseTableName, Debug idRepoDebugLog) throws InstantiationException
- Throws:
InstantiationException
-
initialize
void initialize(String jdbcDriver, String jdbcDriverUrl, String jdbcDbUser, String jdbcDbPassword, String userDataBaseTableName, String membershipDataBaseTableName, Debug idRepoDebugLog) throws InstantiationException
- Throws:
InstantiationException
-
updateUser
void updateUser(String userID, String userIDAttributeName, Map<String,Set<String>> attrMap)
-
getAttributes
Map<String,Set<String>> getAttributes(String userID, String userIDAttributeName, Set<String> attributesToFetch)
-
search
Map<String,Map<String,Set<String>>> search(String userIDAttributeName, int limit, String idPattern, Set<String> attributesToFetch, String filterOperand, Map<String,Set<String>> avPairs)
-
search
Map<String,Map<String,Set<String>>> search(String userIDAttributeName, int limit, org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter, Set<String> attributesToFetch, String filterOperand, Map<String,Set<String>> avPairs) throws IdRepoUnsupportedOpException
- Throws:
IdRepoUnsupportedOpException
-
getDataSourceURL
String getDataSourceURL()
get the url of the current database.- Returns:
- a url of the current db connection, should be of the form jdbc:mysql://localhost:3306/seantestdb1 It is used by the IdRepo implementation to provide a fully qualified domain name for users, and this value serves as sort of the prefix.
-
deleteMembersFromGroup
void deleteMembersFromGroup(Set<String> members, String groupName, String membershipIdAttributeName)
-
addMembersToGroup
void addMembersToGroup(Set<String> members, String groupName, String membershipIdAttributeName)
-
searchForGroups
Map<String,Map<String,Set<String>>> searchForGroups(String membershipIdAttributeName, int limit, String idPattern, Set<String> attributesToFetch, String filterOperand, Map<String,Set<String>> avPairs)
-
searchForGroups
Map<String,Map<String,Set<String>>> searchForGroups(String membershipIdAttributeName, int limit, org.forgerock.util.query.QueryFilter<org.forgerock.json.JsonPointer> queryFilter, Set<String> attributesToFetch, String filterOperand, Map<String,Set<String>> avPairs)
-
-