|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmacaw.persistenceLayer.demo.DemonstrationCurationService
macaw.persistenceLayer.demo.DemonstrationRetrievalService
public class DemonstrationRetrievalService
Implements the MacawRetrievalAPI interface as a service which retrieves
all of its data from in-memory objects rather than from a database. This class allows
Macaw to run in a demonstration mode off a pen drive without requiring the client machine
to have MySQL installed.
DemonstrationRetrievalService delegates the implementations
of MacawRetrievalAPI methods to manager classes whose names are prefixed
with "InMemory" (eg: InMemoryVariableManager).
The main duties of this class are
For security reasons, exceptions are caught rather than thrown to the calling class.
| Field Summary |
|---|
| Fields inherited from class macaw.persistenceLayer.demo.DemonstrationCurationService |
|---|
admin, changeEventManager, listChoiceManager, log, ontologyTermFilter, ontologyTermManager, securityValidationService, supportingDocumentFilter, supportingDocumentsManager, userManager, valueLabelManager, variableFilter, variableManager |
| Constructor Summary | |
|---|---|
DemonstrationRetrievalService(SessionProperties sessionProperties)
|
|
DemonstrationRetrievalService(SessionProperties sessionProperties,
boolean automatedTestingMode)
|
|
| Method Summary | |
|---|---|
AliasFilePath |
getAliasFilePath(User user,
java.lang.String cardNumber)
given the name of a logical location for data, returns an AliasFilePath object that can also describe the physical location. |
java.util.ArrayList<AliasFilePath> |
getAliasFilePaths(User user)
Methods for data libraries |
java.util.ArrayList<AliasFilePath> |
getAliasFilePathsMatchingName(User user,
java.lang.String regularExpression)
Searches for all alias file paths whose logical location names contain a phrase. |
java.util.ArrayList<AvailabilityState> |
getAvailabilityStates(User user)
Methods for managing availability states |
java.util.ArrayList<Category> |
getCategories(User user)
|
java.util.ArrayList<Category> |
getCategoriesForVariable(User user,
java.lang.String variableName)
|
java.util.ArrayList<CleaningState> |
getCleaningStates(User user)
Methods for managing cleaning states |
java.util.ArrayList<OntologyTerm> |
getOntologyTerms(User user,
java.lang.String variableName)
return the ontology terms for a given variable |
java.util.ArrayList<SupportingDocument> |
getSupportingDocuments(User user,
java.lang.String variableName)
returns the supporting documents for a given variable |
java.util.ArrayList<User> |
getUnverifiedUsers(User admin)
|
User |
getUserFromEmail(User user,
java.lang.String email)
|
User |
getUserFromID(User user,
java.lang.String userID)
|
java.util.ArrayList<User> |
getUsers(User user)
|
java.util.ArrayList<ValueLabel> |
getValueLabels(User user,
java.lang.String variableName)
returns the value labels associated with a given variable |
Variable |
getVariable(User user,
java.lang.String variableName)
returns a variable record given a variable name |
java.lang.String[] |
getVariableNames(User user)
returns an alphabetically sorted list of all the variable names in the data repository |
java.util.ArrayList<VariableSummary> |
getVariableSummariesForCategory(User user,
java.lang.String categoryName)
returns summary records of variables that are associated with a given category. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DemonstrationRetrievalService(SessionProperties sessionProperties)
throws MacawException
MacawException
public DemonstrationRetrievalService(SessionProperties sessionProperties,
boolean automatedTestingMode)
throws MacawException
MacawException| Method Detail |
|---|
public User getUserFromID(User user,
java.lang.String userID)
getUserFromID in interface MacawRetrievalAPIpublic java.util.ArrayList<User> getUnverifiedUsers(User admin)
getUnverifiedUsers in interface MacawRetrievalAPI
public User getUserFromEmail(User user,
java.lang.String email)
getUserFromEmail in interface MacawRetrievalAPI
public AliasFilePath getAliasFilePath(User user,
java.lang.String cardNumber)
MacawRetrievalAPI
getAliasFilePath in interface MacawRetrievalAPIuser - - registered user who is using the retrieval service
public java.util.ArrayList<AliasFilePath> getAliasFilePathsMatchingName(User user,
java.lang.String regularExpression)
MacawRetrievalAPI
getAliasFilePathsMatchingName in interface MacawRetrievalAPIuser - - registered user who is using the retrieval serviceregularExpression - - a search phrase that represents part of the name for a logical location
in an alias file path.
public java.util.ArrayList<Category> getCategoriesForVariable(User user,
java.lang.String variableName)
getCategoriesForVariable in interface MacawRetrievalAPI
public java.util.ArrayList<VariableSummary> getVariableSummariesForCategory(User user,
java.lang.String categoryName)
MacawRetrievalAPI
getVariableSummariesForCategory in interface MacawRetrievalAPIpublic java.lang.String[] getVariableNames(User user)
MacawRetrievalAPI
getVariableNames in interface MacawRetrievalAPI
public java.util.ArrayList<ValueLabel> getValueLabels(User user,
java.lang.String variableName)
MacawRetrievalAPI
getValueLabels in interface MacawRetrievalAPIuser - registered user who is using the retrieval servicevariableName - the name of a variable
public java.util.ArrayList<OntologyTerm> getOntologyTerms(User user,
java.lang.String variableName)
MacawRetrievalAPI
getOntologyTerms in interface MacawRetrievalAPI
public java.util.ArrayList<SupportingDocument> getSupportingDocuments(User user,
java.lang.String variableName)
MacawRetrievalAPI
getSupportingDocuments in interface MacawRetrievalAPIpublic java.util.ArrayList<AliasFilePath> getAliasFilePaths(User user)
DemonstrationCurationService
getAliasFilePaths in interface MacawCurationAPIgetAliasFilePaths in interface MacawRetrievalAPIgetAliasFilePaths in class DemonstrationCurationServiceuser - - registered user who is using the retrieval servicepublic java.util.ArrayList<Category> getCategories(User user)
getCategories in interface MacawCurationAPIgetCategories in interface MacawRetrievalAPIgetCategories in class DemonstrationCurationServicepublic java.util.ArrayList<CleaningState> getCleaningStates(User user)
DemonstrationCurationService
getCleaningStates in interface MacawCurationAPIgetCleaningStates in interface MacawRetrievalAPIgetCleaningStates in class DemonstrationCurationServicepublic java.util.ArrayList<AvailabilityState> getAvailabilityStates(User user)
DemonstrationCurationService
getAvailabilityStates in interface MacawCurationAPIgetAvailabilityStates in interface MacawRetrievalAPIgetAvailabilityStates in class DemonstrationCurationService
public Variable getVariable(User user,
java.lang.String variableName)
MacawRetrievalAPI
getVariable in interface MacawCurationAPIgetVariable in interface MacawRetrievalAPIgetVariable in class DemonstrationCurationServicepublic java.util.ArrayList<User> getUsers(User user)
getUsers in interface MacawCurationAPIgetUsers in interface MacawRetrievalAPIgetUsers in class DemonstrationCurationService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||