Class urn_perun_user_attribute_def_def_login_namespace_eduroam_vsup
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_login_namespace
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_attribute_def_def_login_namespace_eduroam_vsup
- All Implemented Interfaces:
AttributesModuleImplApi
,UserAttributesModuleImplApi
public class urn_perun_user_attribute_def_def_login_namespace_eduroam_vsup
extends urn_perun_user_attribute_def_def_login_namespace
Class for checking logins uniqueness in the namespace and filling eduroam login (same as všup).
- Author:
- Pavel Zlámal invalid input: '<'zlamal@cesnet.cz>
-
Field Summary
Fields inherited from class cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_attribute_def_def_login_namespace
generatedNamespaces
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAttributeSemantics
(PerunSessionImpl sess, User user, Attribute attribute) Checks if the user's login is unique in the namespace organization.void
checkAttributeSyntax
(PerunSessionImpl sess, User user, Attribute attribute) Check if eduroam login has permitted valuefillAttribute
(PerunSessionImpl perunSession, User user, AttributeDefinition attribute) Fill eduroam login based on všup login.Return attributes definition which is represented by the moduleGet list of attributes whose value are used in checking of validity of this attribute.Methods inherited from class cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_user_attribute_def_def_login_namespace
sha1HashCount
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleAbstract
changedAttributeHook, getAnonymizedValue
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAuthorizedRoles, resolveVirtualAttributeValueChange
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleImplApi
getAuthorizedRoles, resolveVirtualAttributeValueChange
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleImplApi
changedAttributeHook, getAnonymizedValue
-
Constructor Details
-
urn_perun_user_attribute_def_def_login_namespace_eduroam_vsup
public urn_perun_user_attribute_def_def_login_namespace_eduroam_vsup()
-
-
Method Details
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl sess, User user, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Checks if the user's login is unique in the namespace organization. Check if eduroam login is the same as institutional login- Specified by:
checkAttributeSemantics
in interfaceUserAttributesModuleImplApi
- Overrides:
checkAttributeSemantics
in classurn_perun_user_attribute_def_def_login_namespace
- Parameters:
sess
- PerunSessionuser
- User to check attribute forattribute
- Attribute to check value to- Throws:
InternalErrorException
WrongAttributeAssignmentException
WrongReferenceAttributeValueException
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl sess, User user, Attribute attribute) throws WrongAttributeValueException Check if eduroam login has permitted value- Specified by:
checkAttributeSyntax
in interfaceUserAttributesModuleImplApi
- Overrides:
checkAttributeSyntax
in classurn_perun_user_attribute_def_def_login_namespace
- Parameters:
sess
- PerunSessionuser
- User to check attribute forattribute
- Attribute to check value to- Throws:
WrongAttributeValueException
- if login is not permitted
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl perunSession, User user, AttributeDefinition attribute) throws WrongAttributeAssignmentException Fill eduroam login based on všup login. Values must be the same all the time.- Specified by:
fillAttribute
in interfaceUserAttributesModuleImplApi
- Overrides:
fillAttribute
in classurn_perun_user_attribute_def_def_login_namespace
- Parameters:
perunSession
- PerunSessionuser
- User to fill attribute forattribute
- Attribute to fill value to- Returns:
- Filled attribute
- Throws:
InternalErrorException
WrongAttributeAssignmentException
-
getAttributeDefinition
Description copied from interface:AttributesModuleImplApi
Return attributes definition which is represented by the module- Specified by:
getAttributeDefinition
in interfaceAttributesModuleImplApi
- Overrides:
getAttributeDefinition
in classAttributesModuleAbstract
- Returns:
- attribute definition
-
getDependencies
Description copied from interface:AttributesModuleImplApi
Get list of attributes whose value are used in checking of validity of this attribute. In other words any change of these attributes' values can cause that value of this attribute is no longer valid.An attribute should depend on all attributes which values are used in method "checkAttributeSemantics" defined in attribute module.
- Specified by:
getDependencies
in interfaceAttributesModuleImplApi
- Overrides:
getDependencies
in classAttributesModuleAbstract
- Returns:
- list of attributes this attribute depends on
- See Also:
-