Class MemberAttributesModuleAbstract
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.MemberAttributesModuleAbstract
- All Implemented Interfaces:
AttributesModuleImplApi
,MemberAttributesModuleImplApi
- Direct Known Subclasses:
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
public abstract class MemberAttributesModuleAbstract
extends AttributesModuleAbstract
implements MemberAttributesModuleImplApi
Abstract class for Member Attributes modules.
----------------------------------------------------------------------------- Implements methods for modules to
perform default function. In the function that the method in the module does nothing, it is not necessary to
implement it, simply extend this abstract class.
- Author:
- Michal Stava invalid input: '<'stavamichal@gmail.com>
-
Constructor Summary
Constructors -
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 perunSession, Member member, Attribute attribute) Checks if value of assigned attribute to the member has valid semantics.void
checkAttributeSyntax
(PerunSessionImpl perunSession, 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 class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAttributeDefinition, getAuthorizedRoles, getDependencies, 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, getDependencies, resolveVirtualAttributeValueChange
-
Constructor Details
-
MemberAttributesModuleAbstract
public MemberAttributesModuleAbstract()
-
-
Method Details
-
changedAttributeHook
public void changedAttributeHook(PerunSessionImpl session, Member member, Attribute attribute) throws WrongReferenceAttributeValueException Description copied from interface:MemberAttributesModuleImplApi
If you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHook
in interfaceMemberAttributesModuleImplApi
- Parameters:
session
- sessionmember
- the memberattribute
- the attribute- Throws:
WrongReferenceAttributeValueException
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, Member member, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:MemberAttributesModuleImplApi
Checks if value of assigned attribute to the member has valid semantics.- Specified by:
checkAttributeSemantics
in interfaceMemberAttributesModuleImplApi
- Parameters:
perunSession
- Perun sessionmember
- Memberattribute
- Attribute of the member.- Throws:
WrongReferenceAttributeValueException
- if the attribute value has wrong/illegal semanticsWrongAttributeAssignmentException
- if attribute does not belong to appropriate entity
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, Member member, Attribute attribute) throws WrongAttributeValueException Description copied from interface:MemberAttributesModuleImplApi
Checks if value of assigned attribute to the member has valid syntax.- Specified by:
checkAttributeSyntax
in interfaceMemberAttributesModuleImplApi
- Parameters:
perunSession
- Perun sessionmember
- Memberattribute
- Attribute of the member.- Throws:
WrongAttributeValueException
- if the attribute value has wrong/illegal syntax
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl session, Member member, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:MemberAttributesModuleImplApi
Tries to fill an attribute to the specified member.- Specified by:
fillAttribute
in interfaceMemberAttributesModuleImplApi
- Parameters:
session
- Perun Sessionmember
- Memberattribute
- Attribute of the member- Returns:
- Attribute which MAY be filled in
- Throws:
WrongAttributeAssignmentException
-