public void setPassword( String pass ) { user.setPassword( pass ); }
public IUser loadUserInfo( String login, String password ) throws KettleException { // Create a UserInfo object IUser user = constructUser(); user.setLogin( login ); user.setPassword( password ); user.setName( login ); return user; }
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; } }
public void updateUserInLookupSet( IUser user ) { IUser userInfoToUpdate = null; for ( IUser userInfo : userInfoSet ) { if ( userInfo.getLogin().equals( user.getLogin() ) ) { userInfoToUpdate = userInfo; break; } } userInfoToUpdate.setDescription( user.getDescription() ); if ( !StringUtils.isEmpty( user.getPassword() ) ) { userInfoToUpdate.setPassword( user.getPassword() ); } if ( user instanceof IEEUser ) { ( (IEEUser) userInfoToUpdate ).setRoles( ( (IEEUser) user ).getRoles() ); } }
private IUser createUserInfo( ProxyPentahoUser user ) { IUser userInfo = null; try { userInfo = this.rsm.constructUser(); userInfo.setDescription( user.getDescription() ); userInfo.setLogin( user.getName() ); userInfo.setName( user.getName() ); userInfo.setPassword( user.getPassword() ); } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return userInfo; }
public static IUser convertToUserInfo( ProxyPentahoUser user, ProxyPentahoRole[] roles, IRoleSupportSecurityManager rsm ) { IUser userInfo = null; try { userInfo = rsm.constructUser(); userInfo.setDescription( user.getDescription() ); userInfo.setPassword( user.getPassword() ); userInfo.setLogin( user.getName() ); userInfo.setName( user.getName() ); if ( userInfo instanceof IEEUser ) { ( (IEEUser) userInfo ).setRoles( convertToSetFromProxyPentahoRoles( roles, rsm ) ); } } catch ( KettleException ke ) { ke.printStackTrace(); } return userInfo; }
userinfo.setPassword( wPassword.getText() ); userinfo.setUsername( wUsername.getText() ); userinfo.setDescription( wDescription.getText() );
@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 static IUser convertFromProxyPentahoUser( ProxyPentahoUser user, List<UserToRoleAssignment> assignments, IRoleSupportSecurityManager rsm ) { IUser userInfo = null; try { userInfo = rsm.constructUser(); userInfo.setDescription( user.getDescription() ); userInfo.setPassword( user.getPassword() ); userInfo.setLogin( user.getName() ); userInfo.setName( user.getName() ); if ( userInfo instanceof IEEUser ) { ( (IEEUser) userInfo ).setRoles( getRolesForUser( user.getName(), assignments, rsm ) ); } } catch ( KettleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } return userInfo; }
public static IUser convertFromProxyPentahoUser( IUserRoleWebService userRoleWebService, ProxyPentahoUser user, UserRoleLookupCache lookupCache, IRoleSupportSecurityManager rsm ) { IUser userInfo = null; try { userInfo = rsm.constructUser(); userInfo.setDescription( user.getDescription() ); userInfo.setPassword( user.getPassword() ); userInfo.setLogin( user.getName() ); userInfo.setName( user.getName() ); try { if ( userInfo instanceof IEEUser ) { ( (IEEUser) userInfo ).setRoles( convertToSetFromProxyPentahoRoles( userRoleWebService.getRolesForUser( user ), lookupCache ) ); } } catch ( UserRoleException e ) { // TODO Auto-generated catch block e.printStackTrace(); } } catch ( KettleException e1 ) { // TODO Auto-generated catch block e1.printStackTrace(); } 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 ); } }
user1.setPassword( decryptedPassword ); user1.setName( username ); result.setUser( user1 ); user1.setLogin( name ); user1.setName( name ); user1.setPassword( decryptedPassword ); result.setUser( user1 ); result.setSuccess( true );