Creating and editing a tenant
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Creating and editing a tenant
The following code shows assignment of properties and creation
of a new tenant. The service's NewTenant( ) factory
method expects the name of the tenant. The Type, DefaultAllocation,
and each of the Default*Area properties are all
mandatory properties that need to be specified before the tenant
can be passed to the CreateTenantGroup( ) service
method. The Default*Area properties are all defined
as instances of IArea, which must be known to,
and can be retrieved from, the service. This example sets the default
allocation to "Immediate" in order to allocate
the partitions according to the default areas when the tenant is
created:
|
All writeable properties except Type can be
edited after the tenant is created. The following code edits two
of the properties on an existing tenant. Note that IsDataEnabled defaults
to TRUE when the tenant is created:
|