* @package taoDelivery */ interface AssignmentService { const SERVICE_ID = 'taoDelivery/assignment'; /** * @deprecated please use SERVICE_ID */ const CONFIG_ID = 'taoDelivery/assignment'; /** * Returns the deliveries availableto a user * * @param User $user * @return Assignment[] list of deliveries */ public function getAssignments(User $user); /** * Returns the ids of users assigned to a delivery * * @param string $deliveryId * @return string[] ids of users */ public function getAssignedUsers($deliveryId); /** * Returns whenever or not a user can take a specific delivery * * @param string $deliveryIdentifier * @param User $user * @return boolean */ public function isDeliveryExecutionAllowed($deliveryIdentifier, User $user); /** * Returns the serviecall to start the delivery * * @deprecated Please use RuntimeService::getRuntime() as it is "less" deprecated * @param string $deliveryId * @return \tao_models_classes_service_ServiceCall */ public function getRuntime($deliveryId); // no longer available: onDelete() please use eventManager }