Also deleted the checkstyle suppression file.
Change-Id: I41adf8c09fe0613134876976c6aadd193e38fbaa
Issue-ID: POLICY-1905
Signed-off-by: Jim Hahn <jrh3@att.com>
+++ /dev/null
-<?xml version="1.0"?>
-<!--
- ============LICENSE_START=======================================================
- Copyright (C) 2018 AT&T Technologies. All rights reserved.
- ================================================================================
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
- SPDX-License-Identifier: Apache-2.0
- ============LICENSE_END=========================================================
--->
-
-<!DOCTYPE suppressions PUBLIC
- "-//Puppy Crawl//DTD Suppressions 1.0//EN"
- "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
-
-<suppressions>
- <suppress checks="AbbreviationAsWordInName"
- files="DroolsPDPIntegrityMonitor.java"
- lines="1-9999"/>
-</suppressions>
============LICENSE_START=======================================================
feature-state-management
================================================================================
- Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
<includeTestResources>true</includeTestResources>
<excludes>
</excludes>
- <suppressionsLocation>${project.baseUri}checkstyle-suppressions.xml</suppressionsLocation>
<consoleOutput>true</consoleOutput>
<failsOnViolation>true</failsOnViolation>
<violationSeverity>warning</violationSeverity>
* ============LICENSE_START=======================================================
* feature-state-management
* ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/** This class audits the database.
*/
-public class DbAudit extends DroolsPDPIntegrityMonitor.AuditBase {
+public class DbAudit extends DroolsPdpIntegrityMonitor.AuditBase {
// get an instance of logger
private static Logger logger = LoggerFactory.getLogger(DbAudit.class);
// single global instance of this audit object
* Get the instance.
*
* @return the single 'DbAudit' instance. */
- public static DroolsPDPIntegrityMonitor.AuditBase getInstance() {
+ public static DroolsPdpIntegrityMonitor.AuditBase getInstance() {
return instance;
}
* This class extends 'IntegrityMonitor' for use in the 'Drools PDP' virtual machine. The included
* audits are 'Database' and 'Repository'.
*/
-public class DroolsPDPIntegrityMonitor extends IntegrityMonitor {
+public class DroolsPdpIntegrityMonitor extends IntegrityMonitor {
private static final String INVALID_PROPERTY_VALUE = "init: property {} does not have the expected value of {}";
// get an instance of logger
- private static final Logger logger = LoggerFactory.getLogger(DroolsPDPIntegrityMonitor.class);
+ private static final Logger logger = LoggerFactory.getLogger(DroolsPdpIntegrityMonitor.class);
// static global instance
- private static DroolsPDPIntegrityMonitor im = null;
+ private static DroolsPdpIntegrityMonitor im = null;
// list of audits to run
private static AuditBase[] audits = new AuditBase[] {DbAudit.getInstance(), RepositoryAudit.getInstance()};
* @param properties properties used locally, as well as by 'IntegrityMonitor'
* @throws IntegrityMonitorException (passed from superclass)
*/
- private DroolsPDPIntegrityMonitor(String resourceName, Properties consolidatedProperties)
+ private DroolsPdpIntegrityMonitor(String resourceName, Properties consolidatedProperties)
throws IntegrityMonitorException {
super(resourceName, consolidatedProperties);
}
*
* @throws IntegrityMonitorException exception
*/
- public static DroolsPDPIntegrityMonitor init(String configDir) throws IntegrityMonitorException {
+ public static DroolsPdpIntegrityMonitor init(String configDir) throws IntegrityMonitorException {
logger.info("init: Entering and invoking PropertyUtil.getProperties() on '{}'", configDir);
* @return monitor object
* @throws IntegrityMonitorException exception
*/
- private static DroolsPDPIntegrityMonitor makeMonitor(String resourceName, Properties properties)
+ private static DroolsPdpIntegrityMonitor makeMonitor(String resourceName, Properties properties)
throws IntegrityMonitorException {
try {
- return new DroolsPDPIntegrityMonitor(resourceName, properties);
+ return new DroolsPdpIntegrityMonitor(resourceName, properties);
} catch (Exception e) {
throw new IntegrityMonitorException(e);
* @return DroolsPDPIntegrityMonitor object
* @throws IntegrityMonitorException exception
*/
- public static DroolsPDPIntegrityMonitor getInstance() throws IntegrityMonitorException {
+ public static DroolsPdpIntegrityMonitor getInstance() throws IntegrityMonitorException {
if (logger.isDebugEnabled()) {
logger.debug("getInstance() called");
}
* ============LICENSE_START=======================================================
* feature-state-management
* ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@Path("/")
public class IntegrityMonitorRestManager {
private static Logger logger = LoggerFactory.getLogger(IntegrityMonitorRestManager.class);
- private DroolsPDPIntegrityMonitor im;
+ private DroolsPdpIntegrityMonitor im;
/**
* Test interface for Integrity Monitor.
if (im == null) {
try {
- im = DroolsPDPIntegrityMonitor.getInstance();
+ im = DroolsPdpIntegrityMonitor.getInstance();
} catch (Exception e) {
logger.error("IntegrityMonitorRestManager: test() interface caught an exception", e);
body.append("\nException: " + e + "\n");
* ============LICENSE_START=======================================================
* feature-state-management
* ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
/**
* This class audits the Maven repository.
*/
-public class RepositoryAudit extends DroolsPDPIntegrityMonitor.AuditBase {
+public class RepositoryAudit extends DroolsPdpIntegrityMonitor.AuditBase {
private static final long DEFAULT_TIMEOUT = 60; //timeout in 60 seconds
// get an instance of logger
*
* @return the single 'RepositoryAudit' instance
*/
- public static DroolsPDPIntegrityMonitor.AuditBase getInstance() {
+ public static DroolsPdpIntegrityMonitor.AuditBase getInstance() {
return instance;
}
* ============LICENSE_START=======================================================
* feature-state-management
* ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
private static final Logger logger =
LoggerFactory.getLogger(StateManagementFeature.class);
- private DroolsPDPIntegrityMonitor droolsPdpIntegrityMonitor = null;
+ private DroolsPdpIntegrityMonitor droolsPdpIntegrityMonitor = null;
private StateManagement stateManagement = null;
public StateManagementFeature() {
logger.debug("StateManagementFeature.globalInit({}) entry", configDir);
try {
- droolsPdpIntegrityMonitor = DroolsPDPIntegrityMonitor.init(configDir);
+ droolsPdpIntegrityMonitor = DroolsPdpIntegrityMonitor.init(configDir);
} catch (Exception e) {
logger.debug("DroolsPDPIntegrityMonitor initialization exception: ", e);
logger.error("DroolsPDPIntegrityMonitor.init()", e);
//At this point the DroolsPDPIntegrityMonitor instance must exist. Let's check it.
try {
- droolsPdpIntegrityMonitor = DroolsPDPIntegrityMonitor.getInstance();
+ droolsPdpIntegrityMonitor = DroolsPdpIntegrityMonitor.getInstance();
stateManagement = droolsPdpIntegrityMonitor.getStateManager();
if (stateManagement == null) {