examples.usermgmt
Class UnifiedUserBean
java.lang.Object
|
+--com.beasys.commerce.foundation.EntityImpl
|
+--com.beasys.commerce.foundation.ConfigurableEntityImpl
|
+--com.beasys.commerce.axiom.contact.UserImpl
|
+--examples.usermgmt.UnifiedUserBean
- public class UnifiedUserBean
- extends UserImpl
Represents an existing user, to be unified with the
WLCS profile.
- See Also:
- Serialized Form
Method Summary |
void |
ejbFind(java.lang.String username)
Returns the primary key for the current user |
UnifiedUserPk |
ejbFindByPrimaryKey(UnifiedUserPk pk)
Returns the primary key for the User user |
void |
ejbLoad()
Instructs the instance to synchronize its state by loading it
from the underlying datastore. |
void |
ejbStore()
Instructs the instance to synchronize its state by storing it
to the underlying database. |
java.lang.Long |
getUserPoints()
Gets the amount of 'User Points' the user has earned. |
void |
setUserPoints(java.lang.Long points)
Sets amount of 'User Points' the user has earned. |
Methods inherited from class com.beasys.commerce.foundation.ConfigurableEntityImpl |
addBusinessPolicy,
addCachedPropertyMapped,
addCachedPropertyValue,
addPropertyValue,
addPropertyValueMapped,
buildPolicyKey,
createMapKey,
ejbCreate,
ejbPostCreate,
getBusinessPolicy,
getCachedProperty,
getPersistableHandle,
getProperty,
getProperty,
getPropertyAsString,
getPropertyAsString,
getPropertyDefault,
getPropertyMap,
getPropertyNoDefault,
getSuccessor,
getUniqueId,
removeBusinessPolicy,
removeCachedProperties,
removeCachedProperties,
removeCachedProperty,
removeCachedPropertyMapped,
removeCachedPropertyValue,
removeProperty,
removeProperty,
removePropertyValue,
removePropertyValueMapped,
removeSuccessor,
setCachedProperty,
setProperty,
setProperty,
setSuccessor,
upcaseFirst |
Methods inherited from class com.beasys.commerce.foundation.EntityImpl |
clearRelationalBinding,
clearRelationalBinding,
clearRelationalBinding,
clearRelationalBinding,
ejbFindAll,
ejbFindByPrimaryKey,
get__classIdentifier,
get__containingBelonging,
get__containingEntity,
get__containingEntityReference,
get__mapKey,
get__sequenceNumber,
getEntityContext,
isModified,
set__containingBelonging,
set__containingEntity,
set__containingEntityReference,
set__mapKey |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
UnifiedUserBean
public UnifiedUserBean()
throws javax.ejb.CreateException
- Default constructor.
ejbFindByPrimaryKey
public UnifiedUserPk ejbFindByPrimaryKey(UnifiedUserPk pk)
throws javax.ejb.FinderException
- Returns the primary key for the User user
- Parameters:
pk
- UserPK- Returns:
- com.beasys.commerce.axiom.contact.ejb.UnifiedUserPK
- Throws:
- javax.ejb.FinderException -
ejbFind
public void ejbFind(java.lang.String username)
throws javax.ejb.FinderException
- Returns the primary key for the current user
- Parameters:
username
- - Throws:
- javax.ejb.FinderException -
ejbLoad
public void ejbLoad()
throws java.rmi.RemoteException
- Instructs the instance to synchronize its state by loading it
from the underlying datastore.
- Overrides:
- ejbLoad in class UserImpl
- Throws:
- java.rmi.RemoteException -
ejbStore
public void ejbStore()
throws java.rmi.RemoteException
- Instructs the instance to synchronize its state by storing it
to the underlying database. Note that the attributes are not
stored at this point, as they are stored when they are set.
- Overrides:
- ejbStore in class UserImpl
- Throws:
- java.rmi.RemoteException -
getUserPoints
public java.lang.Long getUserPoints()
throws java.rmi.RemoteException,
UserManagementException
- Gets the amount of 'User Points' the user has earned. When
the user earns 2 billion User Points, the user
earns a free weekend getaway to Jackson, Mississippi.
- Returns:
- the number of User Points earned by the user
- Throws:
- java.rmi.RemoteException - bean contract exception
- UserManagementException - error retrieving User Points
setUserPoints
public void setUserPoints(java.lang.Long points)
throws java.rmi.RemoteException,
UserManagementException
- Sets amount of 'User Points' the user has earned. When
the user earns 2 billion User Points, the user
earns a free weekend getaway to Jackson, Mississippi.
- Parameters:
points
- the number of User Points earned by the user- Throws:
- java.rmi.RemoteException - bean contract exception
- UserManagementException - error updating User Points
Copyright © 2000 BEA Systems, Inc. All Rights Reserved