1 package org.openslx.imagemaster.localrpc;
3 import org.apache.logging.log4j.LogManager;
4 import org.apache.logging.log4j.Logger;
5 import org.
openslx.bwlp.thrift.iface.AuthorizationError;
7 import org.
openslx.bwlp.thrift.iface.TAuthorizationException;
20 private String
mail = null;
21 private String
role = null;
30 if ( !
"ok".equals( status ) )
34 role = Role.valueOf( this.role );
35 }
catch ( Exception e ) {
36 LOGGER.warn(
"Invalid role: " + this.role );
42 UserInfo ui =
new UserInfo( userId, firstName, lastName, mail, organizationId );
49 if (
"ok".equals( status ) )
51 return new TAuthorizationException( AuthorizationError.GENERIC_ERROR,
this.error );
TAuthorizationException toException()
Some utilities to make our lives easier.
static final Logger LOGGER
static boolean isEmpty(String str)