The company component acts as a container for role related entities by providing a minimalistic interface to the different components. This ensures shared functionality. The following graph shows components which are managed in this component:
A shared context for entity creation and update is provided via the
AclGrantContextconcept. Therefore the components do not have to depend on roles directly but rather on the company context. (see acl)
To create a new entity (which is managed in the company component), you have to pass the parameter
grantContextwith an identifier of an
AclGrantContext. The newly created entity is automatically assigned to the passed role.
CompanyFilterStructis used by company module to filter and search for the entities. It extends the
aclGrantContext. The correct filter type can be applied by the
CompanyFilterHelper, possible filter types see in the list below.