class urn_perun_facility_attribute_def_def_homeDirUmask extends FacilityAttributesModuleAbstract implements FacilityAttributesModuleImplApi {

	@Override
	public void checkAttributeSyntax(PerunSessionImpl perunSession, Facility facility, Attribute attribute) throws WrongAttributeValueException {

		String mask = attribute.valueAsString();

		if (mask != null) {
			Matcher matcher = pattern.matcher(mask);
			if (!matcher.matches()) throw new WrongAttributeValueException(attribute, "Bad unix permission mask in attribute format " + mask);
		}
	}

}