uk.gov.hmrc.mongo.workitem
Members list
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Operations.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object InProgressobject ToDotrait ResultStatusobject Cancelledobject Deferredobject Duplicateobject Failedobject Ignoredobject PermanentlyFailedobject SucceededShow all
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ProcessingStatus.type
Attributes
- Supertypes
- Known subtypes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
StatusUpdateResult.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
WorkItemFields.type
If you have multiple lifecycles on a WorkItem, you can use the WorkItemModuleRepository to interact with those lifecycles. It will namespace the lifecycle fields with the provided moduleName. It assumes creation of WorkItems are made through another view (e.g. a standard WorkItemRepository), it will only allow interacting with the WorkItem lifecycle, and will throw runtime exceptions if pushNew or pushNewBatch are called.
If you have multiple lifecycles on a WorkItem, you can use the WorkItemModuleRepository to interact with those lifecycles. It will namespace the lifecycle fields with the provided moduleName. It assumes creation of WorkItems are made through another view (e.g. a standard WorkItemRepository), it will only allow interacting with the WorkItem lifecycle, and will throw runtime exceptions if pushNew or pushNewBatch are called.
Attributes
- Companion
- object
- Supertypes
-
class WorkItemRepository[T]trait MetricSourcetrait FindById[T]trait Canceltrait MongoDatabaseCollectionclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
The repository to set and get the work item's for processing. See pushNew for creating work items, and pullOutstanding for retrieving them.
The repository to set and get the work item's for processing. See pushNew for creating work items, and pullOutstanding for retrieving them.
Value parameters
- collectionName
-
the name of the mongo collection.
- extraCodecs
-
optional - to support more types
- extraIndexes
-
optional - to add additional indexes
- itemFormat
-
a play Json format to map the item to mongo entities
- replaceIndexes
-
optional - default is true If true, existing indices should be removed/updated to match the provided indices. If false, any old indices are left behind, and indices with changed definitions will throw IndexConflict exceptions.
- workItemFields
-
the internal fields for WorkItem, allowing customisation
Attributes
- Supertypes
- Known subtypes
-
class WorkItemModuleRepository[T]