Interface RebindService
- All Known Implementing Classes:
RebindServiceImpl
Deprecated.
Takes the
rebind values as received from the client and sets the values on the entity.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidrebind(RebindValue[] values) Deprecated.Overloaded method where scope=null, fillNonNullable=true, fillEntityDefaults=true.voidrebind(RebindValue[] values, @Nullable RebindService.Scope scope, boolean fillNonNullable, boolean fillEntityDefaults) Deprecated.Rebinds the given values by finding/creating the affected entities and putting the values on them.rebindAndGetAffectedEntities(RebindValue[] values, @Nullable RebindService.Scope scope, boolean fillNonNullable, boolean fillEntityDefaults) Deprecated.Returns all affected entities.rebindAndGetEntity(RebindValue[] values, @Nullable RebindService.Scope scope, boolean fillNonNullable, boolean fillEntityDefaults, Predicate<Entity> predicate) Deprecated.Selects the returned entity with a predicate.rebindAndGetEntity(RebindValue[] values, @Nullable RebindService.Scope scope, String expectedEntityType) Deprecated.Overloaded method where fillNonNullable=true, fillEntityDefaults=true.rebindAndGetEntity(RebindValue[] values, @Nullable RebindService.Scope scope, String expectedEntityType, boolean fillNonNullable, boolean fillEntityDefaults) Deprecated.Same asrebind(ch.tocco.nice2.netui.api.bind.entity.RebindValue[], ch.tocco.nice2.netui.api.bind.entity.RebindService.Scope, boolean, boolean)but also returns the "primary" Entity.rebindAndGetEntity(RebindValue[] values, String expectedEntityType) Deprecated.Same asrebind(ch.tocco.nice2.netui.api.bind.entity.RebindValue[], ch.tocco.nice2.netui.api.bind.entity.RebindService.Scope, boolean, boolean)but also returns the "primary" Entity.rebindAndGetEntity(RebindValue[] values, String expectedEntityType, boolean fillNonNullable, boolean fillEntityDefaults) Deprecated.Same asrebind(ch.tocco.nice2.netui.api.bind.entity.RebindValue[], ch.tocco.nice2.netui.api.bind.entity.RebindService.Scope, boolean, boolean)but also returns the "primary" Entity.rebindAndGetEntityOneOfExpectedTypes(RebindValue[] values, @Nullable RebindService.Scope scope, boolean fillNonNullable, boolean fillEntityDefaults, String... expectedEntityTypes) Deprecated.Same asrebindAndGetEntity(ch.tocco.nice2.netui.api.bind.entity.RebindValue[], java.lang.String)but returns the first Entity found in one of the expected types.rebindAndGetEntityOneOfExpectedTypes(RebindValue[] values, @Nullable RebindService.Scope scope, String... expectedEntityTypes) Deprecated.Overloaded method where fillNonNullable=true, fillEntityDefaults=true.rebindAndGetEntityOneOfExpectedTypes(RebindValue[] values, String... expectedEntityTypes) Deprecated.Overloaded method where fillNonNullable=true, fillEntityDefaults=true.
-
Method Details
-
rebindAndGetEntity
Entity rebindAndGetEntity(RebindValue[] values, String expectedEntityType) throws UnresolvableUriException, UriStoreException, URISyntaxException, RebindException Deprecated.Same asrebind(ch.tocco.nice2.netui.api.bind.entity.RebindValue[], ch.tocco.nice2.netui.api.bind.entity.RebindService.Scope, boolean, boolean)but also returns the "primary" Entity.- Returns:
- The first Entity of type expectedEntityType. If there could be more then one then you may wish to either use your own listeners to get what you need, or refactor/add functionality.
- Throws:
RebindException- For example if there is no Entity touched of theexpectedEntityType.UnresolvableUriExceptionUriStoreExceptionURISyntaxException
-
rebindAndGetEntity
Entity rebindAndGetEntity(RebindValue[] values, String expectedEntityType, boolean fillNonNullable, boolean fillEntityDefaults) throws UnresolvableUriException, UriStoreException, URISyntaxException, RebindException Deprecated.Same asrebind(ch.tocco.nice2.netui.api.bind.entity.RebindValue[], ch.tocco.nice2.netui.api.bind.entity.RebindService.Scope, boolean, boolean)but also returns the "primary" Entity.- Returns:
- The first Entity of type expectedEntityType. If there could be more then one then you may wish to either use your own listeners to get what you need, or refactor/add functionality.
- Throws:
RebindException- For example if there is no Entity touched of theexpectedEntityType.UnresolvableUriExceptionUriStoreExceptionURISyntaxException
-
rebindAndGetEntity
Entity rebindAndGetEntity(RebindValue[] values, @Nullable @Nullable RebindService.Scope scope, String expectedEntityType, boolean fillNonNullable, boolean fillEntityDefaults) throws UnresolvableUriException, UriStoreException, URISyntaxException, RebindException Deprecated.Same asrebind(ch.tocco.nice2.netui.api.bind.entity.RebindValue[], ch.tocco.nice2.netui.api.bind.entity.RebindService.Scope, boolean, boolean)but also returns the "primary" Entity.- Returns:
- The first Entity of type expectedEntityType. If there could be more then one then you may wish to either use your own listeners to get what you need, or refactor/add functionality.
- Throws:
RebindException- For example if there is no Entity touched of theexpectedEntityType.UnresolvableUriExceptionUriStoreExceptionURISyntaxException
-
rebindAndGetEntity
Entity rebindAndGetEntity(RebindValue[] values, @Nullable @Nullable RebindService.Scope scope, String expectedEntityType) throws UnresolvableUriException, UriStoreException, URISyntaxException, RebindException Deprecated.Overloaded method where fillNonNullable=true, fillEntityDefaults=true.- Throws:
UnresolvableUriExceptionUriStoreExceptionURISyntaxExceptionRebindException- See Also:
-
rebindAndGetEntityOneOfExpectedTypes
Entity rebindAndGetEntityOneOfExpectedTypes(RebindValue[] values, @Nullable @Nullable RebindService.Scope scope, boolean fillNonNullable, boolean fillEntityDefaults, String... expectedEntityTypes) throws UnresolvableUriException, UriStoreException, URISyntaxException, RebindException Deprecated.Same asrebindAndGetEntity(ch.tocco.nice2.netui.api.bind.entity.RebindValue[], java.lang.String)but returns the first Entity found in one of the expected types. You have to manually check of which type the returned entity is.
Hint: This method is made for public forms where it is not clear what entity type will be affected resp. changed. Example: The user can change values of user entity and/or address entity and/or membership entity on the same form.- Returns:
- The first Entity of one of the type expectedEntityTypes.
- Throws:
RebindException- For example if there is no Entity touched one of theexpectedEntityTypes.UnresolvableUriExceptionUriStoreExceptionURISyntaxException
-
rebindAndGetEntityOneOfExpectedTypes
Entity rebindAndGetEntityOneOfExpectedTypes(RebindValue[] values, String... expectedEntityTypes) throws UnresolvableUriException, UriStoreException, URISyntaxException, RebindException Deprecated.Overloaded method where fillNonNullable=true, fillEntityDefaults=true.- Throws:
UnresolvableUriExceptionUriStoreExceptionURISyntaxExceptionRebindException- See Also:
-
rebindAndGetEntityOneOfExpectedTypes
Entity rebindAndGetEntityOneOfExpectedTypes(RebindValue[] values, @Nullable @Nullable RebindService.Scope scope, String... expectedEntityTypes) throws UnresolvableUriException, UriStoreException, URISyntaxException, RebindException Deprecated.Overloaded method where fillNonNullable=true, fillEntityDefaults=true.- Throws:
UnresolvableUriExceptionUriStoreExceptionURISyntaxExceptionRebindException- See Also:
-
rebindAndGetEntity
Entity rebindAndGetEntity(RebindValue[] values, @Nullable @Nullable RebindService.Scope scope, boolean fillNonNullable, boolean fillEntityDefaults, Predicate<Entity> predicate) throws UnresolvableUriException, UriStoreException, URISyntaxException, RebindException Deprecated.Selects the returned entity with a predicate. Predicate must be true for exactly one entity in any case. -
rebindAndGetAffectedEntities
Collection<Entity> rebindAndGetAffectedEntities(RebindValue[] values, @Nullable @Nullable RebindService.Scope scope, boolean fillNonNullable, boolean fillEntityDefaults) throws UnresolvableUriException, UriStoreException, URISyntaxException, RebindException Deprecated.Returns all affected entities. -
rebind
void rebind(RebindValue[] values, @Nullable @Nullable RebindService.Scope scope, boolean fillNonNullable, boolean fillEntityDefaults) throws UnresolvableUriException, UriStoreException, URISyntaxException, ObjectOutdatedException Deprecated.Rebinds the given values by finding/creating the affected entities and putting the values on them.You can still set up your own listeners (entity-creating etc).
- Parameters:
scope- Do not passnullfor scope 'copy', it is essential to know that scope.fillNonNullable- Handles this case automatically for you.fillEntityDefaults- Handles this case automatically for you.- Throws:
UnresolvableUriExceptionUriStoreExceptionURISyntaxExceptionObjectOutdatedException
-
rebind
void rebind(RebindValue[] values) throws UnresolvableUriException, UriStoreException, URISyntaxException, ObjectOutdatedException Deprecated.Overloaded method where scope=null, fillNonNullable=true, fillEntityDefaults=true.- Throws:
UnresolvableUriExceptionUriStoreExceptionURISyntaxExceptionObjectOutdatedException- See Also:
-