From 48bbaafe42842b5ef1324ab234ec379da4557571 Mon Sep 17 00:00:00 2001 From: mjames-upc Date: Mon, 6 Aug 2018 09:28:10 -0600 Subject: [PATCH] rm last remnant of nwsauth --- .../build.properties | 5 - docs/edex/data-delivery.md | 1 - tests/.classpath | 3 - .../viz/core/auth/TestUserManagerLoader.java | 114 ------------------ 4 files changed, 123 deletions(-) delete mode 100644 cave/com.raytheon.uf.viz.plugin.nwsauth/build.properties delete mode 100644 tests/unit/com/raytheon/uf/viz/core/auth/TestUserManagerLoader.java diff --git a/cave/com.raytheon.uf.viz.plugin.nwsauth/build.properties b/cave/com.raytheon.uf.viz.plugin.nwsauth/build.properties deleted file mode 100644 index e9863e281e..0000000000 --- a/cave/com.raytheon.uf.viz.plugin.nwsauth/build.properties +++ /dev/null @@ -1,5 +0,0 @@ -source.. = src/ -output.. = bin/ -bin.includes = META-INF/,\ - .,\ - plugin.xml diff --git a/docs/edex/data-delivery.md b/docs/edex/data-delivery.md index 300be7225e..1fb2462146 100644 --- a/docs/edex/data-delivery.md +++ b/docs/edex/data-delivery.md @@ -79,7 +79,6 @@ harvester-datadelivery-registry, jaxb-datadelivery-registry, level-common, levelhandler-common, -nwsauth-request, obs-common, parameter-common, persist-ingest, diff --git a/tests/.classpath b/tests/.classpath index ce3d686468..056f571c24 100644 --- a/tests/.classpath +++ b/tests/.classpath @@ -31,7 +31,6 @@ - @@ -55,8 +54,6 @@ - - diff --git a/tests/unit/com/raytheon/uf/viz/core/auth/TestUserManagerLoader.java b/tests/unit/com/raytheon/uf/viz/core/auth/TestUserManagerLoader.java deleted file mode 100644 index 62534778c3..0000000000 --- a/tests/unit/com/raytheon/uf/viz/core/auth/TestUserManagerLoader.java +++ /dev/null @@ -1,114 +0,0 @@ -/** - * This software was developed and / or modified by Raytheon Company, - * pursuant to Contract DG133W-05-CQ-1067 with the US Government. - * - * U.S. EXPORT CONTROLLED TECHNICAL DATA - * This software product contains export-restricted data whose - * export/transfer/disclosure is restricted by U.S. law. Dissemination - * to non-U.S. persons whether in the United States or abroad requires - * an export license or other authorization. - * - * Contractor Name: Raytheon Company - * Contractor Address: 6825 Pine Street, Suite 340 - * Mail Stop B8 - * Omaha, NE 68106 - * 402.291.0100 - * - * See the AWIPS II Master Rights File ("Master Rights File.pdf") for - * further licensing information. - **/ -package com.raytheon.uf.viz.core.auth; - -import java.util.Collections; -import java.util.List; - -import com.raytheon.uf.common.auth.user.IAuthenticationData; -import com.raytheon.uf.common.auth.user.IPermission; -import com.raytheon.uf.common.auth.user.IRole; -import com.raytheon.uf.common.auth.user.IUser; -import com.raytheon.uf.common.plugin.nwsauth.user.User; -import com.raytheon.uf.viz.core.requests.INotAuthHandler; -import com.raytheon.uf.viz.plugin.nwsauth.NwsNotAuthHandler; - -/** - * An {@link IUserManagerLoader} that can be used in tests. - * - *
- * 
- * SOFTWARE HISTORY
- * 
- * Date         Ticket#    Engineer    Description
- * ------------ ---------- ----------- --------------------------
- * Jan 04, 2013 1441       djohnson     Initial creation
- * 
- * 
- * - * @author djohnson - * @version 1.0 - */ - -public class TestUserManagerLoader implements IUserManagerLoader { - - public static class TestUserManager implements IUserManager { - - private static final User USER = new User("testuser"); - - private static final INotAuthHandler NOT_AUTH_HANDLER = new NwsNotAuthHandler(); - - /** - * {@inheritDoc} - */ - @Override - public IUser getUserObject() { - return USER; - } - - /** - * {@inheritDoc} - */ - @Override - public void updateUserObject(IUser user, IAuthenticationData authData) { - // Currently unused - } - - /** - * {@inheritDoc} - */ - @Override - public INotAuthHandler getNotAuthHandler() { - return NOT_AUTH_HANDLER; - } - - /** - * {@inheritDoc} - */ - @Override - public List getPermissions(String application) { - return Collections.emptyList(); - } - - /** - * {@inheritDoc} - */ - @Override - public List getRoles(String application) { - return Collections.emptyList(); - } - - @Override - public void updateUserObject(String userId, IAuthenticationData authData) { - // Currently unused - } - } - - private static final TestUserManager USER_MANAGER = new TestUserManager(); - - /** - * {@inheritDoc} - */ - @Override - public IUserManager getUserManager() { - return USER_MANAGER; - } - -}