|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use User | |
---|---|
bootstrapP | |
common | |
common.interfaces | |
messageServerP | |
servlet |
Uses of User in bootstrapP |
---|
Methods in bootstrapP that return types with arguments of type User | |
---|---|
java.util.Vector<User> |
SafeMSForBSInterface.getUsersList(java.lang.String globalpw)
|
Methods in bootstrapP with parameters of type User | |
---|---|
void |
SafeMSForBSInterface.assign(java.lang.String MSPw,
User user,
java.lang.String userPw)
|
void |
Communication.deleteUser(User user,
java.lang.String pw)
|
void |
SafeMSForBSInterface.deleteUserAdmin(User nick,
java.lang.String MSpw)
|
MessageServer |
Communication.getMS(User user)
|
static RegisteredUser |
UsersDatabase.getUser(User user)
Returns a Registered User contained in the database from a given User. |
void |
SafeMSForBSInterface.moveUser(java.lang.String MSPw,
User user,
MessageServer ms)
|
Uses of User in common |
---|
Fields in common declared as User | |
---|---|
private User |
Message.recipient
|
private User |
Message.sender
|
Fields in common with type parameters of type User | |
---|---|
(package private) java.util.Vector<User> |
ContactList.vector
|
Methods in common that return User | |
---|---|
User |
User.clone()
|
User |
Message.getFrom()
|
User |
Message.getTo()
|
User |
ContactList.getUser(int i)
|
User |
ContactList.getUser(java.lang.String name)
|
Methods in common with parameters of type User | |
---|---|
boolean |
ContactList.accepts(User user)
Checks if the contact list accepts messages from a user given by argument. |
void |
ContactList.addUser(User user,
boolean friend)
Adds a User nickname to the contact list. |
boolean |
ContactList.contains(User user)
|
boolean |
ContactList.removeUser(User user)
Removes a User from the contact list. |
void |
ContactList.setFriend(User user,
boolean friend)
Sets a contact status. |
void |
ContactList.setOnLine(User user,
boolean online)
Sets a contact status. |
Constructors in common with parameters of type User | |
---|---|
Message(java.lang.String txt,
User to,
User from)
Creates a message with the data given by argument. |
Uses of User in common.interfaces |
---|
Methods in common.interfaces that return User | |
---|---|
User |
MSForMSInterface.getManagedUserContact(User user)
Gets a User IP address and TCP port to directely connect to its servlet. |
User |
MSForServletInterface.getUserContact(User user)
Gets a User IP address and TCP port to directely connect to its servlet. |
Methods in common.interfaces that return types with arguments of type User | |
---|---|
java.util.Vector<User> |
MSForBSInterface.getUsersList(java.lang.String globalpw)
Returns the list of users managed by the Message Server. |
Methods in common.interfaces with parameters of type User | |
---|---|
void |
MSForServletInterface.addToFriends(User user,
java.lang.String pw,
User userToAdd)
Used by a servlet to tell the message server to add another user in his contact list as friend. |
void |
MSForBSInterface.assign(java.lang.String MSPw,
User user,
java.lang.String userPw)
Assigns a new user to the message server. |
void |
MSForServletInterface.blockContact(User user,
java.lang.String pw,
User userToBlock)
Marks userToBlock in the user's contact list as blocked, so that no more messages from that user are accepted. |
void |
MSForServletInterface.changePassword(User user,
java.lang.String oldPw,
java.lang.String newPw)
Changes the user password. |
void |
MSForServletInterface.deleteDownloadedMsgs(User user,
java.lang.String pw)
Deletes the messages that are already downloaded by a User. |
void |
BSForServletInterface.deleteUser(User user,
java.lang.String pw)
Deletes an account of a user (this method is used by the user itself). |
void |
MSForBSInterface.deleteUserAdmin(User nick,
java.lang.String MSpw)
Deletes a user. |
java.util.Vector<Message> |
MSForServletInterface.downloadMsgs(User user,
java.lang.String pw)
Downloads the messages stored in the Message server for a user. |
ContactList |
MSForServletInterface.getContactList(User user,
java.lang.String pw)
Returns user list of contacts. |
User |
MSForMSInterface.getManagedUserContact(User user)
Gets a User IP address and TCP port to directely connect to its servlet. |
MessageServer |
BSForServletInterface.getMS(User user)
Returns the message server of a user given by argument. |
MessageServer |
BSForMSInterface.getMS(User user)
Returns the message server of a user given by argument. |
User |
MSForServletInterface.getUserContact(User user)
Gets a User IP address and TCP port to directely connect to its servlet. |
boolean |
MSForMSInterface.inListOfUserContains(User listUser,
User user)
Checks whether or not a user (U1) accepts messages sent from another user (U2) |
void |
MSForBSInterface.moveUser(java.lang.String MSPw,
User user,
MessageServer ms)
Moves a user assignation from the message server to the specified one. |
void |
MSForServletInterface.removeContact(User user,
java.lang.String pw,
User userToRemove)
Removes userToRemove from user's contact list, so that no more messages from that user are accepted. |
void |
MSForServletInterface.setState(User user,
java.lang.String pw,
boolean state)
Sets a user state. |
Uses of User in messageServerP |
---|
Subclasses of User in messageServerP | |
---|---|
class |
ManagedUser
A representation of a user managed by the Message Server. |
Fields in messageServerP with type parameters of type User | |
---|---|
private static java.util.Vector<java.util.List<User>> |
Cache.nonManagedUsers
The list of users not managed by this MS but cached. |
Methods in messageServerP that return User | |
---|---|
User |
ManagedUser.copyContactTo(User user)
Copies IP and port of this user to the user passed by argument. |
User |
SafeMSForMSInterface.getManagedUserContact(User user)
|
User |
Communication.getManagedUserContact(User user)
|
static User |
Cache.getRemoteContact(User usr)
Retrives informations about a gossip servlet connection (IP address and port) in order to let anyone contact him directely. |
User |
Communication.getUserContact(User user)
|
Methods in messageServerP that return types with arguments of type User | |
---|---|
java.util.Vector<User> |
Communication.getUsersList(java.lang.String MSPw)
|
Methods in messageServerP with parameters of type User | |
---|---|
void |
ManagedUser.addFriend(User user)
Adds a friend to the incoming contact list of this user. |
private static void |
Cache.addToCache(User user,
MessageServer ms)
Updates the cache adding a new corrispondence between a user and the message server the user is located in. |
void |
Communication.addToFriends(User user,
java.lang.String userPw,
User userToAdd)
|
void |
Communication.assign(java.lang.String MSPw,
User user,
java.lang.String password)
|
void |
Communication.blockContact(User user,
java.lang.String pw,
User userToBlock)
|
void |
ManagedUser.blockFriend(User user)
Sets a contact as blocked (no more messages by this user are accepted). |
static void |
ManagedUsersDatabase.blockUser(User user,
boolean blocked)
Blocks a user to not let it receive more messages. |
void |
Communication.changePassword(User user,
java.lang.String oldPw,
java.lang.String newPw)
|
User |
ManagedUser.copyContactTo(User user)
Copies IP and port of this user to the user passed by argument. |
static void |
ManagedUsersDatabase.createUser(User user,
java.lang.String password)
Creates a user and adds it to the list. |
void |
Communication.deleteDownloadedMsgs(User user,
java.lang.String pw)
|
static boolean |
ManagedUsersDatabase.deleteUser(User userToDelete)
Deletes a user. |
void |
Communication.deleteUserAdmin(User nick,
java.lang.String MSpw)
|
java.util.Vector<Message> |
Communication.downloadMsgs(User user,
java.lang.String pw)
|
private static MessageServer |
Cache.getCachedMessageServer(User user)
Obtains from the cache the Message Server a user is assigned to. |
static MSForMSInterface |
Cache.getCachedMessageServerInterface(User user)
Obtains from the cache the Message Server interface used to communicate with a user. |
ContactList |
Communication.getContactList(User user,
java.lang.String pw)
|
static ManagedUser |
ManagedUsersDatabase.getManaged(User user)
Takes log(N) where N is the number of administrated users. |
User |
SafeMSForMSInterface.getManagedUserContact(User user)
|
User |
Communication.getManagedUserContact(User user)
|
static User |
Cache.getRemoteContact(User usr)
Retrives informations about a gossip servlet connection (IP address and port) in order to let anyone contact him directely. |
User |
Communication.getUserContact(User user)
|
boolean |
SafeMSForMSInterface.inListOfUserContains(User listUser,
User user)
|
boolean |
Communication.inListOfUserContains(User listUser,
User user)
|
boolean |
ManagedUser.isFriendOf(User user)
Checks if a user given by argument accepts messages from this managed user. |
void |
Communication.moveUser(java.lang.String MSPw,
User user,
MessageServer ms)
|
private static boolean |
Cache.refreshCache(User user)
Refreshes the cache for a user whose message server is not right (or is not cached), sending a query to the Bootstrap Server. |
static void |
Cache.remoteIsFriendOf(ManagedUser local,
User remote)
Checks if a remote user accepts a local user as a friend. |
void |
ManagedUser.removeContact(User user)
Removes a user from this user contact list. |
void |
Communication.removeContact(User user,
java.lang.String pw,
User userToRemove)
|
static MessageServer |
Cache.removeFromCache(User user)
If exists, removes the correspondence between a user and the Message Server |
void |
Communication.setState(User user,
java.lang.String pw,
boolean state)
|
void |
TextualInterfaceIt.showSystemError(User user)
|
void |
HumanInterface.showSystemError(User user)
Called when a gossip system error occured and a user exists but is not assigned to any server. |
static boolean |
ManagedUsersDatabase.userIsFriendOf(User u1,
User u2)
Checks if a user is friend of another. |
Uses of User in servlet |
---|
Fields in servlet declared as User | |
---|---|
static User |
ClientCore.myself
The variables contain information about the user, the user's password, th bootstrap server, the message server and the reference to the graphic interface. |
User |
Connection.name
|
User |
PeerInterface.peer
|
private User |
ControlStatus.user
|
Methods in servlet that return User | |
---|---|
User |
ControlStatus.getUser()
This method gets and removes the first user of the list. |
static User |
AccessOperation.getUser(User user)
Gets information about the requested user |
Methods in servlet with parameters of type User | |
---|---|
private void |
ControlStatus.addUser(User name)
This method adds a user of the new list. |
static MessageServer |
AccessOperation.askMsgServer(User user)
Asks the assignation of a Message Server |
static void |
AccessOperation.changeStateUser(int form,
User user)
Changes the friendship's state with the user |
(package private) boolean |
ConfirmInterface.confirm(User name,
java.lang.String command)
This method, according to the user's choice, locks or adds to friends the other user. |
static boolean |
AccessOperation.contactUser(User user)
Lets contact another user the first time |
static java.util.Vector<Message> |
AccessOperation.getMail(User user,
java.lang.String pass,
MessageServer ms)
Downloads and deletes the messages received by the user |
static User |
AccessOperation.getUser(User user)
Gets information about the requested user |
static ContactList |
AccessOperation.logMsg(User user,
java.lang.String pass,
MessageServer ms)
This method finds the reference to the remote object of the message server, sets the State to true and downloads the Contacts List |
static boolean |
AccessOperation.register(User user,
java.lang.String pass)
This method is of use to the user's registration |
(package private) static void |
GossipInterface.repaintWindow(User user,
int form,
int which)
This method change the location of user in graphic interface |
void |
ControlStatus.setUser(User name)
If the user is a friend, checks if he is online. |
Constructors in servlet with parameters of type User | |
---|---|
ConfirmInterface(User name,
java.net.Socket so)
The constructor |
|
Connection(User name,
PeerCommunication ti,
PeerInterface pi)
The constructor |
|
ControlStatus(ContactList cl,
User user)
The constructor |
|
GossipInterface(User utente,
ContactList list,
java.util.Vector<Message> message)
The second constructor. |
|
PeerCommunication(java.net.Socket soc,
User name,
Message mx)
The constructor |
|
PeerInterface(PeerCommunication tt,
User temp)
The constructor |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |