class urn_perun_group_resource_attribute_def_def_systemUnixGroupName extends GroupResourceAttributesModuleAbstract implements GroupResourceAttributesModuleImplApi {

	@Override
	public void checkAttributeSyntax(PerunSessionImpl sess, Group group, Resource resource, Attribute attribute) throws WrongAttributeValueException {
		String groupName = attribute.valueAsString();
		if (groupName == null) return;

		Matcher matcher = pattern.matcher(groupName);
		if (!matcher.matches())
			throw new WrongAttributeValueException(attribute, group, resource, "String with other chars than numbers, letters or symbols _ and - is not allowed value.");
	}

}