public void savePriceSet(Long priceSetID, Set<PriceSetItem> priceSetItems, String sharingLevel, Long attachedCharacterID, Key<User> userKey) {
PriceSet priceSet = priceSetDao.get(priceSetID, userKey);
priceSet.setItems(priceSetItems);
priceSet.setSharingLevel(sharingLevel);
if (attachedCharacterID != null) {
Character character = characterDao.getByCharacterID(attachedCharacterID, userKey);
CharacterInfo characterInfo = new CharacterInfo();
characterInfo.setId(character.getId());
characterInfo.setCharacterID(character.getCharacterID());
characterInfo.setName(character.getName());
characterInfo.setCorporationID(character.getCorporationID());
characterInfo.setCorporationName(character.getCorporationName());
characterInfo.setCorporationTicker(character.getCorporationTicker());
characterInfo.setAllianceID(character.getAllianceID());
characterInfo.setAllianceName(character.getAllianceName());
priceSet.setAttachedCharacterInfo(characterInfo);
} else {
priceSet.setAttachedCharacterInfo(null);
}
priceSet.setUpdatedDate(new Date());