All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.innovenso.townplan.dsl.concepts.enterprise.EnterpriseConfigurer.groovy Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package com.innovenso.townplan.dsl.concepts.enterprise

import com.innovenso.townplan.api.command.AddEnterpriseCommand
import com.innovenso.townplan.domain.TownPlanImpl
import com.innovenso.townplan.dsl.TownPlanConfigurer
import com.innovenso.townplan.dsl.concepts.AbstractConceptConfigurer
import com.innovenso.townplan.dsl.traits.HasDocumentation
import com.innovenso.townplan.dsl.traits.HasExternalId
import lombok.NonNull

class EnterpriseConfigurer extends AbstractConceptConfigurer implements HasDocumentation, HasExternalId {

	EnterpriseConfigurer(@NonNull TownPlanConfigurer townPlanConfigurer) {
		super(townPlanConfigurer)
	}

	def apply(@NonNull TownPlanImpl townPlan) {
		townPlan.execute(AddEnterpriseCommand.builder()
				.key(key)
				.title(title)
				.description(description)
				.build())
	}

	@Override
	String conceptType() {
		return "Enterprise"
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy