Class urn_perun_user_attribute_def_def_uid_namespace
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_uid_namespace
- All Implemented Interfaces:
AttributesModuleImplApi
,UserAttributesModuleImplApi
public class urn_perun_user_attribute_def_def_uid_namespace
extends UserAttributesModuleAbstract
implements UserAttributesModuleImplApi
Checks and fills at specified facility users UID.
- Author:
- Lukáš Pravda invalid input: '<'luky.pravda@gmail.com>, Michal Prochazka invalid input: '<'michalp@ics.muni.cz>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAttributeSemantics
(PerunSessionImpl sess, User user, Attribute attribute) Checks the new UID of the user.fillAttribute
(PerunSessionImpl sess, User user, AttributeDefinition attribute) Fills the new UID for the user at the specified facility.Get list of attributes whose value are used in checking of validity of this attribute.Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleAbstract
changedAttributeHook, checkAttributeSyntax, getAnonymizedValue
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAttributeDefinition, 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
getAttributeDefinition, getAuthorizedRoles, resolveVirtualAttributeValueChange
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.UserAttributesModuleImplApi
changedAttributeHook, checkAttributeSyntax, getAnonymizedValue
-
Constructor Details
-
urn_perun_user_attribute_def_def_uid_namespace
public urn_perun_user_attribute_def_def_uid_namespace()
-
-
Method Details
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl sess, User user, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException Checks the new UID of the user. The new UID must not be lower than the min UID or greater than the max UID. Also no collision between existing user and the new user is allowed.- Specified by:
checkAttributeSemantics
in interfaceUserAttributesModuleImplApi
- Overrides:
checkAttributeSemantics
in classUserAttributesModuleAbstract
- Parameters:
sess
- PerunSessionuser
- Userattribute
- Attribute of the user.- Throws:
WrongReferenceAttributeValueException
- if an referenced attribute against the parameter is to be compared is not availableWrongAttributeAssignmentException
- if attribute does not belong to appropriate entity
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl sess, User user, AttributeDefinition attribute) throws WrongAttributeAssignmentException Fills the new UID for the user at the specified facility. First empty slot in range (minUID, maxUID) is returned.- Specified by:
fillAttribute
in interfaceUserAttributesModuleImplApi
- Overrides:
fillAttribute
in classUserAttributesModuleAbstract
- Parameters:
sess
- PerunSessionuser
- Userattribute
- Attribute in relationship between facility and user to be filled in.- Returns:
- Attribute which MAY be filled in
- Throws:
WrongAttributeAssignmentException
-
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:
-