use of cz.metacentrum.perun.audit.events.AttributesManagerEvents.AttributeRemovedForVo in project perun by CESNET.
the class AttributesManagerBlImpl method removeAttributeWithoutCheck.
@Override
public boolean removeAttributeWithoutCheck(PerunSession sess, Vo vo, AttributeDefinition attribute) throws WrongAttributeAssignmentException {
getAttributesManagerImpl().checkNamespace(sess, attribute, NS_VO_ATTR);
if (getAttributesManagerImpl().isCoreAttribute(sess, attribute))
throw new WrongAttributeAssignmentException(attribute);
boolean changed = getAttributesManagerImpl().removeAttribute(sess, vo, attribute);
if (changed) {
getAttributesManagerImpl().changedAttributeHook(sess, vo, new Attribute(attribute));
log.info("{} removed attribute {} from vo {}.", sess.getLogId(), attribute.getName(), vo.getId());
getPerunBl().getAuditer().log(sess, new AttributeRemovedForVo(new AttributeDefinition(attribute), vo));
}
return changed;
}
Aggregations