public IUser getUserInfo() throws KettleException { IUser userInfo = rsm.constructUser(); userInfo.setDescription( description ); userInfo.setLogin( name ); userInfo.setName( name ); userInfo.setUsername( name ); userInfo.setPassword( password ); return userInfo; } }
userinfo.setUsername( wUsername.getText() ); userinfo.setDescription( wDescription.getText() ); securityManager.saveUserInfo( userinfo );
@Override public IUser getUserInfo() throws KettleException { IUser userInfo = rsm.constructUser(); userInfo.setDescription( getDescription() ); userInfo.setLogin( getName() ); userInfo.setName( getName() ); userInfo.setUsername( getName() ); userInfo.setPassword( getPassword() ); if ( userInfo instanceof IEEUser ) { for ( IUIRole role : getAssignedRoles() ) { ( (IEEUser) userInfo ).addRole( role.getRole() ); } } return userInfo; }
public IUser loadUserInfo( IUser userInfo, String login ) throws KettleException { try { userInfo.setObjectId( getUserID( login ) ); if ( userInfo.getObjectId() != null ) { RowMetaAndData r = getUser( userInfo.getObjectId() ); if ( r != null ) { userInfo.setLogin( r.getString( "LOGIN", null ) ); userInfo.setPassword( Encr.decryptPassword( r.getString( "PASSWORD", null ) ) ); userInfo.setUsername( r.getString( "NAME", null ) ); userInfo.setDescription( r.getString( "DESCRIPTION", null ) ); userInfo.setEnabled( r.getBoolean( "ENABLED", false ) ); return userInfo; } else { throw new KettleDatabaseException( BaseMessages.getString( PKG, "UserInfo.Error.UserNotFound", login ) ); } } else { throw new KettleDatabaseException( BaseMessages.getString( PKG, "UserInfo.Error.UserNotFound", login ) ); } } catch ( KettleDatabaseException dbe ) { throw new KettleException( BaseMessages.getString( PKG, "UserInfo.Error.UserNotLoaded", login, "" ), dbe ); } }