Interface IEntityContextFactory
- All Superinterfaces:
Serializable
A factory interface for creating new instances of
IEntityContext.- Since:
- 8.5.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic @interfaceCDI qualifier forIEntityContextFactorythat indicates a contextual entity context factory is desired.static @interfaceCDI qualifier forIEntityContextFactorythat indicates an isolated entity context factory is desired. -
Method Summary
Modifier and TypeMethodDescriptionnewEntityContext(IUser user) Creates a newIEntityContextfor the given user.newEntityContext(UserContext userContext) Creates a newIEntityContextfor the given user.
-
Method Details
-
newEntityContext
Creates a newIEntityContextfor the given user.- Parameters:
user- The user for whom the context is created. If the user is null, uses an anonymous user context.- Returns:
- A new instance of
IEntityContextassociated with the specified user.
-
newEntityContext
Creates a newIEntityContextfor the given user.- Parameters:
userContext- The user for whom the context is created. If the user is null, uses an anonymous user context.- Returns:
- A new instance of
IEntityContextassociated with the specified user.
-