class urn_perun_group_attribute_def_def_googleGroupName_namespace extends GroupAttributesModuleAbstract implements GroupAttributesModuleImplApi {

	@Override
	public void checkAttributeSyntax(PerunSessionImpl sess, Group group, Attribute attribute) throws WrongAttributeValueException {
		//prepare groupName value variable
		String groupName = null;
		if(attribute.getValue() != null) groupName = attribute.valueAsString();

		if(groupName == null) {
			// if this is group attribute, its ok
			return;
		}
		Matcher matcher = pattern.matcher(groupName);
		if(!matcher.matches()) throw new WrongAttributeValueException(attribute, group, "GroupName attribute content invalid characters. Allowed are only letters, numbers and characters _ and -.");

		//TODO Check reserved google group names
		//sess.getPerunBl().getModulesUtilsBl().checkReservedGoogleGroupNames(attribute);
	}

}