se.kmr.scam.server.auth
Class UsersRolesLoginModuleHandler

java.lang.Object
  extended byse.kmr.scam.server.auth.UsersRolesLoginModuleHandler

public class UsersRolesLoginModuleHandler
extends Object

Author:
jand

Constructor Summary
UsersRolesLoginModuleHandler()
          Creates a new instance of UsersRolesLoginModuleHandler
 
Method Summary
 Model getUser(String name)
          Retrieve a user
 void insertUser(Model model)
          Insert/update user.
 Collection listUsers()
          List all users
static void main(String[] args)
           
 void removeUser(String name)
          Remove user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsersRolesLoginModuleHandler

public UsersRolesLoginModuleHandler()
                             throws IOException
Creates a new instance of UsersRolesLoginModuleHandler

Method Detail

listUsers

public Collection listUsers()
                     throws IOException
List all users

Returns:
Collection of String
Throws:
IOException

getUser

public Model getUser(String name)
              throws IOException
Retrieve a user

Parameters:
name - Username
Returns:
Model
Throws:
IOException

insertUser

public void insertUser(Model model)
                throws IOException
Insert/update user. Existing user will be replaced.

Parameters:
model - Model
Throws:
IOException

removeUser

public void removeUser(String name)
                throws IOException
Remove user

Parameters:
name - Username
Throws:
IOException

main

public static void main(String[] args)


Copyright © 2003 SCAM. All Rights Reserved.