From fdc6191718f0021f9841d5754310f73f7c132d15 Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Thu, 30 Apr 2009 07:40:49 +0000 Subject: [PATCH] Build fix - user quota size setting methods in People API now only accept a string value. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14128 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../java/org/alfresco/repo/jscript/People.java | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/source/java/org/alfresco/repo/jscript/People.java b/source/java/org/alfresco/repo/jscript/People.java index a437d34415..9bf5611bd9 100644 --- a/source/java/org/alfresco/repo/jscript/People.java +++ b/source/java/org/alfresco/repo/jscript/People.java @@ -333,25 +333,13 @@ public final class People extends BaseScopableProcessorExtension * Only the admin authority can set this value. * * @param person Person to set quota against. - * @param quota In bytes, a value of -1 means no quota is set + * @param quota As a string, in bytes, a value of "-1" means no quota is set */ - public void setQuota(ScriptNode person, Integer quota) - { - setQuota(person, quota.longValue()); - } - - /** - * Set the content quota in bytes for a person. - * Only the admin authority can set this value. - * - * @param person Person to set quota against. - * @param quota In bytes, a value of -1 means no quota is set - */ - public void setQuota(ScriptNode person, Long quota) + public void setQuota(ScriptNode person, String quota) { if (this.authorityService.isAdminAuthority(AuthenticationUtil.getFullyAuthenticatedUser())) { - this.contentUsageService.setUserQuota((String)person.getProperties().get(ContentModel.PROP_USERNAME), quota); + this.contentUsageService.setUserQuota((String)person.getProperties().get(ContentModel.PROP_USERNAME), Long.parseLong(quota)); } }