Package dev.orne.beans
Interface IdentityBean
- All Known Subinterfaces:
WritableIdentityBean
- All Known Implementing Classes:
BaseIdentityBean
@API(status=STABLE,
since="0.1")
@BeanReference(RequireIdentity.class)
public interface IdentityBean
Interface representing a bean with identity. Allows hiding the actual
identity implementation from referencing users.
- Since:
- 0.1
- Version:
- 1.0, 2020-05
- Author:
- (w) Iker Hernaez
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Validation group to require a valid identity. -
Method Summary
Modifier and TypeMethodDescription@NotNull(groups=RequireIdentity.class) @Valid @ConvertGroup(from=RequireIdentity.class,to=javax.validation.groups.Default.class) Identity
Returns the instance's identity.
-
Method Details
-
getIdentity
@NotNull(groups=RequireIdentity.class) @Valid @ConvertGroup(from=RequireIdentity.class, to=javax.validation.groups.Default.class) @NotNull(groups=RequireIdentity.class) @Valid @ConvertGroup(from=RequireIdentity.class,to=javax.validation.groups.Default.class) Identity getIdentity()Returns the instance's identity.- Returns:
- The instance's identity
-