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 the access control configuration

Version:
$Id: UserType.java 473861 2006-11-12 03:51:14Z gregor $

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:
org.apache.lenya.ac.file.FileUser, org.apache.lenya.ac.ldap.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-2006 Apache Software Foundation. All Rights Reserved.