class urn_perun_group_resource_attribute_def_def_isSystemUnixGroup extends GroupResourceAttributesModuleAbstract implements GroupResourceAttributesModuleImplApi {

	@Override
	public void checkAttributeSyntax(PerunSessionImpl sess, Group group, Resource resource, Attribute attribute) throws WrongAttributeValueException {
		Integer isSystemUnixGroup = attribute.valueAsInteger();
		if(isSystemUnixGroup == null) return; //isSystemUnixGroup can be null. It is equivalent to 0.

		if(isSystemUnixGroup != 0 && isSystemUnixGroup != 1) throw new WrongAttributeValueException(attribute, "Attribute isSystemUnixGroup should not other number than 0 or 1.");
	}

}