Class urn_perun_user_attribute_def_def_cscaleCountry
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleAbstract
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_attribute_def_def_cscaleCountry
- All Implemented Interfaces:
AttributesModuleImplApi, UserAttributesModuleImplApi
public class urn_perun_user_attribute_def_def_cscaleCountry
extends UserAttributesModuleAbstract
implements UserAttributesModuleImplApi
Check constraint on C-SCALE user country code
- Author:
- Pavel Zlámal invalid input: '<'zlamal@cesnet.cz>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAttributeSyntax(PerunSessionImpl sess, User user, Attribute attribute) Checks if users country has allowed valueMethods inherited from class UserAttributesModuleAbstract
changedAttributeHook, checkAttributeSemantics, deletedEntityHook, fillAttribute, getAnonymizedValueMethods inherited from class AttributesModuleAbstract
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChangeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChangeMethods inherited from interface UserAttributesModuleImplApi
changedAttributeHook, checkAttributeSemantics, deletedEntityHook, fillAttribute, getAnonymizedValue
-
Constructor Details
-
urn_perun_user_attribute_def_def_cscaleCountry
public urn_perun_user_attribute_def_def_cscaleCountry()
-
-
Method Details
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl sess, User user, Attribute attribute) throws WrongAttributeValueException Checks if users country has allowed value- Specified by:
checkAttributeSyntaxin interfaceUserAttributesModuleImplApi- Overrides:
checkAttributeSyntaxin classUserAttributesModuleAbstract- Parameters:
sess- PerunSessionuser- userattribute- Attribute of the user- Throws:
WrongAttributeValueException- if the attribute value has wrong/illegal syntax
-