CarpDeploymentService class
A DeploymentService that talks to the CARP Web Services.
- Inheritance
-
- Object
- CarpBaseService
- CarpDeploymentService
Constructors
- CarpDeploymentService()
-
Returns the singleton default instance of the CarpDeploymentService.
Before this instance can be used, it must be configured using the
configure method.
factory
Properties
- app → CarpApp
-
The CARP app associated with the CARP Web Service.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
The headers for any authenticated HTTP REST call to a CarpBaseService.
no setterinherited
- isConfigured → bool
-
Has this service been configured?
no setterinherited
- rpcEndpointName → String
-
The endpoint name for this service at CARP.
no setteroverride
- rpcEndpointUri → String
-
The URL for this service's endpoint at CARP.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- study ↔ SmartphoneStudy?
-
The study associated with this service, if available.
Can be set directly or as part of the configure methods.
getter/setter pairinherited
Methods
-
configure(
CarpApp app, [SmartphoneStudy? study]) → void -
Configure the this instance of a Carp Service.
inherited
-
configureFrom(
CarpBaseService service) → void -
Configure from another
servicewhich has already been configured.inherited -
createStudyDeployment(
StudyProtocol protocol, [List< ParticipantInvitation> invitations = const [], String? id, Map<String, DeviceRegistration> ? connectedDevicePreregistrations]) → Future<StudyDeploymentStatus> -
Instantiate a study deployment for a given
StudyProtocolwith participants defined ininvitations.override -
deployment(
[String? studyDeploymentId]) → DeploymentReference -
Gets a DeploymentReference for a
studyDeploymentId.studyDeploymentIdcan be omitted if specified as part of this service's study. -
deviceDeployed(
String studyDeploymentId, String masterDeviceRoleName, DateTime deviceDeploymentLastUpdatedOn) → Future< StudyDeploymentStatus> -
Indicate to stakeholders in the study deployment with
studyDeploymentIdthat the device withprimaryDeviceRoleNamewas deployed successfully, using the deployment with the specifieddeviceDeploymentLastUpdatedOn, i.e., that the study deployment was loaded on the device and that the necessary runtime is available to run it.override -
getDeviceDeploymentFor(
String studyDeploymentId, String primaryDeviceRoleName) → Future< SmartphoneDeployment> -
Get the deployment configuration for the primary device with
primaryDeviceRoleNamein the study deployment withstudyDeploymentId. Returns null ifstudyDeploymentIdis not found.override -
getStudyDeploymentId(
[String? studyDeploymentId]) → String -
Resolve study deployment ID.
inherited
-
getStudyDeploymentStatus(
String studyDeploymentId) → Future< StudyDeploymentStatus> -
Get the status for a study deployment with the given
studyDeploymentId. Returns null ifstudyDeploymentIdis not found.override -
getStudyDeploymentStatusList(
List< String> studyDeploymentIds) → Future<List< StudyDeploymentStatus> > -
Get the statuses for a set of deployments with the specified
studyDeploymentIds.override -
getStudyId(
[String? studyId]) → String -
Resolve study ID.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerDevice(
String studyDeploymentId, String deviceRoleName, DeviceRegistration registration) → Future< StudyDeploymentStatus> -
Register the device with the specified
deviceRoleNamefor the study deployment withstudyDeploymentId.override -
removeStudyDeployments(
Set< String> studyDeploymentIds) → Future<Set< String> > -
Remove study deployments with the given
studyDeploymentIds. This also removes all data related to the study deployments.override -
stop(
String studyDeploymentId) → Future< StudyDeploymentStatus> -
Permanently stop the study deployment with the specified
studyDeploymentId.override -
toString(
) → String -
A string representation of this object.
inherited
-
unregisterDevice(
String studyDeploymentId, String deviceRoleName) → Future< StudyDeploymentStatus> -
Unregister the device with the specified
deviceRoleNamefor the study deployment withstudyDeploymentId. Returns null ifstudyDeploymentIdis not found.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited