Class ListUsersInMemberGroupCmdImpl

    • Field Detail

    • Constructor Detail

      • ListUsersInMemberGroupCmdImpl

        public ListUsersInMemberGroupCmdImpl()
    • Method Detail

      • setMemberGroupName

        public void setMemberGroupName(java.lang.String memberGroupName)
        Sets the member group name.
        Specified by:
        setMemberGroupName in interface ListUsersInMemberGroupCmd
        memberGroupName - Member group name.
      • setMemberGroupOwnerId

        public void setMemberGroupOwnerId(java.lang.Long memberGroupOwnerId)
        Sets the member group ID.
        Specified by:
        setMemberGroupOwnerId in interface ListUsersInMemberGroupCmd
        memberGroupOwnerId - Member group ID.
      • setOrgEntityIds

        public void setOrgEntityIds(java.lang.Long[] orgEntityIds)
        Sets the organization IDs.
        Specified by:
        setOrgEntityIds in interface ListUsersInMemberGroupCmd
        orgEntityIds - organization IDs.
      • getUserIds

        public java.lang.String[] getUserIds()
        Gets the array of user IDs.
        Specified by:
        getUserIds in interface ListUsersInMemberGroupCmd
        An array of user IDS.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Checks to see if the command is ready to call. This method will return false if both the member group name and the member group access bean are null.
        Specified by:
        isReadyToCallExecute in interface
        isReadyToCallExecute in class AbstractECTargetableCommand
        true if the command is ready to go.
      • setAdditionalAndCondition

        public void setAdditionalAndCondition(Condition condition)
        Adds an additonal condition that must also be met on top of the conditions outlined in the member group rules.
        Specified by:
        setAdditionalAndCondition in interface ListUsersInMemberGroupCmd
        condition - The condition that must also be met.
      • setQueryOnly

        public void setQueryOnly(boolean flag)
        Defers executing the query generated for querying members of the group to the caller. Useful when the caller wishes to manage the database connection and result set. The caller should use getQuery() to retrieve the resulting SQL.
        Specified by:
        setQueryOnly in interface ListUsersInMemberGroupCmd
        flag - Set to true if only the SQL query is required, false otherwise.
      • getQuery

        public java.lang.String getQuery()
        Returns the SQL query used to generate the list of members in the group.
        Specified by:
        getQuery in interface ListUsersInMemberGroupCmd
        the SQL query used to generate the list of members in the group.
      • setQueryWrapper

        public void setQueryWrapper(java.lang.String queryWrapper)
        Wraps the query used to determine the members of the group with the passed parameter. The parameter should be a string containing "%3CQUERY%3E" in the location the original query should be placed. All queries generated will return a set of MEMBER_ID values. Query wrappers may be any query fragment that uses %3CQUERY%3E to represent such a result set.
        Specified by:
        setQueryWrapper in interface ListUsersInMemberGroupCmd
        queryWrapper - the query with which to wrap the original query.
      • setMemberGroupIds

        public void setMemberGroupIds(java.lang.String[] mbrGrpIds,
                                      java.lang.String anyOrAll)
        This method sets the additonal member group IDs of the customer segments to which to return the list of users. These member group IDs are in addition to the member group passed in through the request property parameter memberGroupId to this command.
        Specified by:
        setMemberGroupIds in interface ListUsersInMemberGroupCmd
        mbrGrpIds - The set of IDs of the member groups to which to return the list of users.
        anyOrAll - Should the list of users be the customers in each of the specified groups (any), or should the list of users be those who are in all of the specified groups (all). Valid values are: any, all.