public class CheckCurrentUserInMemberGroupCmdImpl extends TaskCommandImpl implements CheckCurrentUserInMemberGroupCmd, SegmentConstants, ConditionConstants
Modifier and Type | Field and Description |
---|---|
protected CheckCurrentUserInMemberGroupCmd | _checkCurrentUserInMemberGroupCmd
An instance of the CheckCurrentUserInMemberGroupCmd.
|
protected CheckUserInMemberGroupCmd | _checkUserInMemberGroupCmd
An instance of the CheckUserInMemberGroupCmd.
|
protected MemberGroupAccessBean | _memberGroupAccessBean
Member group access bean.
|
protected Condition | _memberGroupCondition
The member group condition.
|
protected java.util.Vector | _memberGroupExplicitlyExcludedMembers
The member group explicitly excluded member list.
|
protected java.util.Vector | _memberGroupExplicitlyIncludedMembers
The member group explicitly included member list.
|
protected boolean | _memberGroupExplicitMembersFromCache
Flag that indicates whether the explicit members of the member group should be retrieved from the SegmentCache object or not.
|
protected java.lang.String | _memberGroupName
Member group name.
|
protected java.lang.Long | _memberGroupOwnerId
Member group owner ID.
|
protected CheckCurrentUserInMemberGroupCmdImpl | _parent
The command that called this instance of the command.
|
protected boolean | _result
Result.
|
static java.lang.String | COPYRIGHT
Copyright.
|
Constructor and Description |
---|
CheckCurrentUserInMemberGroupCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean | evaluate(java.lang.String name, OpenCondition.Parameter[] parameters)
Evaluate an open condition.
|
boolean | evaluate(java.lang.String variable, java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
Evaluate a simple condition.
|
protected boolean | evaluateCurrencyCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
Evaluate the "currency" condition.
|
protected boolean | evaluateDaysSinceLastVisitCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
Evaluate the "daysSinceLastVisit" condition.
|
protected boolean | evaluateLanguageCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
Evaluate the "language" condition.
|
protected boolean | evaluateLastVisitDateCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
Evaluate the "lastVisitDate" condition.
|
protected boolean | evaluateSegment()
Performs the evaluation on this segment, including condition, explicitly included members and explicitly excluded members.
|
protected boolean | evaluateSegmentCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
Evaluate the "segment" condition.
|
protected CheckCurrentUserInMemberGroupCmd | getCheckCurrentUserInMemberGroupCmd()
Get an instance of the CheckCurrentUserInMemberGroupCmd task command.
|
protected CheckUserInMemberGroupCmd | getCheckUserInMemberGroupCmd()
Get an instance of the CheckUserInMemberGroupCmd task command.
|
boolean | getResult()
Gets the result of the checking on whether the current user belongs to the member group or not.
|
boolean | isReadyToCallExecute()
Checks to see if the command is ready to call.
|
void | performExecute()
Performs the execution of the command.
|
protected void | populateMemberGroupExplicitMembers()
Populates all the explicitly excluded and included members of this member group.
|
void | setMemberGroupAccessBean(MemberGroupAccessBean memberGroupAccessBean)
Sets the member group access bean.
|
void | setMemberGroupCondition(Condition memberGroupCondition)
Sets the member group condition.
|
void | setMemberGroupExplicitMembersFromCache(boolean memberGroupExplicitMembersFromCache)
Sets the flag that indicates whether the explicit members of the member group should be retrieved from the SegmentCache object or not.
|
void | setMemberGroupName(java.lang.String memberGroupName)
Sets the member group name.
|
void | setMemberGroupOwnerId(java.lang.Long memberGroupOwnerId)
Sets the member group owner ID.
|
public static final java.lang.String COPYRIGHT
protected java.lang.String _memberGroupName
protected java.lang.Long _memberGroupOwnerId
protected MemberGroupAccessBean _memberGroupAccessBean
protected boolean _result
protected CheckUserInMemberGroupCmd _checkUserInMemberGroupCmd
protected CheckCurrentUserInMemberGroupCmd _checkCurrentUserInMemberGroupCmd
protected CheckCurrentUserInMemberGroupCmdImpl _parent
protected Condition _memberGroupCondition
protected java.util.Vector _memberGroupExplicitlyExcludedMembers
protected java.util.Vector _memberGroupExplicitlyIncludedMembers
protected boolean _memberGroupExplicitMembersFromCache
public CheckCurrentUserInMemberGroupCmdImpl()
public void setMemberGroupName(java.lang.String memberGroupName)
public void setMemberGroupOwnerId(java.lang.Long memberGroupOwnerId)
public void setMemberGroupAccessBean(MemberGroupAccessBean memberGroupAccessBean)
public void setMemberGroupCondition(Condition memberGroupCondition)
public void setMemberGroupExplicitMembersFromCache(boolean memberGroupExplicitMembersFromCache)
public boolean getResult()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
protected boolean evaluateSegment()
public boolean evaluate(java.lang.String variable, java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
public boolean evaluate(java.lang.String name, OpenCondition.Parameter[] parameters)
protected boolean evaluateCurrencyCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateLanguageCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateDaysSinceLastVisitCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateLastVisitDateCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected boolean evaluateSegmentCondition(java.lang.String operator, java.lang.String value, SimpleCondition.Qualifier[] qualifiers)
protected CheckUserInMemberGroupCmd getCheckUserInMemberGroupCmd()
protected CheckCurrentUserInMemberGroupCmd getCheckCurrentUserInMemberGroupCmd()
protected void populateMemberGroupExplicitMembers()