Interface MemberAttributesModuleImplApi
- All Superinterfaces:
AttributesModuleImplApi
- All Known Subinterfaces:
MemberVirtualAttributesModuleImplApi
- All Known Implementing Classes:
MemberAttributesModuleAbstract
,MemberVirtualAttributesModuleAbstract
,urn_perun_member_attribute_def_def_address
,urn_perun_member_attribute_def_def_mail
,urn_perun_member_attribute_def_def_memberOrganizations
,urn_perun_member_attribute_def_def_memberOrganizationsHistory
,urn_perun_member_attribute_def_def_membershipExpiration
,urn_perun_member_attribute_def_def_o365EmailAddresses_mu
,urn_perun_member_attribute_def_def_organization
,urn_perun_member_attribute_def_def_phone
,urn_perun_member_attribute_def_def_suspensionInfo
,urn_perun_member_attribute_def_def_workplace
,urn_perun_member_attribute_def_virt_isLifecycleAlterable
,urn_perun_member_attribute_def_virt_isSuspended
,urn_perun_member_attribute_def_virt_mails
Interface for checking and filling in member's attributes.
- Author:
- Michal Šťava invalid input: '<'stava.michal@gmail.com>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changedAttributeHook
(PerunSessionImpl session, Member member, Attribute attribute) If you need to do some further work with other modules, this method do thatvoid
checkAttributeSemantics
(PerunSessionImpl session, Member member, Attribute attribute) Checks if value of assigned attribute to the member has valid semantics.void
checkAttributeSyntax
(PerunSessionImpl session, Member member, Attribute attribute) Checks if value of assigned attribute to the member has valid syntax.fillAttribute
(PerunSessionImpl session, Member member, AttributeDefinition attribute) Tries to fill an attribute to the specified member.Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
-
Method Details
-
changedAttributeHook
void changedAttributeHook(PerunSessionImpl session, Member member, Attribute attribute) throws WrongReferenceAttributeValueException If you need to do some further work with other modules, this method do that- Parameters:
session
- sessionmember
- the memberattribute
- the attribute- Throws:
WrongReferenceAttributeValueException
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSessionImpl session, Member member, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Checks if value of assigned attribute to the member has valid semantics.- Parameters:
session
- Perun sessionmember
- Memberattribute
- Attribute of the member.- Throws:
InternalErrorException
- if an exception is raised in particular implementation, the exception is wrapped in InternalErrorExceptionWrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsWrongAttributeAssignmentException
- if attribute does not belong to appropriate entity
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSessionImpl session, Member member, Attribute attribute) throws WrongAttributeValueException Checks if value of assigned attribute to the member has valid syntax.- Parameters:
session
- Perun sessionmember
- Memberattribute
- Attribute of the member.- Throws:
InternalErrorException
- if an exception is raised in particular implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeValueException
- if the attribute value has wrong/illegal syntax
-
fillAttribute
Attribute fillAttribute(PerunSessionImpl session, Member member, AttributeDefinition attribute) throws WrongAttributeAssignmentException Tries to fill an attribute to the specified member.- Parameters:
session
- Perun Sessionmember
- Memberattribute
- Attribute of the member- Returns:
- Attribute which MAY be filled in
- Throws:
InternalErrorException
- if an exception is raised in particular implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeAssignmentException
-