public class Client extends Object implements Serializable
Constructor and Description |
---|
Client() |
Client(Subject subject,
boolean pingable)
Constructs the client object from given client subject.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermission(Permission permission,
String errorMessage,
Permission... superUserPermissions)
Checks that client has the specified permission.
|
boolean |
equals(Object o)
Redefined equals method based on client's name
|
Credentials |
getCredentials() |
String |
getDomain() |
Set<String> |
getGroups() |
UserHistory |
getHistory()
Returns the connection history object linked to the data base
|
org.objectweb.proactive.core.UniqueID |
getId()
Gets the id of the client
|
static org.objectweb.proactive.core.UniqueID |
getId(Object service)
Extract the body id from an active object.
|
String |
getName()
Gets the name of the client
|
Subject |
getSubject() |
String |
getTenant() |
int |
hashCode() |
boolean |
isAlive()
Checks if the client is alive by sending the message to it.
|
boolean |
isPingable()
Defines if the client has to be pinged.
|
void |
setCredentials(Credentials credentials) |
void |
setHistory(UserHistory history)
Sets the history DB object associated to the current user connection.
|
void |
setId(org.objectweb.proactive.core.UniqueID id)
Sets the id of the client
|
String |
toString() |
public Client()
public Client(Subject subject, boolean pingable)
subject
- with the name of the client authenticated in the resource manager (can be null)pingable
- defines if client has to be pingedpublic String getName()
public String getTenant()
public String getDomain()
public org.objectweb.proactive.core.UniqueID getId()
public void setId(org.objectweb.proactive.core.UniqueID id)
id
- new client's idpublic boolean isPingable()
public boolean equals(Object o)
public String toString()
public boolean isAlive()
public static org.objectweb.proactive.core.UniqueID getId(Object service)
service
- a target active objectpublic Subject getSubject()
public boolean checkPermission(Permission permission, String errorMessage, Permission... superUserPermissions)
SecurityException
otherwise with specified error messagepublic void setHistory(UserHistory history)
history
- is an object to setpublic UserHistory getHistory()
public void setCredentials(Credentials credentials)
public Credentials getCredentials()