Package com.activeviam.builders
Class StartBuilding.Builder
java.lang.Object
com.activeviam.builders.StartBuilding.Builder
- Enclosing class:
- StartBuilding
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the whole application.Builds the whole application and starts immediately the ActivePivot manager if there is one.withBranchPermissionsManager(@NonNull IBranchPermissionsManager branchPermissionsManager) Specifies a custom branch permissions manager.withDatastore(IDatastoreSchemaDescription datastore) Builds a Datastore for the application with the given description.withEpochManager(@NonNull IAdvancedEpochManager epochManager) Sets the epoch manager to use for application components.withEpochPolicy(@NonNull IEpochManagementPolicy policy) Sets the epoch policy to use for application components.Builds an ActivePivot Manager from with the given description.Uses a branch permissions manager that allows all users to create, read and edit all branches.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withDatastore
Builds a Datastore for the application with the given description.- Returns:
- this builder
-
withManager
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
Sets the epoch policy to use for application components.- Returns:
- this builder
- See Also:
-
withEpochManager
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
Uses a branch permissions manager that allows all users to create, read and edit all branches.- Returns:
- this builder
- See Also:
-
build
Builds the whole application. -
buildAndStart
Builds the whole application and starts immediately the ActivePivot manager if there is one.
-