public class MemberDataBean
extends com.ibm.commerce.beans.SmartDataBeanImpl
<% try{ String memberid = fStoreMemberId; // figure out who your member id is!!! MemberDataBean mdb = new MemberDataBean(); mdb.setId(memberid); DataBeanManager.activate(mdb, request); %> <script> myJSobject = new Member('<%= mdb.getMemberType() %>', '<%= mdb.getMemberDN() %>', '<%= mdb.getMemberGroupName() %>', '<%= mdb.getMemberGroupOwnerMemberType() %>', '<%= mdb.getMemberGroupOwnerMemberDN() %>')); </script> <% } catch(Exception e) { } %>When retrieving the data for a Member, the data bean will be called. The member identifier is prerequisite parameter that need to be set before populate. The data bean maps to a database table MEMBER
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CUSTOMER_PRICE_MEMBER_GROUP
Constant for the Customer Member Group
|
static java.lang.String |
PRICE_OVERRIDE_MEMBER_GROUP
Constant for the PRICE_OVERRIDE Member Group
|
static java.lang.String |
USER_MEMBER_GROUP
Constant for the User Member Group
|
Constructor and Description |
---|
MemberDataBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Gets the member identifier
|
java.lang.String |
getMemberDN()
Gets the member distinguished name
|
java.lang.String |
getMemberGroupName()
Gets the member group name
|
java.lang.String |
getMemberGroupOwnerMemberDN()
Gets the distinguished name of the owner of the member group
|
java.lang.String |
getMemberGroupOwnerMemberId()
Gets the reference number of the owner of the member group
|
java.lang.String |
getMemberGroupOwnerMemberType()
Gets the type of the owner of the member group
|
java.util.Vector |
getMemberGroups()
Gets the list of member groups
|
java.util.Vector |
getMemberGroups(java.util.Vector v)
Gets the list of member groups
|
java.lang.String |
getMemberType()
Gets the type of the member
|
void |
populate()
This method is used to retrieve the data for the Member.
|
void |
setId(java.lang.String memberId)
Sets the member identifier
|
void |
setMemberDN(java.lang.String memberDN)
Sets the distinguished name of the member
|
void |
setMemberGroupName(java.lang.String memberGroupName)
Sets the name of the member group
|
void |
setMemberGroupOwnerMemberDN(java.lang.String memberGroupOwnerMemberDN)
Sets the distinguished name of the owner of the member group
|
void |
setMemberGroupOwnerMemberId(java.lang.String memberGroupOwnerMemberId)
Sets the identifier of the owner of the member group
|
void |
setMemberGroupOwnerMemberType(java.lang.String memberGroupOwnerMemberType)
Sets the type of the owner of the member group
|
void |
setMemberType(java.lang.String memberType)
Sets the type of the member
|
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
getRequestProperties, setRequestProperties
public static final java.lang.String CUSTOMER_PRICE_MEMBER_GROUP
public static final java.lang.String PRICE_OVERRIDE_MEMBER_GROUP
public static final java.lang.String USER_MEMBER_GROUP
public java.lang.String getId()
public java.lang.String getMemberDN()
public java.lang.String getMemberGroupName()
public java.lang.String getMemberGroupOwnerMemberDN()
public java.lang.String getMemberGroupOwnerMemberId()
public java.lang.String getMemberGroupOwnerMemberType()
public java.util.Vector getMemberGroups()
public java.util.Vector getMemberGroups(java.util.Vector v)
public java.lang.String getMemberType()
public void populate() throws java.lang.Exception
DataBeanManager.activate()
runs.populate
in interface com.ibm.commerce.beans.SmartDataBean
populate
in class com.ibm.commerce.beans.SmartDataBeanImpl
java.lang.Exception
public void setId(java.lang.String memberId)
memberId
- java.lang.Stringpublic void setMemberDN(java.lang.String memberDN)
memberDN
- java.lang.Stringpublic void setMemberGroupName(java.lang.String memberGroupName)
memberGroupName
- java.lang.Stringpublic void setMemberGroupOwnerMemberDN(java.lang.String memberGroupOwnerMemberDN)
memberGroupOwnerMemberDN
- java.lang.Stringpublic void setMemberGroupOwnerMemberId(java.lang.String memberGroupOwnerMemberId)
memberGroupOwnerMemberId
- java.lang.Stringpublic void setMemberGroupOwnerMemberType(java.lang.String memberGroupOwnerMemberType)
memberGroupOwnerMemberType
- java.lang.Stringpublic void setMemberType(java.lang.String memberType)
memberType
- java.lang.String