Class SetBusinessEntityCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, SetBusinessEntityCmd,,,,,,

    public class SetBusinessEntityCmdImpl
    extends TaskCommandImpl
    implements SetBusinessEntityCmd
    This task command is called by OrgEntityAddCmd command to set the BusinessEntity attribute.

    Existing orgEntities have an attribute called 'BusinessEntity', stored in the MBRATTRVAL table. When BusinessEntity equals 1, it means the orgEntity is a business orgEntity that can be used for the purpose of creating accounts. The Root Organization and the Default Organization have BusinessEntity set to 0. When a new orgEntity is created, the OrgEntityAddCmd command will call this task command which sets the BusinessEntity attribute according to the following logic:

    The BusinessEntity attribute is set to 1 if the orgEntity to be created has the Root Organization as its parent. As well, if the parent organization is a descendant of of an organization defined in the 'BusinessEntities' section of MemberRegistrationAttributes.xml, the new orgEntity will have BusinessEntity set to 1.
    In all other cases, BusinessEntity is set to 0.

    Inputs and outputs are as follows:

    • setRequestProperties(TypedProperty): input properties which should contain parentMemberId, otherwise, an exception will thrown.
    • getRequestProperties(TypedProperty): output properties which contains the BusinessEntity property, in MBRATTRVAL parameter format, for example, BusinessEntity_null. The null implies that this attribute is store independent. Since the action is not specified, it defaults to "a" (add).
    See Also:
    Serialized Form