src/main/java/edu/kit/informatik/pcc/webinterface/serverconnection/ServerProxy.java
/**
     * This method calls the server to change account date from old to new.
     *
     * @param oldAccount Account to change
     * @param newAccount New Account Data
     * @return Answer form the server
     */
This method calls the server to change account date from old to new.
@param oldAccount Account to change
@param newAccount New Account Data
@return Answer form the server
This method calls the server to change account date from old to new . @param oldAccount Account to change @param newAccount New Account Data @return Answer form the server
public static String changeAccount(Account oldAccount, Account newAccount) {
        String json = oldAccount.getAsJson();
        String newJson = newAccount.getAsJson();
        Form f = new Form();
        f.param(ACCOUNT, json);
        f.param(NEW_ACCOUNT, newJson);
        Response response = post(f, "changeAccount");
        return (response == null) ? FAILURE : response.readEntity(String.class);
    }
public static String changeAccount ( Account oldAccount , Account newAccount ) { String json = oldAccount . getAsJson ( ) ; String newJson = newAccount . getAsJson ( ) ; Form f = new Form ( ) ; f . param ( ACCOUNT , json ) ; f . param ( NEW_ACCOUNT , newJson ) ; Response response = post ( f , "changeAccount" ) ; return ( response == null ) ? FAILURE : response . readEntity ( String . class ) ; }
This method calls the server to change account date from old to new.
This method calls the server to change account date from old to new .