Search in sources :

Example 1 with DestinationCreated

use of cz.metacentrum.perun.audit.events.ServicesManagerEvents.DestinationCreated in project perun by CESNET.

the class ServicesManagerBlImpl method createDestination.

public Destination createDestination(PerunSession sess, Destination destination) throws DestinationExistsException {
    if (getServicesManagerImpl().destinationExists(sess, destination))
        throw new DestinationExistsException(destination);
    destination = getServicesManagerImpl().createDestination(sess, destination);
    getPerunBl().getAuditer().log(sess, new DestinationCreated(destination));
    return destination;
}
Also used : DestinationCreated(cz.metacentrum.perun.audit.events.ServicesManagerEvents.DestinationCreated) DestinationExistsException(cz.metacentrum.perun.core.api.exceptions.DestinationExistsException)

Aggregations

DestinationCreated (cz.metacentrum.perun.audit.events.ServicesManagerEvents.DestinationCreated)1 DestinationExistsException (cz.metacentrum.perun.core.api.exceptions.DestinationExistsException)1