blob: 2a0e430edb68820cec93fc3b7e4caeecb987e8d6 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.framework.skynet.core.artifact;
import org.eclipse.osee.framework.db.connection.exception.OseeCoreException;
import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
/**
* @author Roberto E. Escobar
*/
class RootBranchInitializer {
/**
* Add common artifacts that should be available to all branches
*
* @param branch
* @throws OseeCoreException
*/
protected void initialize(Branch branch) throws OseeCoreException {
// Create necessary default hierarchy root artifact
ArtifactQuery.getDefaultHierarchyRootArtifact(branch, true);
// Create necessary top universal group artifact
UniversalGroup.createTopUniversalGroupArtifact(branch);
}
}