|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjitas.core.Admin
public class Admin
The Admin class is the doorway to JITAS for the Administration GUI
| Constructor Summary | |
|---|---|
Admin()
The default constructor for the admin class. |
|
Admin(java.lang.String domainsFilePath)
Constructor that takes in a file path for the domains.xml file |
|
Admin(Tutor tutor)
Constructor which takes in a current Tutor object, to use that tutor's domainManager, and set of Students. |
|
| Method Summary | |
|---|---|
void |
addAllowedDomain(java.lang.String userName,
java.lang.String domainName)
Gives a student access to a specific domain |
void |
addUser(java.lang.String userName,
java.lang.String password,
java.util.Set<java.lang.String> domainNames)
Adds a new student to JITAS. |
void |
deleteUser(java.lang.String userName)
Deletes the student from the entire JITAS System, including all domain specific information about that student |
java.util.SortedSet<java.lang.String> |
getAllDomainNames()
Returns a Sorted Set of all known domain names |
java.util.Set<java.lang.String> |
getAllStudentUsernameStrings()
gets a set of all the students usernames in JITAS |
boolean |
getLoginStatus(java.lang.String userName,
java.lang.String domainName)
gets the login status of a student for a particular domain |
java.util.SortedSet<java.lang.String> |
getStudentUsernames()
Returns all of the students usernames which have been read in from xml. |
java.util.Set<java.lang.String> |
getStudentUsernameStrings(java.lang.String currentFilter)
Gets all the students usernames for a specific domain |
void |
logout(java.lang.String userName,
java.lang.String domainName)
Logs the Student out of the specified domain |
void |
refreshStudentList()
loads all of the students usernames from xml into the stored set of students usernames in this class. |
void |
removeUser(java.lang.String userName,
java.lang.String domainName)
Removes the students student model from the specified domain. |
boolean |
studentHasAccountInDomain(java.lang.String userName,
java.lang.String domainName)
Tells whether a student has a student model within a certain domain |
boolean |
userCreationAllowed(java.lang.String domainName)
Tells whether a domain is a Non-Restricted or Restricted |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Admin()
throws java.io.IOException
java.io.IOException
public Admin(java.lang.String domainsFilePath)
throws java.io.IOException
domainsFilePath - The path to an xml file containing information
about all the domains. The path must include the filename.
java.io.IOException
public Admin(Tutor tutor)
throws java.io.IOException
tutor - The Tutor object which is currently being used.
java.io.IOException| Method Detail |
|---|
public java.util.SortedSet<java.lang.String> getStudentUsernames()
public java.util.SortedSet<java.lang.String> getAllDomainNames()
public boolean studentHasAccountInDomain(java.lang.String userName,
java.lang.String domainName)
throws UserNotFoundException
userName - - the students usernamedomainName - - the domain name we wish to check
UserNotFoundException
public boolean userCreationAllowed(java.lang.String domainName)
throws DomainNotFoundException,
DomainNotLoadedException
domainName -
DomainNotFoundException
DomainNotLoadedException
jess.JessException
public boolean getLoginStatus(java.lang.String userName,
java.lang.String domainName)
throws UserNotFoundException,
java.rmi.RemoteException
userName - The students domain namedomainName - The domain we wish to check
java.rmi.RemoteException
UserNotFoundException - If the user does not exist
public void logout(java.lang.String userName,
java.lang.String domainName)
throws DomainNotFoundException,
DomainNotLoadedException,
UserNotFoundException,
UserNotLoggedInException,
java.rmi.RemoteException
userName - - the students usernamedomainName - - the domain the student wishes to log out of
java.rmi.RemoteException
UserNotLoggedInException
UserNotFoundException
DomainNotLoadedException
DomainNotFoundException
public void addUser(java.lang.String userName,
java.lang.String password,
java.util.Set<java.lang.String> domainNames)
throws AddUserDeniedException,
DomainNotFoundException,
DomainNotLoadedException,
IllegalUserNameException,
StudentModelAlreadyExistsException,
java.rmi.RemoteException
userName - Student's user namepassword - Student's passworddomainNames - All the domains the student can log into
java.rmi.RemoteException
StudentModelAlreadyExistsException
IllegalUserNameException
DomainNotLoadedException
DomainNotFoundException
AddUserDeniedException
UserNotFoundException
public void removeUser(java.lang.String userName,
java.lang.String domainName)
throws DomainNotFoundException,
DomainNotLoadedException,
UserNotFoundException,
UserNotLoggedInException,
java.rmi.RemoteException
userName - domainName -
java.rmi.RemoteException
UserNotLoggedInException
UserNotFoundException
DomainNotLoadedException
DomainNotFoundException
public void deleteUser(java.lang.String userName)
throws DomainNotFoundException,
DomainNotLoadedException,
UserNotFoundException,
UserNotLoggedInException,
java.rmi.RemoteException
userName - Student's user name
java.rmi.RemoteException
UserNotLoggedInException
UserNotFoundException
DomainNotLoadedException
DomainNotFoundException
public void addAllowedDomain(java.lang.String userName,
java.lang.String domainName)
throws AddUserDeniedException,
DomainNotFoundException,
DomainNotLoadedException,
StudentModelAlreadyExistsException,
UserNotFoundException,
java.rmi.RemoteException
userName - The student's usernamedomainName - The domain the student will have access to
java.rmi.RemoteException
UserNotFoundException
StudentModelAlreadyExistsException
DomainNotLoadedException
DomainNotFoundException
AddUserDeniedExceptionpublic java.util.Set<java.lang.String> getAllStudentUsernameStrings()
public java.util.Set<java.lang.String> getStudentUsernameStrings(java.lang.String currentFilter)
currentFilter - The domain the students will belong to
public void refreshStudentList()
throws java.io.FileNotFoundException
java.io.FileNotFoundException
java.io.FileNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||