diff options
author | Endi S. Dewata <edewata@redhat.com> | 2013-10-02 12:39:13 -0400 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2013-10-08 19:01:18 -0400 |
commit | 53ef3a1a1c80539a470537a03ec77cdcb71b2fd3 (patch) | |
tree | b51352a2e48c6d68c558bcd048e9b3be5aae4b8f /base/common/src/com/netscape/certsrv/tps | |
parent | ae753b2f5775b5f523d5183235d8820a65cf0eea (diff) | |
download | pki-53ef3a1a1c80539a470537a03ec77cdcb71b2fd3.tar.gz pki-53ef3a1a1c80539a470537a03ec77cdcb71b2fd3.tar.xz pki-53ef3a1a1c80539a470537a03ec77cdcb71b2fd3.zip |
Added audit resource.
A new REST service and clients have been added to manage the audit
configuration in all subsystems.
Ticket #652
Diffstat (limited to 'base/common/src/com/netscape/certsrv/tps')
-rw-r--r-- | base/common/src/com/netscape/certsrv/tps/TPSClient.java | 2 | ||||
-rw-r--r-- | base/common/src/com/netscape/certsrv/tps/config/ConfigCollection.java | 65 |
2 files changed, 2 insertions, 65 deletions
diff --git a/base/common/src/com/netscape/certsrv/tps/TPSClient.java b/base/common/src/com/netscape/certsrv/tps/TPSClient.java index eeccdb018..40820d84d 100644 --- a/base/common/src/com/netscape/certsrv/tps/TPSClient.java +++ b/base/common/src/com/netscape/certsrv/tps/TPSClient.java @@ -23,6 +23,7 @@ import com.netscape.certsrv.client.PKIClient; import com.netscape.certsrv.client.SubsystemClient; import com.netscape.certsrv.group.GroupClient; import com.netscape.certsrv.logging.ActivityClient; +import com.netscape.certsrv.logging.AuditClient; import com.netscape.certsrv.selftests.SelfTestClient; import com.netscape.certsrv.tps.authenticator.AuthenticatorClient; import com.netscape.certsrv.tps.cert.TPSCertClient; @@ -44,6 +45,7 @@ public class TPSClient extends SubsystemClient { public void init() throws URISyntaxException { addClient(new ActivityClient(client, name)); + addClient(new AuditClient(client, name)); addClient(new AuthenticatorClient(client, name)); addClient(new TPSCertClient(client, name)); addClient(new ConfigClient(client, name)); diff --git a/base/common/src/com/netscape/certsrv/tps/config/ConfigCollection.java b/base/common/src/com/netscape/certsrv/tps/config/ConfigCollection.java deleted file mode 100644 index a36f61fd1..000000000 --- a/base/common/src/com/netscape/certsrv/tps/config/ConfigCollection.java +++ /dev/null @@ -1,65 +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) 2013 Red Hat, Inc. -// All rights reserved. -// --- END COPYRIGHT BLOCK --- - -package com.netscape.certsrv.tps.config; - -import java.util.ArrayList; -import java.util.Collection; - -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementRef; -import javax.xml.bind.annotation.XmlRootElement; - -import org.jboss.resteasy.plugins.providers.atom.Link; - - -/** - * @author Endi S. Dewata - */ -@XmlRootElement(name="Configurations") -public class ConfigCollection { - - Collection<ConfigData> configs = new ArrayList<ConfigData>(); - Collection<Link> links = new ArrayList<Link>(); - - @XmlElementRef - public Collection<ConfigData> getConfigs() { - return configs; - } - - public void setConfigs(Collection<ConfigData> configs) { - this.configs = configs; - } - - public void addConfig(ConfigData configData) { - configs.add(configData); - } - - @XmlElement(name="Link") - public Collection<Link> getLinks() { - return links; - } - - public void setLink(Collection<Link> links) { - this.links = links; - } - - public void addLink(Link link) { - links.add(link); - } -} |