use of cz.metacentrum.perun.core.api.RichAttribute in project perun by CESNET.
the class AttributesManagerBlImpl method removeAttribute.
public void removeAttribute(PerunSession sess, Group group, AttributeDefinition attribute) throws InternalErrorException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException {
if (removeAttributeWithoutCheck(sess, group, attribute)) {
checkAttributeValue(sess, group, new Attribute(attribute));
this.checkAttributeDependencies(sess, new RichAttribute(group, null, new Attribute(attribute)));
}
}
use of cz.metacentrum.perun.core.api.RichAttribute in project perun by CESNET.
the class AttributesManagerBlImpl method removeAttribute.
public void removeAttribute(PerunSession sess, Vo vo, AttributeDefinition attribute) throws InternalErrorException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException {
if (removeAttributeWithoutCheck(sess, vo, attribute)) {
checkAttributeValue(sess, vo, new Attribute(attribute));
this.checkAttributeDependencies(sess, new RichAttribute(vo, null, new Attribute(attribute)));
}
}
use of cz.metacentrum.perun.core.api.RichAttribute in project perun by CESNET.
the class AttributesManagerBlImpl method setAttribute.
public void setAttribute(PerunSession sess, Facility facility, Attribute attribute) throws InternalErrorException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException {
if (attribute.getValue() == null) {
removeAttribute(sess, facility, attribute);
return;
}
if (setAttributeWithoutCheck(sess, facility, attribute)) {
checkAttributeValue(sess, facility, attribute);
this.checkAttributeDependencies(sess, new RichAttribute(facility, null, attribute));
}
}
use of cz.metacentrum.perun.core.api.RichAttribute in project perun by CESNET.
the class AttributesManagerBlImpl method removeAttribute.
public void removeAttribute(PerunSession sess, Facility facility, AttributeDefinition attribute) throws InternalErrorException, WrongAttributeAssignmentException, WrongAttributeValueException, WrongReferenceAttributeValueException {
if (removeAttributeWithoutCheck(sess, facility, attribute)) {
this.checkAttributeValue(sess, facility, new Attribute(attribute));
this.checkAttributeDependencies(sess, new RichAttribute(facility, null, new Attribute(attribute)));
}
}
use of cz.metacentrum.perun.core.api.RichAttribute in project perun by CESNET.
the class AttributesManagerBlImpl method setAttribute.
public void setAttribute(PerunSession sess, Facility facility, User user, Attribute attribute) throws InternalErrorException, WrongAttributeValueException, WrongAttributeAssignmentException, WrongReferenceAttributeValueException {
if (attribute.getValue() == null) {
removeAttribute(sess, facility, user, attribute);
return;
}
if (setAttributeWithoutCheck(sess, facility, user, attribute)) {
checkAttributeValue(sess, facility, user, attribute);
this.checkAttributeDependencies(sess, new RichAttribute(facility, user, attribute));
}
}
Aggregations