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

com.innovenso.townplan.dsl.concepts.buildingblock.ArchitectureBuildingBlockConfigurer.groovy Maven / Gradle / Ivy

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

import com.innovenso.townplan.api.command.AddBuildingBlockCommand
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.*
import lombok.NonNull

class ArchitectureBuildingBlockConfigurer extends AbstractConceptConfigurer implements HasRealizationRelationships, HasFlowRelationships, HasDocumentation, HasExternalId, HasSwot, HasMemberRelationships, HasRequiredEnterpriseKey {

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

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

	@Override
	String conceptType() {
		return "Architecture Building Block"
	}

	@Override
	List dependsOnKeys() {
		return [enterprise]
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy