Create a Privacy Level Assignment Rule Entity

This section describes how a privacy level assignment rule entity can be created

What does this section cover?

Create a Privacy Level Assignment Rule Entity

In order for an entity to be available to Privacy Level Assignment Rule Mechanism, it has to meet the following conditions:

1. Data Object Class

The entity's DO class must implement:

  1. ICRMDOExplicitAccessibleEntity interface and its methods:
    1. setOwnedByGroup(CRMDOUnitGroup unitGroup)
    2. getOwnedByGroup()
    3. setPrivacyLevel(CRMDOPrivacyLevel privacyLevel)
    4. getPrivacyLevel()
    5. getType()
  2. Optionally one of ICRMDOAccountBasedEntity and ICRMDOCustomerBasedEntity interfaces:
    1. If the entity is related to an accounts receivable object it must implement ICRMDOAccountBasedEntity interface and its methods:
      1. setAccountReceivable(CRMDOAccountReceivable accountReceivable)
      2. getAccountReceivable()
    2. If the entity is related to a contact information object it must implement ICRMDOCustomerBasedEntity interface and its methods:
      1. setContactInformation(CRMDOContactInformation contactInformation)
      2. getContactInformation()

2. Entities Metadata File

In entities metadata file:

  1. <plarexcluded> tag's value must be set to false. Keep in mind that <plarexcluded> default value is false, so in such cases, it can be omitted.
  2. <masterentityid> tag must be defined whenever a master entity exists (CONTACTINFORMATION/ACCOUNTSRECEIVABLE).
  3. <typeentityid> tag must be defined whenever a type entity exists.