|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.terasoluna.fw.web.UserValueObject
public abstract class UserValueObject
Abstract class for logon user information
This is the base class representing the object that holds user information of the logged in user.
To generate the inherited class, set the name of inherited class in the ApplicationResources by using
user.value.object
as a key and execute createUserValueObject()
method.
ApplicationResources.properties
SampleUVO
public class SampleUVO extends UserValueObject {
// Implement as and when required
public String[] getFieldNames() {
return new String[]{"companyId", "userId", "address", ...};
}
// Company ID
String companyId = null;
// User ID
String userId = null;
// Address
String address = null;
...
// getter and setter of fields
...
}
public ResultBean execute(LogonBean params) {
...
// Generate UVO
SampleUVO uvo = (SampleUVO) UserValueObject.createUserValueObject();
...
// Set user information in UVO
uvo.setCompanyId(companyId);
uvo.setUserId(userId);
uvo.setAddress(address);
...
}
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
Log class |
static java.lang.String |
USER_VALUE_OBJECT_KEY
Key which is used to fetch the class inherited from UserValueObject from the HTTP session.
|
static java.lang.String |
USER_VALUE_OBJECT_PROP_KEY
Key that specifies the class inerited from UserValueObject in
ApplicationResources file. |
private static java.lang.String |
UVO_CLASS_ERROR
Error code indicating the failure in creating the instance of the class inherited from UserValueObject . |
Constructor Summary | |
---|---|
UserValueObject()
|
Method Summary | |
---|---|
static UserValueObject |
createUserValueObject()
Generates user information object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static org.apache.commons.logging.Log log
public static final java.lang.String USER_VALUE_OBJECT_PROP_KEY
UserValueObject
in ApplicationResources
file.
private static final java.lang.String UVO_CLASS_ERROR
UserValueObject
.
public static final java.lang.String USER_VALUE_OBJECT_KEY
UserValueObject
from the HTTP session.
Constructor Detail |
---|
public UserValueObject()
Method Detail |
---|
public static UserValueObject createUserValueObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |