public class MemberRoleDataBean
extends com.ibm.commerce.user.beansrc.MemberRoleDataBeanBase
implements com.ibm.commerce.user.beans.MemberRoleInputDataBean, com.ibm.commerce.user.beans.MemberRoleSmartDataBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The class name.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
emptyString
Constructor and Description |
---|
MemberRoleDataBean() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[][] |
getAllRolesForDisplay(CommandContext aCommandContext)
Retrieve the list of all roles defined in the system.
|
CommandContext |
getCommandContext()
Gets the command context set within this bean.
|
java.lang.String |
getDataBeanKeyMemberId()
Gets the second key (member id) of this data bean.
|
java.lang.String |
getDataBeanKeyOrgEntityId()
Gets the third key (orgEntity id) of this data bean.
|
java.lang.String |
getDataBeanKeyRoleId()
Gets the first key (role id) of this data bean.
|
TypedProperty |
getRequestProperties()
Gets the request property set within this bean.
|
static java.lang.Integer[] |
getRolesDefinedForOrg(java.lang.Long anOrganizationId)
Return the list of roles that are defined for a particular
organization.
|
static java.lang.Integer[] |
getRolesThatUserPlaysInOrg(java.lang.Long anUserId,
java.lang.Long anOrganizationId)
Return the list of roles that a user plays in a given organization.
|
void |
populate()
Retrieves data from the database.
|
void |
setCommandContext(CommandContext aCommandContext)
Sets the command context within this bean.
|
void |
setDataBeanKeyMemberId(java.lang.String aMemberId)
Sets the second key(role id) of this data bean.
|
void |
setDataBeanKeyOrgEntityId(java.lang.String aOrgEntityId)
Sets the third key(third id) of this data bean.
|
void |
setDataBeanKeyRoleId(java.lang.String aRoleId)
Sets the first key(role id) of this data bean.
|
void |
setRequestProperties(TypedProperty aRequestProperty)
Sets the request property within this bean.
|
findByMemberId, findByMemberIdNoCache, findByMemberIdOrgEntityId, findByMemberIdOrgEntityIdNoCache, findByMemberIdRoleId, findByMemberIdRoleIdNoCache, findByMemberIdRoleIdOrgEntityId, findByMemberIdRoleIdOrgEntityIdNoCache, findByRoleIdOrgEntityId, findByRoleIdOrgEntityIdNoCache, getEntity, getMemberId, getMemberIdInEntityType, getOrgEntityId, getOrgEntityIdInEntityType, getRoleId, getRoleIdInEntityType, instantiateEntity, setInitKey_memberId, setInitKey_memberId, setInitKey_orgEntityId, setInitKey_orgEntityId, setInitKey_roleId, setInitKey_roleId, setMemberId, setMemberId, setOrgEntityId, setOrgEntityId, setRoleId, setRoleId
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public TypedProperty getRequestProperties()
getRequestProperties
in interface InputDataBean
public void setRequestProperties(TypedProperty aRequestProperty)
setRequestProperties
in interface InputDataBean
aRequestProperty
- com.ibm.commerce.datatype.TypedPropertypublic java.lang.String getDataBeanKeyRoleId()
getDataBeanKeyRoleId
in interface com.ibm.commerce.user.beans.MemberRoleSmartDataBean
public java.lang.String getDataBeanKeyMemberId()
getDataBeanKeyMemberId
in interface com.ibm.commerce.user.beans.MemberRoleSmartDataBean
public java.lang.String getDataBeanKeyOrgEntityId()
getDataBeanKeyOrgEntityId
in interface com.ibm.commerce.user.beans.MemberRoleSmartDataBean
public CommandContext getCommandContext()
getCommandContext
in interface SmartDataBean
public void setCommandContext(CommandContext aCommandContext)
setCommandContext
in interface SmartDataBean
aCommandContext
- the command context.public void setDataBeanKeyRoleId(java.lang.String aRoleId)
setDataBeanKeyRoleId
in interface com.ibm.commerce.user.beans.MemberRoleInputDataBean
aRoleId
- The first key of this data bean.public void setDataBeanKeyMemberId(java.lang.String aMemberId)
setDataBeanKeyMemberId
in interface com.ibm.commerce.user.beans.MemberRoleInputDataBean
aMemberId
- The second key of this data bean.public void setDataBeanKeyOrgEntityId(java.lang.String aOrgEntityId)
setDataBeanKeyOrgEntityId
in interface com.ibm.commerce.user.beans.MemberRoleInputDataBean
aOrgEntityId
- The third key of this data bean.public void populate()
populate
in interface SmartDataBean
java.lang.Exception
public static final java.lang.Integer[] getRolesThatUserPlaysInOrg(java.lang.Long anUserId, java.lang.Long anOrganizationId)
anUserId
- The user IdanOrganizationId
- The organization Idpublic static final java.lang.Integer[] getRolesDefinedForOrg(java.lang.Long anOrganizationId)
anOrganizationId
- The organization Idpublic static java.lang.String[][] getAllRolesForDisplay(CommandContext aCommandContext)
aCommandContext
- The command context; language must be set in the context in
order that the display names resolve properly.