public Status setPassword(final String _newPasswd)
        throws EFapsException
    {
        final Type type = CIAdminUser.Person.getType();
        if (_newPasswd.length() == 0) {
            throw new EFapsException(getClass(), "PassWordLength", 1, _newPasswd.length());
        }
        final Update update = new Update(type, "" + getId());
        final Status status = update.add(CIAdminUser.Person.Password, _newPasswd);
        if (status.isOk()) {
            update.execute();
            update.close();
        } else {
            Person.LOG.error("Password could not be set by the Update, due to restrictions " + "e.g. length???");
            throw new EFapsException(getClass(), "TODO");
        }
        return status;
    }
public Status setPassword ( final String _newPasswd ) throws EFapsException { final Type type = CIAdminUser . Person . getType ( ) ; if ( _newPasswd . length ( ) == 0 ) { throw new EFapsException ( getClass ( ) , "PassWordLength" , 1 , _newPasswd . length ( ) ) ; } final Update update = new Update ( type , "" + getId ( ) ) ; final Status status = update . add ( CIAdminUser . Person . Password , _newPasswd ) ; if ( status . isOk ( ) ) { update . execute ( ) ; update . close ( ) ; } else { Person . LOG . error ( "Password could not be set by the Update, due to restrictions " + "e.g. length???" ) ; throw new EFapsException ( getClass ( ) , "TODO" ) ; } return status ; }
The instance method sets the new password for the current context user.
Before the new password is set, some checks are made.

@param _newPasswd new Password to set
@throws EFapsException on error
@return true if password set, else false