Пример #1
0
 public void setSecurityContext(SecurityContext subject) {
   this.securityContext = subject;
   if (subject != null) {
     setUserName(subject.getUserName());
   } else {
     setUserName(null);
   }
 }
Пример #2
0
 public ConnectionContext(ConnectionInfo info) {
   this();
   setClientId(info.getClientId());
   setUserName(info.getUserName());
   setConnectionId(info.getConnectionId());
 }