All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.marklogic.mgmt.api.group.Audit Maven / Gradle / Ivy

Go to download

Java client for the MarkLogic REST Management API and for deploying applications to MarkLogic

There is a newer version: 5.0.0
Show newest version
/*
 * Copyright (c) 2023 MarkLogic Corporation
 *
 * 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.
 */
package com.marklogic.mgmt.api.group;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import java.util.ArrayList;
import java.util.List;

@XmlAccessorType(XmlAccessType.FIELD)
public class Audit {

	@XmlElement(name = "audit-enabled")
    private Boolean auditEnabled;

	@XmlElement(name = "rotate-audit-files")
    private String rotateAuditFiles;

	@XmlElement(name = "keep-audit-files")
    private Integer keepAuditFiles;

	@XmlElementWrapper(name = "audit-events")
	@XmlElement(name = "audit-event")
    private List auditEvent;

	@XmlElementWrapper(name = "audit-restrictions")
	@XmlElement(name = "audit-restriction")
    private List auditRestriction;

    public void addAuditEvent(AuditEvent event) {
        if (auditEvent == null) {
            auditEvent = new ArrayList<>();
        }
        auditEvent.add(event);
    }

    public void addAuditRestriction(AuditRestriction ar) {
        if (auditRestriction == null) {
            auditRestriction = new ArrayList<>();
        }
        auditRestriction.add(ar);
    }

    public Boolean getAuditEnabled() {
        return auditEnabled;
    }

    public void setAuditEnabled(Boolean auditEnabled) {
        this.auditEnabled = auditEnabled;
    }

    public String getRotateAuditFiles() {
        return rotateAuditFiles;
    }

    public void setRotateAuditFiles(String rotateAuditFiles) {
        this.rotateAuditFiles = rotateAuditFiles;
    }

    public Integer getKeepAuditFiles() {
        return keepAuditFiles;
    }

    public void setKeepAuditFiles(Integer keepAuditFiles) {
        this.keepAuditFiles = keepAuditFiles;
    }

    public List getAuditEvent() {
        return auditEvent;
    }

    public void setAuditEvent(List auditEvent) {
        this.auditEvent = auditEvent;
    }

    public List getAuditRestriction() {
        return auditRestriction;
    }

    public void setAuditRestriction(List auditRestriction) {
        this.auditRestriction = auditRestriction;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy