com.ibm.commerce.member.syncbeans

Class MemberSyncBean

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM Copyright notice field.
    • Field Detail

      • COPYRIGHT

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

      • isMemberInRole

        public static boolean isMemberInRole(java.lang.String strMemberId,
                                             java.lang.Integer nRoleId)
                                      throws ECSystemException
        Static helper method used to determine if the member plays a given role anywhere in the organization hierarchy.
        Parameters:
        strMemberId - The member's memberId
        nRoleId - The role Id
        Returns:
        boolean true if the user plays the role; false otherwise
        Throws:
        ECSystemException
      • isMemberInRole

        public static boolean isMemberInRole(java.lang.String strMemberId,
                                             java.lang.String strRoleName)
                                      throws ECSystemException
        Static helper method used to determine if the member plays a given role anywhere in the organization hierarchy.
        Parameters:
        strMemberId - The member's memberId
        strRoleName - The role name
        Returns:
        boolean true if the user plays the role; false otherwise
        Throws:
        ECSystemException
      • isMemberInRole

        public static boolean isMemberInRole(java.lang.String strMemberId,
                                             java.lang.String strRoleName,
                                             java.lang.Long lOrgEntityId)
                                      throws ECSystemException
        Static helper method used to determine if the member plays a given role in the specified organization.
        Parameters:
        strMemberId - The member's memberId.
        strRoleName - The role name.
        lOrgEntityId - The organizational entity Id.
        Returns:
        boolean true if the user plays the role; false otherwise
        Throws:
        ECSystemException