Package de.xima.fc.interfaces
Interface IEntityContextFactory
-
- All Superinterfaces:
Serializable
public interface IEntityContextFactory extends Serializable
A factory interface for creating new instances ofIEntityContext.- Since:
- 8.5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIEntityContextFactory.ContextualCDI qualifier forIEntityContextFactorythat indicates a contextual entity context factory is desired.static interfaceIEntityContextFactory.IsolatedCDI qualifier forIEntityContextFactorythat indicates an isolated entity context factory is desired.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IEntityContextnewEntityContext(IUser user)Creates a newIEntityContextfor the given user.IEntityContextnewEntityContext(UserContext userContext)Creates a newIEntityContextfor the given user.
-
-
-
Method Detail
-
newEntityContext
IEntityContext newEntityContext(IUser user)
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
IEntityContext newEntityContext(UserContext userContext)
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.
-
-