341342343344345346347348349350351352353
String[] params = getParameters(key); if (params == null) { if (n == 0) return new String[0]; else throw new PartakeException(ec); } if (params.length != n) throw new PartakeException(ec); return params; }
405406407408409410411412413
} protected UserEx ensureLogin() throws PartakeException { UserEx user = getLoginUser(); if (user == null) throw new PartakeException(UserErrorCode.INVALID_LOGIN_REQUIRED); return user; }
413414415416417418419420421
} protected UserEx ensureAdmin() throws PartakeException { UserEx user = ensureLogin(); if (!user.isAdministrator()) throw new PartakeException(UserErrorCode.INVALID_PROHIBITED); return user; }