com.ibm.commerce.member.facade.server.commands

Class FetchMemberGroupCmdImpl

  • All Implemented Interfaces:
    AbstractFetchNounCmd, FetchMemberGroupCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class FetchMemberGroupCmdImpl
    extends AbstractFetchMemberGroupCmdImpl
    implements FetchMemberGroupCmd
    Fetches member groups based on the GetType search criteria below. Currently, only member groups with usage of General Purpose are returned. Customer segments created using the Accelerator have this usage. This command delegates to FetchMemberGroupCacheCmdImpl so that the results can be cached for paging purposes.
  • {_wcf.ap=$accessProfile$}/MemberGroup[MemberGroupIdentifier[(UniqueID='$ID1$' or UniqueID='$ID2' or ...)]]
    - finds member groups based on an arbitrary number of unique IDs
  • {_wcf.ap=$accessProfile$}/MemberGroup[MemberGroupIdentifier[ExternalIdentifier[Name='$name$' and @ownerID='$ownerID$']]]
    - finds member groups based on name and owner ID
  • {_wcf.ap=$accessProfile$}/MemberGroup[Usage='$usage$']]
    - finds member groups based on usage
  • {_wcf.ap=$accessProfile$}/MemberGroup[ search(MemberGroupIdentifier/ExternalIdentifier/Name='$name$') and Usage='$usage$']
    - finds member groups by name and usage; name is "case-insensitive, equals"
  • {_wcf.ap=$accessProfile$}/MemberGroup[ search(contains(MemberGroupIdentifier/ExternalIdentifier/Name, '$name$')) and Usage='$usage$']
    - finds member groups by name and usage; name is "case-insensitive, contains"
  • {_wcf.ap=$accessProfile$}/MemberGroup[ search(starts-with(MemberGroupIdentifier/ExternalIdentifier/Name, '$name$')) and Usage='$usage$']
    - finds member groups by name and usage; name is "case-insensitive, starts with"
  • {_wcf.ap=$accessProfile$}/MemberGroup[ search(ends-with(MemberGroupIdentifier/ExternalIdentifier/Name, '$name$')) and Usage='$usage$']
    - finds member groups by name and usage; name is "case-insensitive, ends with"
  • {_wcf.ap=$accessProfile$}/MemberGroup[MemberGroupIdentifier[UniqueID='$memberGroupID$'] and IncludedPerson[UniqueID='$personID$']]
    - checks if a member group contains a specified person. The member group is specified using its unique ID. The person is also specified using its unique ID.


    Returns a list of SegmentDataBean representing the Member Groups found

See Also:
Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Constructor Summary

      Constructors 
      Constructor and Description
      FetchMemberGroupCmdImpl()
      Creates an instance of the fetch Member Group command.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void performSearch()
      Fetches member groups based on the GetType search criteria: {_wcf.ap=$accessProfile$}/MemberGroup[MemberGroupIdentifier[(UniqueID='$ID1$' or UniqueID='$ID2' or ...)]]
      - finds member groups based on an arbitrary number of unique IDs {_wcf.ap=$accessProfile$}/MemberGroup[MemberGroupIdentifier[ExternalIdentifier[Name='$name$' and @ownerID='$ownerID$']]]
      - finds member groups based on name and owner ID {_wcf.ap=$accessProfile$}/MemberGroup[Usage='$usage$']]
      - finds member groups based on usage {_wcf.ap=$accessProfile$}/MemberGroup[ search(MemberGroupIdentifier/ExternalIdentifier/Name='$name$') and Usage='$usage$']
      - finds member groups by name and usage; name is "case-insensitive, equals" {_wcf.ap=$accessProfile$}/MemberGroup[ search(contains(MemberGroupIdentifier/ExternalIdentifier/Name, '$name$')) and Usage='$usage$']
      - finds member groups by name and usage; name is "case-insensitive, contains" {_wcf.ap=$accessProfile$}/MemberGroup[ search(starts-with(MemberGroupIdentifier/ExternalIdentifier/Name, '$name$')) and Usage='$usage$']
      - finds member groups by name and usage; name is "case-insensitive, starts with" {_wcf.ap=$accessProfile$}/MemberGroup[ search(ends-with(MemberGroupIdentifier/ExternalIdentifier/Name, '$name$')) and Usage='$usage$']
      - finds member groups by name and usage; name is "case-insensitive, ends with" {_wcf.ap=$accessProfile$}/MemberGroup[MemberGroupIdentifier[UniqueID='$memberGroupID$'] and IncludedPerson[UniqueID='$personID$']]
      - checks if a member group contains a specified person.
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
      • Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl

        getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute, isReadyToCallExecute, reset
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FetchMemberGroupCmdImpl

        public FetchMemberGroupCmdImpl()
        Creates an instance of the fetch Member Group command.
    • Method Detail

      • performSearch

        public void performSearch()
                           throws java.lang.Exception
        Fetches member groups based on the GetType search criteria:
      • {_wcf.ap=$accessProfile$}/MemberGroup[MemberGroupIdentifier[(UniqueID='$ID1$' or UniqueID='$ID2' or ...)]]
        - finds member groups based on an arbitrary number of unique IDs
      • {_wcf.ap=$accessProfile$}/MemberGroup[MemberGroupIdentifier[ExternalIdentifier[Name='$name$' and @ownerID='$ownerID$']]]
        - finds member groups based on name and owner ID
      • {_wcf.ap=$accessProfile$}/MemberGroup[Usage='$usage$']]
        - finds member groups based on usage
      • {_wcf.ap=$accessProfile$}/MemberGroup[ search(MemberGroupIdentifier/ExternalIdentifier/Name='$name$') and Usage='$usage$']
        - finds member groups by name and usage; name is "case-insensitive, equals"
      • {_wcf.ap=$accessProfile$}/MemberGroup[ search(contains(MemberGroupIdentifier/ExternalIdentifier/Name, '$name$')) and Usage='$usage$']
        - finds member groups by name and usage; name is "case-insensitive, contains"
      • {_wcf.ap=$accessProfile$}/MemberGroup[ search(starts-with(MemberGroupIdentifier/ExternalIdentifier/Name, '$name$')) and Usage='$usage$']
        - finds member groups by name and usage; name is "case-insensitive, starts with"
      • {_wcf.ap=$accessProfile$}/MemberGroup[ search(ends-with(MemberGroupIdentifier/ExternalIdentifier/Name, '$name$')) and Usage='$usage$']
        - finds member groups by name and usage; name is "case-insensitive, ends with"
      • {_wcf.ap=$accessProfile$}/MemberGroup[MemberGroupIdentifier[UniqueID='$memberGroupID$'] and IncludedPerson[UniqueID='$personID$']]
        - checks if a member group contains a specified person. The member group is specified using its unique ID. The person is also specified using its unique ID.


        Returns a list of SegmentDataBean representing the Member Groups found

Throws:
java.lang.Exception
See Also:
TargetableCommand.performExecute()