entertainmentCategory.setStorageConfiguration(storageConfiguration);
entertainmentCategory.setOrganization(organization);
organization.getCategories().add(entertainmentCategory);
add(entertainmentCategory);
AppFile icon = createIcon(entertainmentIcon, orgStorageConfigId, storageConfigId, entertainmentCategory.getUuid());
if (icon != null) {
icon.setStorable(entertainmentCategory);
entertainmentCategory.setIcon(icon);
}
defaultCategories.add(entertainmentCategory);
/**
* Create productivity category
*/
Category productivityCategory = new Category();
productivityCategory.setName("Productivity");
productivityCategory.setDescription("Applications to make your day to day more efficient.");
productivityCategory.setStorageConfiguration(storageConfiguration);
productivityCategory.setOrganization(organization);
organization.getCategories().add(productivityCategory);
add(productivityCategory);
icon = createIcon(productivityIcon, orgStorageConfigId, storageConfigId, productivityCategory.getUuid());
if (icon != null) {
icon.setStorable(productivityCategory);
productivityCategory.setIcon(icon);
}
defaultCategories.add(productivityCategory);
/**
* Create utilities category
*/
Category utilitiesCategory = new Category();
utilitiesCategory.setName("Utilities");
utilitiesCategory.setDescription("Applications with a specific skill set.");
utilitiesCategory.setStorageConfiguration(storageConfiguration);
utilitiesCategory.setOrganization(organization);
organization.getCategories().add(utilitiesCategory);
add(utilitiesCategory);
icon = createIcon(utilitiesIcon, orgStorageConfigId, storageConfigId, utilitiesCategory.getUuid());
if (icon != null) {
icon.setStorable(utilitiesCategory);
utilitiesCategory.setIcon(icon);
}
defaultCategories.add(utilitiesCategory);
return defaultCategories;