org.caleigo.core
Class UserProxyData

java.lang.Object
  extended byorg.caleigo.core.UserProxyData
All Implemented Interfaces:
IProxyData, java.io.Serializable

public class UserProxyData
extends java.lang.Object
implements IProxyData

Author:
Klas Ehnrot Dynamically adds the user properties to
See Also:
Serialized Form

Constructor Summary
UserProxyData(java.lang.String propertyName)
           
 
Method Summary
static java.lang.Object convertToStringObject(java.lang.Object data)
          Used to convert an object to a Date Object, either the java.util.Date object or a DateProxyData object.
 java.lang.Object getData()
          Implementation of the IProxy interface getData Goes through UserInfo and lookups the propertyName
 DataType getDataType()
          Implementation of the IProxy Interface getDataType
static UserProxyData parse(java.lang.String value)
          Parses the incoming value and converts it into a UserProxyData.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProxyData

public UserProxyData(java.lang.String propertyName)
Method Detail

parse

public static UserProxyData parse(java.lang.String value)
Parses the incoming value and converts it into a UserProxyData. Expecting a string formatted as : #USER.propertyName where #USER. is the static directive and propertyName is the name of the property to lookup in UserConfig.

Parameters:
value - the data
Returns:
UserProxyData

convertToStringObject

public static java.lang.Object convertToStringObject(java.lang.Object data)
Used to convert an object to a Date Object, either the java.util.Date object or a DateProxyData object.

Parameters:
data - The data representing a Date
Returns:
Object The created data object

getData

public java.lang.Object getData()
Implementation of the IProxy interface getData Goes through UserInfo and lookups the propertyName

Specified by:
getData in interface IProxyData
See Also:
IProxyData.getData()

getDataType

public DataType getDataType()
Implementation of the IProxy Interface getDataType

Specified by:
getDataType in interface IProxyData
Returns:
Returns a DataType.STRING
See Also:
IProxyData.getDataType()


Copyright © 2005 Caleigo. All Rights Reserved.