/*
 * Copyright 2011-2016 B2i Healthcare Pte Ltd, http://b2i.sg
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.b2international.snowowl.snomed.core.store;

import static com.b2international.snowowl.snomed.common.SnomedTerminologyComponentConstants.SNOMED_INT_CITATION;
import static com.b2international.snowowl.snomed.common.SnomedTerminologyComponentConstants.SNOMED_INT_LANGUAGE;
import static com.b2international.snowowl.snomed.common.SnomedTerminologyComponentConstants.SNOMED_INT_LINK;
import static com.b2international.snowowl.snomed.common.SnomedTerminologyComponentConstants.SNOMED_INT_NAME;
import static com.b2international.snowowl.snomed.common.SnomedTerminologyComponentConstants.SNOMED_INT_OID;
import static com.b2international.snowowl.snomed.common.SnomedTerminologyComponentConstants.SNOMED_INT_SHORT_NAME;

import java.util.Map;

import com.b2international.snowowl.core.api.IBranchPath;
import com.b2international.snowowl.snomed.SnomedReleaseType;

/**
 * @since 4.7
 */
public class SnomedReleases {

	public static SnomedReleaseBuilder newSnomedRelease() {
		return new SnomedReleaseBuilder();
	}
	
	public static SnomedReleaseBuilder newSnomedRelease(Map<String, String> valueMap) {
		return new SnomedReleaseBuilder().init(valueMap);
	}
	
	public static SnomedReleaseBuilder newSnomedInternationalRelease() {
		return new SnomedReleaseBuilder()
				.withName(SNOMED_INT_NAME)
				.withShortName(SNOMED_INT_SHORT_NAME)
				.withCodeSystemOid(SNOMED_INT_OID)
				.withBaseCodeSystemOid(SNOMED_INT_OID) // XXX the same intentionally
				.withLanguage(SNOMED_INT_LANGUAGE)
				.withMaintainingOrganizationLink(SNOMED_INT_LINK)
				.withCitation(SNOMED_INT_CITATION)
				.withType(SnomedReleaseType.INTERNATIONAL)
				.withBranchPath(IBranchPath.MAIN_BRANCH);
	}
	
	public static SnomedVersionBuilder newSnomedVersion() {
		return new SnomedVersionBuilder();
	}
}

@@ -1343,16 +1343,339 @@
 RT_NAME;
+%0Aimport static com.b2international.snowowl.snomed.common.SnomedTerminologyComponentConstants.SNOMED_INT_ICON_PATH;%0Aimport static com.b2international.snowowl.snomed.common.SnomedTerminologyComponentConstants.TERMINOLOGY_ID;%0Aimport static com.b2international.snowowl.snomed.datastore.SnomedDatastoreActivator.REPOSITORY_UUID;
 %0A%0Aimport
@@ -2618,16 +2618,145 @@
 _BRANCH)
+%0A%09%09%09%09.withIconPath(SNOMED_INT_ICON_PATH)%0A%09%09%09%09.withTerminologyComponentId(TERMINOLOGY_ID)%0A%09%09%09%09.withRepositoryUuid(REPOSITORY_UUID)
 ;%0A%09%7D%0A%09%0A%09

Set additional values due to changes in builder.