mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: Token and Session getters and setters update
parent
4b2c50c8f2
commit
ca915fa321
|
@ -192,6 +192,10 @@ public class Session implements SessionInterface {
|
||||||
return tokenObj;
|
return tokenObj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Iterator<Entry<String, Token>> getTokenIterator() {
|
||||||
|
return this.tokens.entrySet().iterator();
|
||||||
|
}
|
||||||
|
|
||||||
public void showTokens(String preMessage) {
|
public void showTokens(String preMessage) {
|
||||||
log.info("{} { Session: {} | Tokens: {} }", preMessage, this.sessionId, this.tokens.keySet().toString());
|
log.info("{} { Session: {} | Tokens: {} }", preMessage, this.sessionId, this.tokens.keySet().toString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,6 +77,14 @@ public class Token {
|
||||||
return connectionId;
|
return connectionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setRole(OpenViduRole role) {
|
||||||
|
this.role = role;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRecord(boolean record) {
|
||||||
|
this.record = record;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
if (this.role != null)
|
if (this.role != null)
|
||||||
|
|
Loading…
Reference in New Issue