cst.loggingTool.persistenceLayer
Class ProductionLoggingService
java.lang.Object
cst.common.persistenceLayer.AbstractProductionService
cst.loggingTool.persistenceLayer.ProductionLoggingService
- All Implemented Interfaces:
- CSTServiceAPI, LoggingServiceAPI
public class ProductionLoggingService
- extends AbstractProductionService
- implements LoggingServiceAPI
Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
Method Summary |
java.util.ArrayList<java.lang.String> |
applyCoreFieldAndCompletionFilter(User user,
SubjectAttributeFilterCommand coreFieldFilter,
CompletionFilterCommand completionFilter)
|
java.util.ArrayList<java.lang.String> |
applyCoreFieldAndDataTypeFilter(User user,
SubjectAttributeFilterCommand coreFieldFilter,
DateFilterCommand dataTypeFilter)
|
java.util.ArrayList<java.lang.String> |
applyOnlyCompletionFilter(User user,
CompletionFilterCommand completionFilter)
|
java.util.ArrayList<java.lang.String> |
applyOnlyDataTypeFilter(User user,
DateFilterCommand dataTypeFilter)
|
java.util.ArrayList<java.lang.String> |
applyOnlySubjectAttributeFilter(User user,
SubjectAttributeFilterCommand completionFilter)
|
java.util.ArrayList<java.lang.String> |
applyShowAllFilter(User user)
|
java.util.ArrayList<TrialActivityModel> |
getAllTrialActivityModels(User user,
java.lang.String trialActivityDataStorageName)
|
java.util.ArrayList<TrialActivityChange> |
getTrialActivityChangesForSubject(User user,
java.lang.String trialSubjectIdentifier)
|
java.util.ArrayList<TrialActivityChange> |
getTrialActivityChangesForUser(User user,
User changeAuthor)
|
TrialActivityModel |
getTrialActivityModel(User user,
java.lang.String trialSubjectIdentifier,
java.lang.String trialActivityDataStorageName)
|
SubjectInformationReportAPI |
getTrialSubjectInformation(User user,
java.lang.String trialSubjectIdentifier)
|
java.lang.String[] |
getValuesForSubjectAttribute(User user,
java.lang.String coreFieldDataStorageName)
|
int |
importTrialActivityData(User user,
java.lang.String trialActivityDataStorageName,
java.util.ArrayList<TrialActivityModel> newTrialActivityModels,
java.lang.String dataSourceName)
|
boolean |
trialSubjectModelExists(User user,
java.lang.String trialSubjectIdentifier)
|
void |
updateChangeHistory(User user,
TrialActivityChange trialActivityChange)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductionLoggingService
public ProductionLoggingService()
getTrialSubjectInformation
public SubjectInformationReportAPI getTrialSubjectInformation(User user,
java.lang.String trialSubjectIdentifier)
throws CSTException
- Specified by:
getTrialSubjectInformation
in interface LoggingServiceAPI
- Throws:
CSTException
updateChangeHistory
public void updateChangeHistory(User user,
TrialActivityChange trialActivityChange)
throws CSTException
- Specified by:
updateChangeHistory
in interface LoggingServiceAPI
- Throws:
CSTException
getAllTrialActivityModels
public java.util.ArrayList<TrialActivityModel> getAllTrialActivityModels(User user,
java.lang.String trialActivityDataStorageName)
throws CSTException
- Specified by:
getAllTrialActivityModels
in interface LoggingServiceAPI
- Throws:
CSTException
getTrialActivityChangesForUser
public java.util.ArrayList<TrialActivityChange> getTrialActivityChangesForUser(User user,
User changeAuthor)
throws CSTException
- Specified by:
getTrialActivityChangesForUser
in interface LoggingServiceAPI
- Throws:
CSTException
getTrialActivityChangesForSubject
public java.util.ArrayList<TrialActivityChange> getTrialActivityChangesForSubject(User user,
java.lang.String trialSubjectIdentifier)
throws CSTException
- Specified by:
getTrialActivityChangesForSubject
in interface LoggingServiceAPI
- Throws:
CSTException
applyShowAllFilter
public java.util.ArrayList<java.lang.String> applyShowAllFilter(User user)
throws CSTException
- Specified by:
applyShowAllFilter
in interface LoggingServiceAPI
- Throws:
CSTException
applyOnlyCompletionFilter
public java.util.ArrayList<java.lang.String> applyOnlyCompletionFilter(User user,
CompletionFilterCommand completionFilter)
throws CSTException
- Specified by:
applyOnlyCompletionFilter
in interface LoggingServiceAPI
- Throws:
CSTException
applyOnlySubjectAttributeFilter
public java.util.ArrayList<java.lang.String> applyOnlySubjectAttributeFilter(User user,
SubjectAttributeFilterCommand completionFilter)
throws CSTException
- Specified by:
applyOnlySubjectAttributeFilter
in interface LoggingServiceAPI
- Throws:
CSTException
applyOnlyDataTypeFilter
public java.util.ArrayList<java.lang.String> applyOnlyDataTypeFilter(User user,
DateFilterCommand dataTypeFilter)
throws CSTException
- Specified by:
applyOnlyDataTypeFilter
in interface LoggingServiceAPI
- Throws:
CSTException
applyCoreFieldAndDataTypeFilter
public java.util.ArrayList<java.lang.String> applyCoreFieldAndDataTypeFilter(User user,
SubjectAttributeFilterCommand coreFieldFilter,
DateFilterCommand dataTypeFilter)
throws CSTException
- Specified by:
applyCoreFieldAndDataTypeFilter
in interface LoggingServiceAPI
- Throws:
CSTException
applyCoreFieldAndCompletionFilter
public java.util.ArrayList<java.lang.String> applyCoreFieldAndCompletionFilter(User user,
SubjectAttributeFilterCommand coreFieldFilter,
CompletionFilterCommand completionFilter)
throws CSTException
- Specified by:
applyCoreFieldAndCompletionFilter
in interface LoggingServiceAPI
- Throws:
CSTException
getValuesForSubjectAttribute
public java.lang.String[] getValuesForSubjectAttribute(User user,
java.lang.String coreFieldDataStorageName)
throws CSTException
- Specified by:
getValuesForSubjectAttribute
in interface LoggingServiceAPI
- Throws:
CSTException
trialSubjectModelExists
public boolean trialSubjectModelExists(User user,
java.lang.String trialSubjectIdentifier)
throws CSTException
- Specified by:
trialSubjectModelExists
in interface LoggingServiceAPI
- Throws:
CSTException
getTrialActivityModel
public TrialActivityModel getTrialActivityModel(User user,
java.lang.String trialSubjectIdentifier,
java.lang.String trialActivityDataStorageName)
throws CSTException
- Specified by:
getTrialActivityModel
in interface LoggingServiceAPI
- Throws:
CSTException
importTrialActivityData
public int importTrialActivityData(User user,
java.lang.String trialActivityDataStorageName,
java.util.ArrayList<TrialActivityModel> newTrialActivityModels,
java.lang.String dataSourceName)
throws CSTException
- Specified by:
importTrialActivityData
in interface LoggingServiceAPI
- Throws:
CSTException