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

org.everit.osgi.audit.dto.Application Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
/**
 * This file is part of Everit - Audit API.
 *
 * Everit - Audit API 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 3 of the License, or
 * (at your option) any later version.
 *
 * Everit - Audit API 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 Everit - Audit API.  If not, see .
 */
package org.everit.osgi.audit.dto;

import java.util.Objects;

public class Application {

    private final long applicationId;

    private final String appName;

    private final long resourceId;

    public Application(final long applicationId, final String appName, final long resourceId) {
        this.applicationId = applicationId;
        this.appName = Objects.requireNonNull(appName, "appName cannot be null");
        this.resourceId = resourceId;
    }

    public long getApplicationId() {
        return applicationId;
    }

    public String getAppName() {
        return appName;
    }

    public long getResourceId() {
        return resourceId;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy