org.wso2.registry.users.def.util
Class DefaultDatabaseUtil
java.lang.Object
org.wso2.registry.users.def.util.DefaultDatabaseUtil
public class DefaultDatabaseUtil
- extends java.lang.Object
Method Summary |
static void |
createDatabase(java.sql.Connection conn)
|
static int |
getRoleId(java.sql.Connection dbConnection,
java.lang.String roleName)
|
static int |
getUserId(java.sql.Connection dbConnection,
java.lang.String userName)
|
static java.lang.String[] |
getUserRoles(java.sql.Connection dbConnection,
java.lang.String userName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userTable
public static java.lang.String userTable
userAttributeTable
public static java.lang.String userAttributeTable
roleTable
public static java.lang.String roleTable
roleAttributeTable
public static java.lang.String roleAttributeTable
permissionTable
public static java.lang.String permissionTable
rolePermissionTable
public static java.lang.String rolePermissionTable
userPermissionTable
public static java.lang.String userPermissionTable
userRolesTable
public static java.lang.String userRolesTable
DefaultDatabaseUtil
public DefaultDatabaseUtil()
createDatabase
public static void createDatabase(java.sql.Connection conn)
throws java.sql.SQLException,
UserStoreException
- Throws:
java.sql.SQLException
UserStoreException
getRoleId
public static int getRoleId(java.sql.Connection dbConnection,
java.lang.String roleName)
throws UserStoreException
- Throws:
UserStoreException
getUserId
public static int getUserId(java.sql.Connection dbConnection,
java.lang.String userName)
throws UserStoreException
- Throws:
UserStoreException
getUserRoles
public static java.lang.String[] getUserRoles(java.sql.Connection dbConnection,
java.lang.String userName)
throws UserStoreException
- Throws:
UserStoreException
Copyright © 2007 Apache Web Services Project. All Rights Reserved.