This interface must be implemented to provide a task command that checks to see if a user belongs to a specified member group. Different implementations of this interface can be provided for different stores.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright. |
static java.lang.String |
defaultCommandClassName The name of the default implementation of this interface. |
static java.lang.String |
Name The name of this interface. |
Method Summary | |
---|---|
boolean |
getResult() Returns true if the current user belongs to the specified member group. |
void |
setMemberGroupAccessBean(
MemberGroupAccessBean memberGroupAccessBean) Sets the member group access bean. |
void |
setMemberGroupCondition(
Condition condition) Sets the condition object. |
void |
setMemberGroupName(java.lang.String memberGroupName) Sets the member group name. |
void |
setMemberGroupOwnerId(java.lang.Long memberGroupOwnerId) Sets the owner of the member group. |
void |
setUser(
UserAccessBean user) Sets the user that you want to test. |
Methods inherited from interface com.ibm.commerce.condition. Evaluator |
evaluate,
evaluate |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String Name
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public void setUser(UserAccessBean user)
user
- The user access bean.public void setMemberGroupName(java.lang.String memberGroupName)
memberGroupName
- The name of the member
group.public void setMemberGroupOwnerId(java.lang.Long memberGroupOwnerId)
memberGroupOwnerId
- The member id of the owner of the member
group.public void setMemberGroupAccessBean(MemberGroupAccessBean memberGroupAccessBean)
memberGroupAccessBean
- The member group access
bean.public void setMemberGroupCondition(Condition condition)
public boolean getResult()
true
if the current user belongs to the member
group.