za.org.coefficient.modules.user
Class UserAdmin
java.lang.Object
za.org.coefficient.modules.BaseModule
za.org.coefficient.modules.user.UserAdmin
- All Implemented Interfaces:
- CoefficientEventPublisher, ModuleLocal
public class UserAdmin
- extends BaseModule
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIRMED_USER
public static final java.lang.String CONFIRMED_USER
- See Also:
- Constant Field Values
USER_PAGER
private static final java.lang.String USER_PAGER
- See Also:
- Constant Field Values
MESSAGE_1
private static final java.lang.String MESSAGE_1
MESSAGE_2
private static final java.lang.String MESSAGE_2
- See Also:
- Constant Field Values
SUBJECT
private static final java.lang.String SUBJECT
UserAdmin
public UserAdmin()
getAllUsers
public java.util.List getAllUsers()
getMainMethod
public java.lang.String getMainMethod()
- Description copied from interface:
ModuleLocal
- This method is used to determine which method should be invoked when
the module is requested without an operation.
- Specified by:
getMainMethod
in interface ModuleLocal
- Specified by:
getMainMethod
in class BaseModule
- Returns:
- name of the method that should be invoked
getModuleDescription
public java.lang.String getModuleDescription()
- Description copied from interface:
ModuleLocal
- This method is used to find the description of the module
- Specified by:
getModuleDescription
in interface ModuleLocal
- Specified by:
getModuleDescription
in class BaseModule
- Returns:
- the description of the module
getModuleDisplayName
public java.lang.String getModuleDisplayName()
- Description copied from interface:
ModuleLocal
- This method is used to find the display name of the module
- Specified by:
getModuleDisplayName
in interface ModuleLocal
- Specified by:
getModuleDisplayName
in class BaseModule
- Returns:
- the display name of the module
getUsersWithSystemRole
public java.util.List getUsersWithSystemRole(Role role)
canExecuteForRole
public java.lang.String canExecuteForRole(CoefficientContext ctx,
java.lang.String methodName,
Role usersHighestRole)
- Description copied from class:
BaseModule
- This is a base implementation that will allow all methods to be
invoked without regard to roles
- Specified by:
canExecuteForRole
in interface ModuleLocal
- Overrides:
canExecuteForRole
in class BaseModule
- Returns:
- null if we can execute the method an error message if not
changePassword
public CoefficientContext changePassword(CoefficientContext ctx)
changeUserRole
public CoefficientContext changeUserRole(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
confirmUser
public CoefficientContext confirmUser(CoefficientContext ctx)
editUsers
public CoefficientContext editUsers(CoefficientContext ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
enterUserInfo
public CoefficientContext enterUserInfo(CoefficientContext ctx)
findWorkflowUser
public CoefficientUser findWorkflowUser()
throws java.lang.Exception
- Throws:
java.lang.Exception
findUserForName
public CoefficientUser findUserForName(java.lang.String userName)
throws java.lang.Exception
- Throws:
java.lang.Exception
removeUser
public CoefficientContext removeUser(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
savePassword
public CoefficientContext savePassword(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
saveUser
public CoefficientContext saveUser(CoefficientContext ctx)
throws net.sf.hibernate.HibernateException
- Throws:
net.sf.hibernate.HibernateException
viewUserInfo
public CoefficientContext viewUserInfo(CoefficientContext ctx)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright CSIR. All Rights Reserved.