|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminServiceAPI
The service API that is used by the Admin Tool GUI. The API should also be used by developers who seek to exercise the business operations of the administration tool without wanting to use the forms that come with it.
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.
Method Summary | |
---|---|
void |
addUser(User adminUser,
User user)
add a user to the list of registered users of the system. |
void |
clearChanges(User adminUser)
removes all records that describe changes made to activity data. |
void |
clearDatabase(User adminUser)
produces an empty database. |
void |
clearUsers(User adminUser)
removes all users from the list of registered users. |
void |
createDatabase(User adminUser)
creates a database according to settings specified in the configuration file the end users choose when they start the Administration Tool. |
boolean |
databaseExists(User adminUser)
determines whether the database described in the configuration file at startup exists or not. |
void |
deleteDatabase(User adminUser)
deletes the database described in the configuration file end users choose when they start the Administration Tool. |
void |
deleteUser(User adminUser,
User user)
deletes a user from the registry of known users. |
java.util.ArrayList<User> |
getRegisteredUsers(User adminUser)
returns a collection of registered users for the system. |
java.util.ArrayList<TrialSubjectModel> |
getSubjectAttributeData(User adminUser)
Provides all the subject attribute data that is needed to uniquely identify and filter subjects. |
void |
importTrialSubjectModels(User adminUser,
java.util.ArrayList<TrialSubjectModel> trialSubjectModels)
imports a collection of trial subject model records into the data repository. |
void |
synchroniseRepository(User adminUser)
ensures that every activity and activity step defined in the configuration file specied at startup has a corresponding entry in the data repository. |
void |
updateUser(User adminUser,
User user)
update the details of an existing user |
boolean |
userExists(User adminUser,
java.lang.String userID)
determines whether a given userID exists in the collection of registered users |
boolean |
validateAdministrator(User adminUser)
determine whether a given user is the administrator or not |
Methods inherited from interface cst.common.businessLayer.CSTServiceAPI |
---|
checkRepositoryIsSynchronised, getTrialSubjectModel, initialise |
Method Detail |
---|
boolean validateAdministrator(User adminUser) throws CSTException
adminUser
-
CSTException
java.util.ArrayList<TrialSubjectModel> getSubjectAttributeData(User adminUser) throws CSTException
adminUser
-
CSTException
void importTrialSubjectModels(User adminUser, java.util.ArrayList<TrialSubjectModel> trialSubjectModels) throws CSTException
adminUser
- trialSubjectModels
-
CSTException
java.util.ArrayList<User> getRegisteredUsers(User adminUser) throws CSTException
adminUser
-
CSTException
boolean userExists(User adminUser, java.lang.String userID) throws CSTException
adminUser
- userID
-
CSTException
void clearUsers(User adminUser) throws CSTException
adminUser
-
CSTException
void addUser(User adminUser, User user) throws CSTException
adminUser
- user
-
CSTException
void updateUser(User adminUser, User user) throws CSTException
adminUser
- user
-
CSTException
void deleteUser(User adminUser, User user) throws CSTException
adminUser
- user
-
CSTException
void clearChanges(User adminUser) throws CSTException
adminUser
-
CSTException
void clearDatabase(User adminUser) throws CSTException
adminUser
-
CSTException
boolean databaseExists(User adminUser) throws CSTException
adminUser
-
CSTException
void createDatabase(User adminUser) throws CSTException
adminUser
-
CSTException
void deleteDatabase(User adminUser) throws CSTException
adminUser
-
CSTException
void synchroniseRepository(User adminUser) throws CSTException
adminUser
-
CSTException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |