@Service public class ProtocolViewerServiceImpl extends Object implements ProtocolViewerService
| Constructor and Description |
|---|
ProtocolViewerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToStudyDefinitionDraftForCurrentUser(String resourceUri,
String catalogId)
Add a catalog item or catalog group (implies all items in a group) to the study definition draft
|
StudyDefinition |
createStudyDefinitionDraftForCurrentUser(String catalogId)
Creates a study definition draft for the current logged in user
|
void |
createStudyDefinitionDraftXlsForCurrentUser(OutputStream outputStream,
String catalogId)
Write the study definition draft for the current user to the given stream
|
Iterable<CatalogMeta> |
getCatalogs()
Gets all active catalog meta data
|
StudyDefinition |
getStudyDefinitionDraftForCurrentUser(String catalogId)
Gets the current study definition draft for the current logged in user
|
StudyDefinition |
getStudyDefinitionForCurrentUser(Integer id)
Returns the given order for the current user
|
List<StudyDefinition> |
getStudyDefinitionsForCurrentUser()
Returns order for the current user
|
void |
removeFromStudyDefinitionDraftForCurrentUser(String resourceUri,
String catalogId)
Remove a catalog item or catalog group (implies all items in a group) from the study definition draft
|
void |
submitStudyDefinitionDraftForCurrentUser(String studyName,
javax.servlet.http.Part requestForm,
String catalogId)
Place an order for the current user
|
@PreAuthorize(value="hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_READ_PROTOCOLVIEWER\')") @Transactional(readOnly=true) public Iterable<CatalogMeta> getCatalogs()
ProtocolViewerServicegetCatalogs in interface ProtocolViewerService@PreAuthorize(value="isAuthenticated() and hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_READ_PROTOCOLVIEWER\')") @Transactional(readOnly=true) public StudyDefinition getStudyDefinitionDraftForCurrentUser(String catalogId) throws UnknownCatalogException
ProtocolViewerServicegetStudyDefinitionDraftForCurrentUser in interface ProtocolViewerServiceUnknownCatalogException@PreAuthorize(value="isAuthenticated() and hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_WRITE_PROTOCOLVIEWER\')") @Transactional public StudyDefinition createStudyDefinitionDraftForCurrentUser(String catalogId) throws UnknownCatalogException
ProtocolViewerServicecreateStudyDefinitionDraftForCurrentUser in interface ProtocolViewerServicecatalogId - id of the catalog used for this study definitionUnknownCatalogException@PreAuthorize(value="isAuthenticated() and hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_READ_PROTOCOLVIEWER\')") @Transactional(readOnly=true) public List<StudyDefinition> getStudyDefinitionsForCurrentUser()
ProtocolViewerServicegetStudyDefinitionsForCurrentUser in interface ProtocolViewerService@PreAuthorize(value="isAuthenticated() and hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_READ_PROTOCOLVIEWER\')") @Transactional(readOnly=true) public StudyDefinition getStudyDefinitionForCurrentUser(Integer id) throws UnknownStudyDefinitionException
ProtocolViewerServicegetStudyDefinitionForCurrentUser in interface ProtocolViewerServiceUnknownStudyDefinitionException@PreAuthorize(value="isAuthenticated() and hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_WRITE_PROTOCOLVIEWER\')")
@Transactional(rollbackFor={javax.mail.MessagingException.class,java.io.IOException.class,UnknownCatalogException.class,UnknownStudyDefinitionException.class})
public void submitStudyDefinitionDraftForCurrentUser(String studyName,
javax.servlet.http.Part requestForm,
String catalogId)
throws javax.mail.MessagingException,
IOException,
UnknownCatalogException,
UnknownStudyDefinitionException
ProtocolViewerServicesubmitStudyDefinitionDraftForCurrentUser in interface ProtocolViewerServicejavax.mail.MessagingExceptionIOExceptionUnknownCatalogExceptionUnknownStudyDefinitionException@PreAuthorize(value="isAuthenticated() and hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_WRITE_PROTOCOLVIEWER\')") @Transactional(rollbackFor=UnknownCatalogException.class) public void addToStudyDefinitionDraftForCurrentUser(String resourceUri, String catalogId) throws UnknownCatalogException
ProtocolViewerServiceaddToStudyDefinitionDraftForCurrentUser in interface ProtocolViewerServiceUnknownCatalogException@PreAuthorize(value="isAuthenticated() and hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_WRITE_PROTOCOLVIEWER\')") @Transactional(rollbackFor=UnknownCatalogException.class) public void removeFromStudyDefinitionDraftForCurrentUser(String resourceUri, String catalogId) throws UnknownCatalogException
ProtocolViewerServiceremoveFromStudyDefinitionDraftForCurrentUser in interface ProtocolViewerServiceUnknownCatalogException@PreAuthorize(value="isAuthenticated() and hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_READ_PROTOCOLVIEWER\')")
@Transactional(rollbackFor={java.io.IOException.class,UnknownCatalogException.class})
public void createStudyDefinitionDraftXlsForCurrentUser(OutputStream outputStream,
String catalogId)
throws IOException,
UnknownCatalogException
ProtocolViewerServicecreateStudyDefinitionDraftXlsForCurrentUser in interface ProtocolViewerServiceIOExceptionUnknownCatalogExceptionCopyright © 2014. All Rights Reserved.