Skip to end of banner
Go to start of banner

Create a Collection Entity

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This section describes how a collection entity can be created

What does this section cover?

Create a Collection Entity

In order for an entity to be encountered as a collection by:

  1. Conditional Security Restrictions Mechanism: Field restrictions regarding a collection cannot be applied unless the collection entity meets the conditions described below.

  2. Audit Trail Mechanism: cannot monitor changes regarding collection fields unless the collection entity meets the conditions described below.

  3. Mandatory Fields Mechanism

it has to meet the following conditions:

1. Data Object

The entity's DO class must:

  1. Implement ICRMDOCollectionEntity interface and its methods getMainEntity().

CUSTOMCRMDORentalItem
public class CUSTOMCRMDORentalItem extends CRMDO implements ICRMDOCollectionEntity{

	private CUSTOMCRMDORental rental;
	private CRMDOInstalledItem installedItem;
	
	private Set<CUSTOMCRMDORentalItemUsage> usagePeriods;
	
	public CUSTOMCRMDORental getRental() {
		return rental;
	}
	public void setRental(CUSTOMCRMDORental rental) {
		setChange("rental", this.rental, rental);
		this.rental = rental;
	}
	public CRMDOInstalledItem getInstalledItem() {
		return installedItem;
	}
	public void setInstalledItem(CRMDOInstalledItem installedItem) {
		setChange("installedItem", this.installedItem, installedItem);
		this.installedItem = installedItem;
	}
	public Set<CUSTOMCRMDORentalItemUsage> getUsagePeriods() {
		return usagePeriods;
	}
	public void setUsagePeriods(Set<CUSTOMCRMDORentalItemUsage> usagePeriods) {
		setChange("usagePeriods", this.usagePeriods, usagePeriods);
		this.usagePeriods = usagePeriods;
	}
	@Override
	public CRMDO getMainEntity() {
		return rental;
	}	
}
  • No labels