public boolean isAbstract() { return delegate.isAbstract(); }
public boolean isAbstract() { return delegate.isAbstract(); }
public void setProfiles(Profile[] profiles) { String versionId = dataStore.getContainerVersion(id); List<String> currentProfileIds = dataStore.getContainerProfiles(id); List<String> profileIds = new ArrayList<String>(); if (profiles != null) { for (Profile profile : profiles) { IllegalArgumentAssertion.assertTrue(versionId.equals(profile.getVersion()), "Version mismatch setting profile " + profile + ", expected version " + versionId); IllegalArgumentAssertion.assertFalse(profile.isAbstract(), "The profile " + profile + " is abstract and can not be associated to containers"); IllegalArgumentAssertion.assertFalse(profile.getId().matches(ENSEMBLE_PROFILE_PATTERN) && !currentProfileIds.contains(profile.getId()), "The profile " + profile + " is not assignable."); profileIds.add(profile.getId()); } } if (profileIds.isEmpty()) { profileIds.add(ZkDefs.DEFAULT_PROFILE); } dataStore.setContainerProfiles(id, profileIds); }
throw new IllegalArgumentException("Profile " + profile + " with version " + ver.getId() + " does not exist."); if (prof.isAbstract()) { throw new IllegalArgumentException("Profile " + profile + " with version " + ver.getId() + " is abstract and can not be associated to containers.");
throw new IllegalArgumentException("Profile " + profile + " with version " + ver.getId() + " does not exist."); if (prof.isAbstract()) { throw new IllegalArgumentException("Profile " + profile + " with version " + ver.getId() + " is abstract and can not be associated to containers.");
public ProfileDTO(Profile profile) { this.id = profile.getId(); this.version = profile.getVersion(); this.profileHash = profile.getProfileHash(); this.parents = profile.getParentIds(); this.overlay = profile.isOverlay(); this.abstractProfile = profile.isAbstract(); this.locked = profile.isLocked(); this.hidden = profile.isHidden(); this.attributes = profile.getAttributes(); this.bundles = profile.getBundles(); this.features = profile.getFeatures(); this.repositories = profile.getRepositories(); this.fabs = profile.getFabs(); this.overrides = profile.getOverrides(); String versionId = profile.getVersion(); String profileId = profile.getId(); this.configurations = profile.getConfigurationFileNames(); }
public ProfileDTO(Profile profile) { this.id = profile.getId(); this.version = profile.getVersion(); this.profileHash = profile.getProfileHash(); this.parents = profile.getParentIds(); this.overlay = profile.isOverlay(); this.abstractProfile = profile.isAbstract(); this.locked = profile.isLocked(); this.hidden = profile.isHidden(); this.attributes = profile.getAttributes(); this.bundles = profile.getBundles(); this.features = profile.getFeatures(); this.repositories = profile.getRepositories(); this.fabs = profile.getFabs(); this.overrides = profile.getOverrides(); String versionId = profile.getVersion(); String profileId = profile.getId(); this.configurations = profile.getConfigurationFileNames(); }