// indexer is unaware of the m2 layout conversion
appModel.setIndexable(false);
RepositoryShadowResource repoResource = (RepositoryShadowResource) resource;
M2LayoutedM1ShadowRepositoryConfiguration exConf = new M2LayoutedM1ShadowRepositoryConfiguration(ex);
exConf.setMasterRepositoryId(repoResource.getShadowOf());
exConf.setSynchronizeAtStartup(repoResource.isSyncAtStartup());
}
else if (!RepositoryBaseResourceConverter.REPO_TYPE_GROUP.equals(resource.getRepoType())) {
RepositoryResource repoResource = (RepositoryResource) resource;
// we can use the default if the value is empty
if (StringUtils.isNotEmpty(repoResource.getWritePolicy())) {
appModel.setWritePolicy(repoResource.getWritePolicy());
}
appModel.setBrowseable(repoResource.isBrowseable());
appModel.setIndexable(repoResource.isIndexable());
appModel.setSearchable(repoResource.isIndexable());
appModel.setNotFoundCacheTTL(repoResource.getNotFoundCacheTTL());
appModel.setExternalConfiguration(ex);
M2RepositoryConfiguration exConf = new M2RepositoryConfiguration(ex);
exConf.setRepositoryPolicy(EnumUtil.valueOf(repoResource.getRepoPolicy(), RepositoryPolicy.class));
if (repoResource.getOverrideLocalStorageUrl() != null) {
appModel.setLocalStorage(new CLocalStorage());
appModel.getLocalStorage().setUrl(repoResource.getOverrideLocalStorageUrl());