@Service public class DataCacheStudyRoutingService extends Object implements StudyRoutingService
Constructor and Description |
---|
DataCacheStudyRoutingService() |
Modifier and Type | Method and Description |
---|---|
boolean |
assign(String studyInstanceUid,
String projectId,
String userId)
Creates a new routing configuration for the indicated attributes.
|
boolean |
assign(String studyInstanceUid,
String projectId,
String subjectId,
String userId)
Creates a new routing configuration for the indicated attributes.
|
boolean |
assign(String studyInstanceUid,
String projectId,
String subjectId,
String label,
String userId)
Creates a new routing configuration for the indicated attributes.
|
boolean |
close(String studyInstanceUid)
Closes the routing configuration for the indicated study instance UID.
|
Map<String,Map<String,String>> |
closeAll()
Closes all routing configurations on the site.
|
Map<String,Map<String,String>> |
findAllRoutings()
Finds all active routing configurations.
|
Map<String,Map<String,String>> |
findProjectRoutings(String projectId)
Finds all active routing configurations for a particular project.
|
Map<String,Map<String,String>> |
findRoutingsByAttribute(String attribute,
String value)
Finds all active routing configurations for a particular value of a particular attribute.
|
Map<String,String> |
findStudyRouting(String studyInstanceUid)
Finds the active routing configuration for the indicated study instance UID.
|
Map<String,Map<String,String>> |
findUserRoutings(String userId)
Finds all active routing configurations created by a particular user.
|
boolean |
update(String studyInstanceUid,
Map<String,String> configuration)
Updates the configuration for the indicated study instance UID.
|
public boolean assign(String studyInstanceUid, String projectId, String userId)
update(String,
java.util.Map)
method.assign
in interface StudyRoutingService
studyInstanceUid
- The study instance UID to be assigned.projectId
- The ID of the destination project.userId
- The login name for the user who created the routing configurations.public boolean assign(String studyInstanceUid, String projectId, String subjectId, String userId)
update(String,
java.util.Map)
method.assign
in interface StudyRoutingService
studyInstanceUid
- The study instance UID to be assigned.projectId
- The ID of the destination project.subjectId
- The ID of the destination subject.userId
- The login name for the user who created the routing configurations.public boolean assign(String studyInstanceUid, String projectId, String subjectId, String label, String userId)
update(String,
java.util.Map)
method.assign
in interface StudyRoutingService
studyInstanceUid
- The study instance UID to be assigned.projectId
- The ID of the destination project.subjectId
- The ID of the destination subject.label
- The label for the session.userId
- The login name for the user who created the routing configurations.public boolean update(String studyInstanceUid, Map<String,String> configuration)
assign(String, String, String)
, assign(String, String, String, String)
,
or assign(String, String, String, String, String)
method.update
in interface StudyRoutingService
studyInstanceUid
- The study instance UID of the configuration to be updated.configuration
- The attribute keys and values to be updated.public Map<String,String> findStudyRouting(String studyInstanceUid)
findStudyRouting
in interface StudyRoutingService
studyInstanceUid
- The study instance UID to query.public Map<String,Map<String,String>> findProjectRoutings(String projectId)
findProjectRoutings
in interface StudyRoutingService
projectId
- The ID of the destination project.public Map<String,Map<String,String>> findUserRoutings(String userId)
findUserRoutings
in interface StudyRoutingService
userId
- The login name for the user who created the routing configurations.public Map<String,Map<String,String>> findRoutingsByAttribute(String attribute, String value)
findRoutingsByAttribute
in interface StudyRoutingService
attribute
- The key for the attribute on which you wish to search.value
- The value of the attribute on which you wish to search.public Map<String,Map<String,String>> findAllRoutings()
findAllRoutings
in interface StudyRoutingService
public boolean close(String studyInstanceUid)
close
in interface StudyRoutingService
studyInstanceUid
- The UID of the routing configuration to close.public Map<String,Map<String,String>> closeAll()
closeAll
in interface StudyRoutingService
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.