Beispiel #1
0
 /** {@inheritDoc} */
 @RequestMapping(CRUDControllerConfig.STD_MANAGE_COMMAND)
 public ModelAndView manage(Locale locale) {
   ModelAndView model = super.manage(locale);
   model.addObject(
       "types", I18nEnumerationHelper.getLocalizedValues(TypeEnumeration.class, locale));
   return model;
 }
Beispiel #2
0
 /** {@inheritDoc} */
 public AccountNumber getSubmittedEntity() {
   AccountNumber accountNumber = getEntity();
   Long accountId = (Long) (FlowContextHolder.getContext().peek()).getAttribute("id");
   accountNumber.setAccount(EntityWithIdHelper.createEntity(Account.class, accountId));
   accountNumber.setNotesCollection(getNotesCollection());
   accountNumber.setType(EntityWithIdHelper.createEntity(Type.class, typeId));
   accountNumber.setStatus(I18nEnumerationHelper.getByName(AccountNumberStatus.class, status));
   return accountNumber;
 }
Beispiel #3
0
 /** {@inheritDoc} */
 public Account getSubmittedEntity() {
   Account account = getEntity();
   account.setType(EntityWithIdHelper.createEntity(Type.class, typeId));
   account.setAccountNumberCollection(
       EntityWithIdHelper.createEntities(AccountNumber.class, accountNumberIds));
   account.setExternalIdentifierCollection(
       EntityWithIdHelper.createEntities(ExternalIdentifier.class, externalIdentifierIds));
   account.setLaboratory(EntityWithIdHelper.createEntity(Laboratory.class, laboratoryId));
   account.setNotesCollection(getNotesCollection());
   account.setOrganization(EntityWithIdHelper.createEntity(Organization.class, organizationId));
   account.setStatus(I18nEnumerationHelper.getByName(AccountStatus.class, status));
   return account;
 }
Beispiel #4
0
 /** {@inheritDoc} */
 public ModelAndView completeEditModel(ModelAndView model, Locale locale) {
   model.addObject(
       "typeStatuses", I18nEnumerationHelper.getLocalizedValues(TypeStatus.class, locale));
   return model;
 }