|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object macaw.persistenceLayer.production.ProductionRetrievalService
public class ProductionRetrievalService
Implements the MacawRetrievalAPI
interface as a service which retrieves
all of its data from a database.
DemonstrationRetrievalService
delegates the implementations
of MacawRetrievalAPI
methods to manager classes whose names are prefixed
with "SQL" (eg: SQLVariableManager
).
The main duties of this class are
For security reasons, exceptions are caught rather than thrown to the calling class.
Constructor Summary | |
---|---|
ProductionRetrievalService(SessionProperties sessionProperties)
|
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)
|
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<OntologyTerm> |
getOntologyTerms(User user,
Variable 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 user)
|
User |
getUserFromEmail(User user,
java.lang.String email)
|
User |
getUserFromID(User user,
java.lang.String userID)
|
java.util.ArrayList<User> |
getUsers(User admin)
|
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 ProductionRetrievalService(SessionProperties sessionProperties) throws MacawException
MacawException
Method Detail |
---|
public User getUserFromID(User user, java.lang.String userID)
getUserFromID
in interface MacawRetrievalAPI
public java.util.ArrayList<User> getUnverifiedUsers(User user)
getUnverifiedUsers
in interface MacawRetrievalAPI
public java.util.ArrayList<User> getUsers(User admin)
getUsers
in interface MacawRetrievalAPI
public User getUserFromEmail(User user, java.lang.String email)
getUserFromEmail
in interface MacawRetrievalAPI
public java.util.ArrayList<Category> getCategories(User user)
getCategories
in interface MacawRetrievalAPI
public java.util.ArrayList<AvailabilityState> getAvailabilityStates(User user)
getAvailabilityStates
in interface MacawRetrievalAPI
public java.util.ArrayList<CleaningState> getCleaningStates(User user)
getCleaningStates
in interface MacawRetrievalAPI
public java.util.ArrayList<ValueLabel> getValueLabels(User user, java.lang.String variableName)
MacawRetrievalAPI
getValueLabels
in interface MacawRetrievalAPI
user
- registered user who is using the retrieval servicevariableName
- the name of a variablepublic java.util.ArrayList<OntologyTerm> getOntologyTerms(User user, java.lang.String variableName)
MacawRetrievalAPI
getOntologyTerms
in interface MacawRetrievalAPI
public java.util.ArrayList<OntologyTerm> getOntologyTerms(User user, Variable variable)
public java.util.ArrayList<SupportingDocument> getSupportingDocuments(User user, java.lang.String variableName)
MacawRetrievalAPI
getSupportingDocuments
in interface MacawRetrievalAPI
public java.util.ArrayList<AliasFilePath> getAliasFilePaths(User user)
getAliasFilePaths
in interface MacawRetrievalAPI
user
- - registered user who is using the retrieval servicepublic AliasFilePath getAliasFilePath(User user, java.lang.String cardNumber)
MacawRetrievalAPI
getAliasFilePath
in interface MacawRetrievalAPI
user
- - registered user who is using the retrieval servicepublic java.util.ArrayList<AliasFilePath> getAliasFilePathsMatchingName(User user, java.lang.String regularExpression)
MacawRetrievalAPI
getAliasFilePathsMatchingName
in interface MacawRetrievalAPI
user
- - 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 MacawRetrievalAPI
public java.lang.String[] getVariableNames(User user)
MacawRetrievalAPI
getVariableNames
in interface MacawRetrievalAPI
public Variable getVariable(User user, java.lang.String variableName)
MacawRetrievalAPI
getVariable
in interface MacawRetrievalAPI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |