From 77f7ff0c9e33f69e5dbe9892c89105e73fc0510e Mon Sep 17 00:00:00 2001 From: jensp Date: Wed, 21 Oct 2015 08:52:39 +0000 Subject: [PATCH] CCM NG: Missing class AbstractSingletonApplicationManager git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@3703 8810af33-2d31-482b-a856-94f89814c4df --- .../ui/admin/UserAdministrationTab.java | 14 +++--- .../AbstractSingletonApplicationManager.java | 48 +++++++++++++++++++ 2 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 ccm-core/src/main/java/com/arsdigita/ui/admin/applications/AbstractSingletonApplicationManager.java diff --git a/ccm-core/src/main/java/com/arsdigita/ui/admin/UserAdministrationTab.java b/ccm-core/src/main/java/com/arsdigita/ui/admin/UserAdministrationTab.java index 3be3cfea2..c5f55526a 100644 --- a/ccm-core/src/main/java/com/arsdigita/ui/admin/UserAdministrationTab.java +++ b/ccm-core/src/main/java/com/arsdigita/ui/admin/UserAdministrationTab.java @@ -73,13 +73,13 @@ class UserAdministrationTab extends LayoutPanel { // browsePane.setTabbedPane(parent); // browsePane.setGroupAdministrationTab(groupAdminTab); // - final BoxPanel body = new BoxPanel(); -// addSection(USER_TAB_SUMMARY, summarySection, body); -// addSection(USER_TAB_BROWSE, browsePane, body); -// addSection(USER_TAB_SEARCH, searchSection, body); -// addSection(USER_TAB_CREATE_USER, createSection, body); - - setBody(body); +//// final BoxPanel body = new BoxPanel(); +////// addSection(USER_TAB_SUMMARY, summarySection, body); +////// addSection(USER_TAB_BROWSE, browsePane, body); +////// addSection(USER_TAB_SEARCH, searchSection, body); +////// addSection(USER_TAB_CREATE_USER, createSection, body); +// +// setBody(body); } /** diff --git a/ccm-core/src/main/java/com/arsdigita/ui/admin/applications/AbstractSingletonApplicationManager.java b/ccm-core/src/main/java/com/arsdigita/ui/admin/applications/AbstractSingletonApplicationManager.java new file mode 100644 index 000000000..450729d9c --- /dev/null +++ b/ccm-core/src/main/java/com/arsdigita/ui/admin/applications/AbstractSingletonApplicationManager.java @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2013 Jens Pelzetter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public License + * as published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ +package com.arsdigita.ui.admin.applications; + +import com.arsdigita.bebop.Form; + +import org.libreccm.web.CcmApplication; + + +/** + * An abstract class providing a default implementation of {@link ApplicationManager#getApplicationCreateForm()}. + * + * @param Type of the application for which this ApplicationManager provides the administration forms. + * + * @author Jens Pelzetter + * @version $Id$ + */ +public abstract class AbstractSingletonApplicationManager implements ApplicationManager{ + + /** + * Implementation of {@link ApplicationManager#getApplicationCreateForm()} + * for singleton applications. + * + * @return {@code} null because it is not possible to create instances + * of singleton applications. + */ + @SuppressWarnings("PMD.EmptyMethodInAbstractClassShouldBeAbstract") + @Override + public final Form getApplicationCreateForm() { + return null; + } +}