Name owners

NameOwner is the interface for a helper object that is passed to the modal PCF files GlobalPersonNameInputSet and GlobalContactNameInputSet. The helper object provides a way to set and get a single name on the enclosing entity. Typically you extend NameOwnerBase, which implements NameOwner.

While NameOwner provides methods for setting a field to be required or visible, generally it is better not to modify or override methods such as isVisible in NameOwnerBase. For most purposes, specifying the set, required, or hidden fields is more easily controlled by overriding property getters such as RequiredFields and HiddenFields declared in NameOwner. You override these property getters with values such as NameOwnerFieldId.REQUIRED_NAME_FIELDS or NameOwnerFieldId.NO_FIELDS.

Following are some properties on NameOwner:

Property

Description

ContactName

Sets (or retrieves) a single contact name on the enclosing entity, Contact. For example, the Name field of GlobalContactNameInputSet.default has the value nameOwner.ContactName.Name

PersonName

Sets (or retrieves) a single person name on the enclosing entity, Person. For example, the First Name field of GlobalPersonNameInputSet.default has the value nameOwner.PersonName.FirstName

HiddenFields

Set of name fields that ClaimCenter hides (does not show) in the application interface.

RequiredFields

Set of name fields for which the user must supply a value.

In the base configuration, PolicyCenter provides the following classes that implement NameOwner or extend a class that implements NameOwner:

  • NameOwnerBase
  • AffinityGroupNameOwner
  • BasicNameOwner
  • ContactNameNoSummaryOwner
  • ContactNameOwner
  • GroupNameOwner
  • MVRDriverNameOwner
  • NewAffinityGroupNameOwner
  • OrganizationNameOwner
  • PLPersonNameSearchOwner
  • RequiredBasicNameOwner
  • UserSearchNameOwner

In the base configuration, ContactManager provides the following classes that implement NameOwner or extend a class that implements NameOwner:

  • NameOwnerBase
  • ABUserNameOwner
  • ContactNameOwner
  • PLPersonNameSearchOwner
  • SearchNameOwner
  • UserSearchNameOwner