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 TypeMethodDescriptionvoidcheckAttributeSemantics(PerunSessionImpl sess, User user, Attribute attribute) Checks the new UID of the user.voiddeletedEntityHook(PerunSessionImpl sess, User user, Attribute attribute) Triggers for attributes connected to a user entity being deletedfillAttribute(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 UserAttributesModuleAbstract
changedAttributeHook, checkAttributeSyntax, getAnonymizedValueMethods inherited from class AttributesModuleAbstract
getAttributeDefinition, getAuthorizedRoles, resolveVirtualAttributeValueChangeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, resolveVirtualAttributeValueChangeMethods inherited from interface 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:
checkAttributeSemanticsin interfaceUserAttributesModuleImplApi- Overrides:
checkAttributeSemanticsin 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:
fillAttributein interfaceUserAttributesModuleImplApi- Overrides:
fillAttributein 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
-
deletedEntityHook
Description copied from interface:UserAttributesModuleImplApiTriggers for attributes connected to a user entity being deleted- Specified by:
deletedEntityHookin interfaceUserAttributesModuleImplApi- Overrides:
deletedEntityHookin classUserAttributesModuleAbstract- Parameters:
sess- sessionuser- Userattribute- Attribute of the user
-
getDependencies
Description copied from interface:AttributesModuleImplApiGet 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:
getDependenciesin interfaceAttributesModuleImplApi- Overrides:
getDependenciesin classAttributesModuleAbstract- Returns:
- list of attributes this attribute depends on
- See Also:
-