import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import java.util.Set;
import javax.jcr.Repository;
private Repository repository;
- @Override
- public Set<String> getUiNames() {
- // TODO Auto-generated method stub
- return null;
- }
-
protected abstract String getThemeId(String uiName);
@Override
String themeId = getThemeId(uiName);
if (themeId == null)
return null;
+ if (!themes.containsKey(themeId))
+ throw new IllegalArgumentException("Theme " + themeId + " not found.");
return themes.get(themeId);
}
- protected boolean allThemesAvailable() {
+ @Override
+ public boolean allThemesAvailable() {
boolean themeMissing = false;
uiNames: for (String uiName : getUiNames()) {
String themeId = getThemeId(uiName);