class urn_perun_user_attribute_def_def_preferredShells extends UserAttributesModuleAbstract implements UserAttributesModuleImplApi {

	@Override
	public void checkAttributeSyntax(PerunSessionImpl sess, User user, Attribute attribute) throws WrongAttributeValueException {
		if (attribute.getValue() == null) return;

		List<String> pshell = attribute.valueAsList();
		for (String shell : pshell) {
			if (shell == null) throw new WrongAttributeValueException(attribute, user, "shell cannot be empty string");
			sess.getPerunBl().getModulesUtilsBl().checkFormatOfShell(shell, attribute);
		}
	}

}