>From b7b55d71aa7f6099c21cc12473f73e18b7b95a32 Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Thu, 26 Feb 2015 22:36:23 -0500 Subject: [PATCH 25/25] Remove unneeded class EnrollProfileContext --- .../netscape/cms/profile/common/EnrollProfile.java | 6 ++--- .../cms/profile/common/EnrollProfileContext.java | 31 ---------------------- 2 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 base/server/cms/src/com/netscape/cms/profile/common/EnrollProfileContext.java diff --git a/base/server/cms/src/com/netscape/cms/profile/common/EnrollProfile.java b/base/server/cms/src/com/netscape/cms/profile/common/EnrollProfile.java index 6f803ee948dbae4763db5b10e13f48bbd8b96d5f..fe3b424a4b8e13215d4029d328d4a1e280be63ff 100644 --- a/base/server/cms/src/com/netscape/cms/profile/common/EnrollProfile.java +++ b/base/server/cms/src/com/netscape/cms/profile/common/EnrollProfile.java @@ -127,16 +127,14 @@ public abstract class EnrollProfile extends BasicProfile } public IProfileContext createContext() { - return new EnrollProfileContext(); + return new ProfileContext(); } /** * Creates request. */ - public IRequest[] createRequests(IProfileContext context, Locale locale) + public IRequest[] createRequests(IProfileContext ctx, Locale locale) throws EProfileException { - EnrollProfileContext ctx = (EnrollProfileContext) context; - // determine how many requests should be created String cert_request_type = ctx.get(CTX_CERT_REQUEST_TYPE); String cert_request = ctx.get(CTX_CERT_REQUEST); diff --git a/base/server/cms/src/com/netscape/cms/profile/common/EnrollProfileContext.java b/base/server/cms/src/com/netscape/cms/profile/common/EnrollProfileContext.java deleted file mode 100644 index 444024b94322ea42fc8a9227ca398844e89bfa94..0000000000000000000000000000000000000000 --- a/base/server/cms/src/com/netscape/cms/profile/common/EnrollProfileContext.java +++ /dev/null @@ -1,31 +0,0 @@ -// --- BEGIN COPYRIGHT BLOCK --- -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; version 2 of the License. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License along -// with this program; if not, write to the Free Software Foundation, Inc., -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -// -// (C) 2007 Red Hat, Inc. -// All rights reserved. -// --- END COPYRIGHT BLOCK --- -package com.netscape.cms.profile.common; - -import com.netscape.certsrv.profile.IProfileContext; - -/** - * This class implements an enrollment profile context - * that carries information for request creation. - * - * @version $Revision$, $Date$ - */ -public class EnrollProfileContext extends ProfileContext - implements IProfileContext { - -} -- 2.1.0