org.apache.lenya.ac
Class UserType

java.lang.Object
  extended by org.apache.lenya.ac.UserType

public class UserType
extends java.lang.Object

A user type to be supported by the UserManager Note: the types are configured through access control (ac.xconf)

Version:
$Id:$

Constructor Summary
UserType()
          Ctor.
UserType(java.lang.String key, java.lang.String className, java.lang.String createUseCase)
          Ctor.
 
Method Summary
 java.lang.String getClassName()
          Get the name of the class responsible for implementing this type of user.
 java.lang.String getCreateUseCase()
          Get the createUseCase name to be used when a user of this type is to be created.
 java.lang.String getKey()
          Get the key to be used for this type.
 void setClassName(java.lang.String className)
          Set the name of the class responsible for implementing this type of user.
 void setCreateUseCase(java.lang.String createUseCase)
          Set the createUseCase name to be used when a user of this type is to be created.
 void setKey(java.lang.String key)
          Set the key to be used for this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserType

public UserType()
Ctor.


UserType

public UserType(java.lang.String key,
                java.lang.String className,
                java.lang.String createUseCase)
Ctor.

Parameters:
key - The key.
className - The class name.
createUseCase - The create usecase.
Method Detail

getKey

public java.lang.String getKey()
Get the key to be used for this type. This key can be used for a dictionary entry for the user interface.

Returns:
a String

setKey

public void setKey(java.lang.String key)
Set the key to be used for this type. This key can be used for a dictionary entry for the user interface.

Parameters:
key - the new key

getClassName

public java.lang.String getClassName()
Get the name of the class responsible for implementing this type of user. Note that in current version, this field is for information only; in later versions, it might be used for introspection and dynamic script creation.

Returns:
a String the name of the class
See Also:
FileUser, LDAPUser

setClassName

public void setClassName(java.lang.String className)
Set the name of the class responsible for implementing this type of user. Note that in current version, this field is for information only; in later versions, it might be used for introspection and dynamic flowscript creation.

Parameters:
className - the new className

getCreateUseCase

public java.lang.String getCreateUseCase()
Get the createUseCase name to be used when a user of this type is to be created. This name will be used in the flowscript (currently: user-admin.js), in order to distinguish between different types.

Returns:
a String the name of the use case in the flowscript

setCreateUseCase

public void setCreateUseCase(java.lang.String createUseCase)
Set the createUseCase name to be used when a user of this type is to be created. This name will be used in the flowscript (currently: user-admin.js), in order to distinguish between different types.

Parameters:
createUseCase - the new createUseCase


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.