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_lifecycleTimestamps,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 TypeMethodDescriptionvoidchangedAttributeHook(PerunSessionImpl session, Member member, Attribute attribute) If you need to do some further work with other modules, this method do thatvoidcheckAttributeSemantics(PerunSessionImpl perunSession, Member member, Attribute attribute) Checks if value of assigned attribute to the member has valid semantics.voidcheckAttributeSyntax(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, resolveVirtualAttributeValueChangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:MemberAttributesModuleImplApiIf you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHookin 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:MemberAttributesModuleImplApiChecks if value of assigned attribute to the member has valid semantics.- Specified by:
checkAttributeSemanticsin 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:MemberAttributesModuleImplApiChecks if value of assigned attribute to the member has valid syntax.- Specified by:
checkAttributeSyntaxin 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:MemberAttributesModuleImplApiTries to fill an attribute to the specified member.- Specified by:
fillAttributein interfaceMemberAttributesModuleImplApi- Parameters:
session- Perun Sessionmember- Memberattribute- Attribute of the member- Returns:
- Attribute which MAY be filled in
- Throws:
WrongAttributeAssignmentException
-