class urn_perun_group_attribute_def_def_authoritativeGroup extends GroupAttributesModuleAbstract implements GroupAttributesModuleImplApi {

	@Override
	public void checkAttributeSemantics(PerunSessionImpl sess, Group group, Attribute attribute) throws WrongReferenceAttributeValueException {
		//Null value is ok, means no settings for group
		if (attribute.getValue() == null) return;
		//Member group can't have set this attribute
		if(group.getName().equals(VosManager.MEMBERS_GROUP)) throw new WrongReferenceAttributeValueException(attribute, null, group, null, "Members group is authoritative automatic, there is not allowed to set this attribute for members group.");
	}

}