Search in sources :

Example 1 with AttributeChangedForFacility

use of cz.metacentrum.perun.audit.events.AttributesManagerEvents.AttributeChangedForFacility in project perun by CESNET.

the class urn_perun_facility_attribute_def_virt_voShortNames method resolveEvent.

private List<AuditEvent> resolveEvent(PerunSessionImpl sess, Facility facility) throws AttributeNotExistsException, WrongAttributeAssignmentException {
    List<AuditEvent> resolvingMessages = new ArrayList<>();
    AttributeDefinition attributeDefinition = sess.getPerunBl().getAttributesManagerBl().getAttributeDefinition(sess, NS_FACILITY_ATTR_VIRT + ":voShortNames");
    resolvingMessages.add(new AttributeChangedForFacility(new Attribute(attributeDefinition), facility));
    return resolvingMessages;
}
Also used : AttributeChangedForFacility(cz.metacentrum.perun.audit.events.AttributesManagerEvents.AttributeChangedForFacility) Attribute(cz.metacentrum.perun.core.api.Attribute) ArrayList(java.util.ArrayList) AttributeDefinition(cz.metacentrum.perun.core.api.AttributeDefinition) AuditEvent(cz.metacentrum.perun.audit.events.AuditEvent)

Aggregations

AttributeChangedForFacility (cz.metacentrum.perun.audit.events.AttributesManagerEvents.AttributeChangedForFacility)1 AuditEvent (cz.metacentrum.perun.audit.events.AuditEvent)1 Attribute (cz.metacentrum.perun.core.api.Attribute)1 AttributeDefinition (cz.metacentrum.perun.core.api.AttributeDefinition)1 ArrayList (java.util.ArrayList)1