Package com.activeviam.builders
Class StartBuilding.Builder
- java.lang.Object
-
- com.activeviam.builders.StartBuilding.Builder
-
- Enclosing class:
- StartBuilding
public static class StartBuilding.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationWithDatastorebuild()Builds the whole application.ApplicationWithDatastorebuildAndStart()Builds the whole application and starts immediately the ActivePivot manager if there is one.StartBuilding.BuilderwithBranchPermissionsManager(@NonNull IBranchPermissionsManager branchPermissionsManager)Specifies a custom branch permissions manager.StartBuilding.BuilderwithDatastore(IDatastoreSchemaDescription datastore)Builds a Datastore for the application with the given description.StartBuilding.BuilderwithEpochManager(@NonNull IAdvancedEpochManager epochManager)Sets the epoch manager to use for application components.StartBuilding.BuilderwithEpochPolicy(@NonNull IEpochManagementPolicy policy)Sets the epoch policy to use for application components.StartBuilding.BuilderwithManager(IActivePivotManagerDescription manager)Builds an ActivePivot Manager from with the given description.StartBuilding.BuilderwithoutBranchRestrictions()Uses a branch permissions manager that allows all users to create, read and edit all branches.
-
-
-
Method Detail
-
withDatastore
public StartBuilding.Builder withDatastore(IDatastoreSchemaDescription datastore)
Builds a Datastore for the application with the given description.- Returns:
- this builder
-
withManager
public StartBuilding.Builder withManager(IActivePivotManagerDescription manager)
Builds an ActivePivot Manager from with the given description.One does not need to call this method when only a Datastore needs to be created.
- Returns:
- this builder
-
withEpochPolicy
public StartBuilding.Builder withEpochPolicy(@NonNull @NonNull IEpochManagementPolicy policy)
Sets the epoch policy to use for application components.- Returns:
- this builder
- See Also:
KeepLastEpochPolicy,KeepAllEpochPolicy
-
withEpochManager
public StartBuilding.Builder withEpochManager(@NonNull @NonNull IAdvancedEpochManager epochManager)
Sets the epoch manager to use for application components.Prefer using
withEpochPolicy(IEpochManagementPolicy)if possible.- Returns:
- this builder
-
withBranchPermissionsManager
public StartBuilding.Builder withBranchPermissionsManager(@NonNull @NonNull IBranchPermissionsManager branchPermissionsManager)
Specifies a custom branch permissions manager.- Returns:
- this builder
- See Also:
withoutBranchRestrictions()
-
withoutBranchRestrictions
public StartBuilding.Builder withoutBranchRestrictions()
Uses a branch permissions manager that allows all users to create, read and edit all branches.- Returns:
- this builder
- See Also:
withBranchPermissionsManager(IBranchPermissionsManager)
-
build
public ApplicationWithDatastore build()
Builds the whole application.
-
buildAndStart
public ApplicationWithDatastore buildAndStart()
Builds the whole application and starts immediately the ActivePivot manager if there is one.
-
-